SpinTheMic
Pro

Interview practice question

Refactoring a huge Terraform monolith

Data Engineering · DataOps CI/CD · Experienced

All infrastructure is in one Terraform root module with thousands of resources. Plans take 20 minutes and any change is risky. How do you refactor it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Split into smaller root modules by layer and environment.
  • Use moved and removed/import blocks to migrate state without recreating.
  • Share outputs via remote state or data sources.
  • Migrate incrementally with plans showing no changes.
  • Add ownership per component.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics