Interview Prep/Terraform/State and Backends in Production

How do you decide where state boundaries go?

IntermediateProductionState and Backends in Production
Answer

Layer by lifecycle and risk: things that change rarely and are catastrophic if broken (VPC, KMS, IAM) in one state, volatile app layers in others; separate by environment and account always; separate by team when ownership differs. Too few states give slow plans and large blast radius; too many give an orchestration headache and cross-state dependencies.

All Terraform questions Roadmap: Terraform in production

More on State and Backends in Production