Question 980
At Frosthaven Education Services, an authorized infrastructure engineering team manages a Terraform 1.12 and HCP Terraform environment. The team encounters the following situation: a teammate deletes a managed firewall rule directly in the console and Terraform still lists its address in prior state. Choose the technically best Terraform Associate 004 practice response to this particular infrastructure case. Which operational control addresses the risk long term?
Explanation
Correct Answer
Investigate external deletion events before restoring configuration. This control addresses state drift from deleted remote object because state may describe an object that no longer exists until Terraform observes remote changes. The original implementation remedy remains: Run a refreshed plan and review whether Terraform should recreate the missing rule.
Incorrect Answers
That review protects the control associated with: Removing an address from Terraform management should be distinct from deleting the remote object. It does not directly prevent the stated recurrence, which concerns: State may describe an object that no longer exists until Terraform observes remote changes. The appropriate guardrail is “Investigate external deletion events before restoring configuration”.
This safeguard is for the dependency described by: Reconfigure tells Terraform to use changed backend settings without the state migration workflow. The continuing risk here is determined by: State may describe an object that no longer exists until Terraform observes remote changes. The targeted safeguard is “Investigate external deletion events before restoring configuration”.
That review protects the control associated with: The sensitive marker suppresses routine UI output but ordinarily does not prevent state persistence. It does not directly prevent the stated recurrence, which concerns: State may describe an object that no longer exists until Terraform observes remote changes. The appropriate guardrail is “Investigate external deletion events before restoring configuration”.