Interview Prep/Networking/Network Operations & Change Management

How do you manage VPCs and network resources with Terraform without drift or accidents?

IntermediateScenarioNetwork Operations & Change Management
Answer

Situation read → Shared network code has a large blast radius.

What I'd do →

  1. Keep network in its own state, with remote backend and locking (S3 plus DynamoDB or native S3 locking)
  2. Use a reviewed module for VPC, subnets and routes with cidrsubnet
  3. Add prevent_destroy on VPCs and TGWs
  4. Run terraform plan on a schedule to detect drift
  5. Restrict who can apply via CI roles

Why → A small, isolated state limits what one bad apply can destroy.

Interview tip → Say you separate network from application stacks for blast radius reasons.

All Networking questions Roadmap: Networking for DevOps

More on Network Operations & Change Management