Question 8 of 10Pro Only

Explain advanced Terraform state operations: state mv, import, replace-provider, and taint. When is each used, and what precautions should be taken when performing state surgery?

Sample answer preview

Advanced Terraform state operations, sometimes called state surgery, allow engineers to manipulate the state file directly to handle scenarios that normal plan and apply workflows cannot address. These operations are powerful but carry significant risk if performed incorrectly.

state-mvterraform-importreplace-providertaintmoved-blockimport-block

Unlock the full answer

Get the complete model answer, key points, common pitfalls, and access to 9+ more Cloud Engineer interview questions.

Upgrade to Pro

Starting at $19/month • Cancel anytime