SpinTheMic
Pro

Interview practice question

Terraform state file committed to Git

Cloud & DevOps · Terraform and IaC · Beginner

You find terraform.tfstate committed to a Git repository. Why is this a problem, and what do you do?

What a strong answer covers

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

  • State may contain secrets in plain text.
  • Merge conflicts, outdated copies, no locking.
  • Move to remote backend.
  • Remove from repo; .gitignore.
  • Rotate exposed secrets; history cleanup if needed.
Practise this topic

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

See all topics