SpinTheMic
Pro

Interview practice question

Terraform state was lost or corrupted

Cloud & DevOps · Terraform and IaC · Experienced

Your Terraform state file for production was corrupted. How do you recover, and how do you prevent it in future?

What a strong answer covers

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

  • Restore previous version (backend versioning).
  • Verify with plan (no unexpected changes).
  • If no backup: re-import resources.
  • Prevent: versioning, locking, restricted access.
  • Never hand-edit state.
Practise this topic

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

See all topics