Interview practice question
A Terraform apply deleted a production database
Cloud & DevOps · Terraform and IaC · Experienced
A Terraform apply in production deleted a database because a reviewer missed the destroy in a long plan. What guardrails would you add?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Restore from backup; postmortem.
- prevent_destroy and cloud deletion protection.
- Policy blocks destroys of stateful resources without approval.
- Highlight destroys in PR comments.
- Smaller states; separate approvals for prod.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.