Interview Prep/Real-World Interview/5+ years: senior and lead-level deep-dives

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.

All Real-World Interview questions Roadmap: Interview readiness

More on 5+ years: senior and lead-level deep-dives