SpinTheMic
Pro

Interview practice question

Creating the same infrastructure for dev and prod

Cloud & DevOps · Terraform and IaC · Beginner

You need identical infrastructure in dev and prod, but with smaller instances in dev. How do you do it without copying code?

What a strong answer covers

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

  • Shared module for infrastructure.
  • Environment root configs call module.
  • Different variable values (tfvars).
  • Separate state per environment.
  • Same code path tested in dev first.
Practise this topic

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

See all topics