Question 550
A Terraform associate evaluates: A recovery runbook must document who owns a stale lock before releasing it. Select TWO complementary responses: the appropriate action AND direct evidence it worked.
Explanation
Correct Answers
The case says: A recovery runbook must document who owns a stale lock before releasing it. The directly relevant Terraform response is: Use terraform force-unlock only for your own stale lock after confirming no legitimate operation still holds it. This addresses the related failure mode: Forcibly unlocking an active run can permit concurrent writers and corrupt resource state. Validate the result by checking: The stale lock ID belongs to the failed operation and normal operations can resume without overlapping writes. The selection matches this objective, rather than a different Terraform administration task.
The observed situation is: A recovery runbook must document who owns a stale lock before releasing it. The acceptance evidence is: The stale lock ID belongs to the failed operation and normal operations can resume without overlapping writes. It verifies the corrective approach (Use terraform force-unlock only for your own stale lock after confirming no legitimate operation still holds it.) and controls the risk: Forcibly unlocking an active run can permit concurrent writers and corrupt resource state. Checking an unrelated Terraform setting would not prove the stated requirement was met.
Incorrect Answers
The plan reports a deliberate manual attribute change and reviewers decide whether to restore code intent or update configuration. This belongs to Detect and review out-of-band drift (official objective 6d). Its separate risk is that assuming configuration and infrastructure remain identical can hide unapproved console edits. The question instead tests Force-unlock safety; that other safeguard alone does not verify it.
Local state stored only on one laptop is hard for a team to coordinate and can be lost or leaked. That is the exact risk associated with Default local backend state storage (official objective 6a), not the required Force-unlock safety outcome.
Use a backend that supports locking and let Terraform acquire its automatic lock during state-changing operations. This addresses Automatic state locking for conflicting writers (official objective 6b). The separate hazard is that two simultaneous applies against one unlocked state can overwrite each other's resource bindings or corrupt management. It does not by itself satisfy the case-specific requirement for Force-unlock safety.