Skip to the page
Tecyfy

AWS interview question · easy

Do you use the same AWS account for all environments?

The full answer

No. The recommended practice is separate AWS accounts per environment (at least development, test or staging, and production), managed together with AWS Organizations, because an account is the strongest boundary AWS offers for security, quotas and cost.

Why separate accounts

  • Blast radius. A mistake or a compromised credential in development cannot touch production resources, because IAM permissions don't cross accounts unless you allow it.
  • Simpler permissions. Developers can have broad rights in a sandbox and tightly limited, audited rights in production, without complex conditions in one account's policies.
  • Quotas. Service limits (Lambda concurrency, API rate limits) are per account and Region, so a load test in staging cannot exhaust production's capacity.
  • Cost visibility. Each account's bill is separate, so spending per environment and team is clear without relying on perfect tagging.
  • Compliance. Production data, with its audit and retention rules, stays in accounts with the strictest controls.

How to run many accounts

  • AWS Organizations with organizational units (OUs), such as Workloads/Prod and Workloads/NonProd, Security, Infrastructure and Sandbox.
  • Service control policies (SCPs) at the OU level set guardrails: for example, deny disabling CloudTrail, or deny Regions you don't use.
  • AWS Control Tower sets up this landing zone with logging and security accounts, controls and an account factory for new accounts.
  • IAM Identity Center gives people single sign-on into each account through permission sets assigned to groups, with temporary credentials instead of IAM users.
  • Central logging and security: CloudTrail and Config aggregated in a log archive account; GuardDuty and Security Hub run from a security account.
  • Deployments flow from a pipeline (often in a separate tooling account) that assumes roles in each environment account, so the same infrastructure code is promoted from dev to prod.
  • Networking between accounts, where needed, through Transit Gateway or VPC sharing.

When one account might do A personal project or a very early prototype can start in one account, separated by tags and naming. But moving to multiple accounts later means migrating resources, so most teams set up Organizations from the start, and Control Tower makes that quick.

A good answer names the account as the isolation boundary and shows how Organizations, SCPs and Identity Center keep many accounts manageable.

Last updated 16 October 2026