How did your Terraform setup scale across many teams and accounts?
AdvancedBehavioral5+ years: senior and lead-level deep-dives
Answer
Good answer looks like → "Platform-owned modules in a private registry with semantic versioning; team-owned stacks in their own repos consuming those modules; state per account per component in a central encrypted bucket with per-team IAM prefixes; plan and apply through a shared GitHub Actions workflow with OPA policies on the plan JSON; and account vending through Account Factory for Terraform. About 400 state files, each planning in under a minute."
Follow-ups to expect → How do you roll out a security fix in a module to all consumers? Who can apply to production accounts?
Red flags → A single central team running every apply for every team.
More on 5+ years: senior and lead-level deep-dives
Walk me through the platform architecture you designed, and the key decisions behind it.AdvancedHow did you decide between multi-region active-active and active-passive?AdvancedHow many environments did you have, and how did you decide that number?AdvancedHow did you measure the success of your platform team?AdvancedHow did you handle a migration across many teams with minimal disruption?AdvancedWhat would you change about your current company's infrastructure if you had full authority?Advanced