Your company has 40 AWS accounts. How do you structure them and why?
IntermediateScenarioIAM, Organizations and Multi-Account
Answer
Situation read → One account is a blast-radius and billing boundary; a landing zone separates concerns from day one.
What I'd do →
- Use AWS Organizations with OUs: Security (log archive, audit), Infrastructure (network, shared services), Workloads split into prod and non-prod, Sandbox
- Deploy with Control Tower or Landing Zone Accelerator for guardrails
- Centralize CloudTrail, Config and GuardDuty into the security accounts
- Attach SCPs per OU such as region restriction and deny leaving the org
Why → Separate prod and non-prod accounts give strong IAM and quota isolation that tags and policies in one account cannot.
Interview tip → Say "account per workload per environment" and be ready to defend the cost of more accounts.
More on IAM, Organizations and Multi-Account
A developer needs read-only access to one S3 bucket from their laptop. How do you grant it without creating long-lived access keys?BeginnerAn EC2 application needs to write to DynamoDB. Where do the credentials come from?BeginnerSecurity wants to know who deleted a production S3 bucket yesterday. How do you find out?BeginnerYou must stop anyone in a member account from disabling CloudTrail, even account admins. What do you use?BeginnerA cross-account role assumption fails with AccessDenied even though the target role trusts the source account. What do you check?IntermediateDesign access for a CI pipeline in GitHub Actions to deploy to AWS without storing AWS keys in GitHub.Intermediate