DevOps Engineer interview question

Two engineers ran Terraform against production at the same time. One run failed and left the infrastructure half-changed. How do you recover safely?

Scenario Asked in DevOps Engineer · Site Reliability Engineer (SRE) interviews

Members can save this page, take notes and track progress. See membership · Sign in

Summary

Freeze further changes, then establish the truth: what the state file says, what actually exists, and which run changed what. Restore or reconcile the state (refresh-only plan, state backups or versioned state), fix any resources that were partly created, and get to a plan that shows only the intended changes before applying again. Then make concurrent applies impossible.

Keep reading with a membership

The full answer with examples, key points and comparisons is part of the membership, along with every other interview answer, progress tracking and Daily Review. Most-asked answers stay free to read.

See plans and free trial Already a member? Sign in

More DevOps Engineer questions

← All DevOps Engineer questions

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake