Interview Prep/Terraform/Testing Upgrades and Large-Scale Operations

Design a multi-account AWS landing zone managed with Terraform.

AdvancedScenarioTesting Upgrades and Large-Scale Operations
Answer

Situation read → Dozens of accounts, consistent guardrails.

What I'd do →

  1. Use AWS Organizations with OUs; manage them and SCPs in a management stack.
  2. An account factory (AWS Control Tower Account Factory for Terraform, or custom) creates accounts from a request file.
  3. Baseline modules per account: IAM roles, CloudTrail, Config, VPC, budgets.
  4. Layered states, a central state bucket in a tooling account, and OIDC roles per account.

Why → Accounts are created and baselined by code, so each looks identical and is auditable.

Interview tip → Describe the account-vending flow end to end.

All Terraform questions Roadmap: Terraform in production

More on Testing Upgrades and Large-Scale Operations