Question 590
A Terraform associate evaluates: A reviewer wants a read-oriented drift inventory before deciding whether to accept or fix changes. Select TWO complementary responses: the appropriate action AND direct evidence it worked.
Explanation
Correct Answers
The observed situation is: A reviewer wants a read-oriented drift inventory before deciding whether to accept or fix changes. The acceptance evidence is: A refresh-only plan describes state changes caused by real-world attributes but does not propose changing remote infrastructure. It verifies the corrective approach (Use terraform plan -refresh-only when the goal is to inspect state updates to match real objects without proposing configuration-driven repairs.) and controls the risk: Confusing refresh-only with a normal corrective plan can leave configuration drift unresolved or record unintended state updates. Checking an unrelated Terraform setting would not prove the stated requirement was met.
The case says: A reviewer wants a read-oriented drift inventory before deciding whether to accept or fix changes. The directly relevant Terraform response is: Use terraform plan -refresh-only when the goal is to inspect state updates to match real objects without proposing configuration-driven repairs. This addresses the related failure mode: Confusing refresh-only with a normal corrective plan can leave configuration drift unresolved or record unintended state updates. Validate the result by checking: A refresh-only plan describes state changes caused by real-world attributes but does not propose changing remote infrastructure. The selection matches this objective, rather than a different Terraform administration task.
Incorrect Answers
A second state-changing run waits or fails on the lock instead of proceeding concurrently. This is relevant to Automatic state locking for conflicting writers (official objective 6b). Its distinct failure risk is that two simultaneous applies against one unlocked state can overwrite each other's resource bindings or corrupt management. The present question tests Refresh-only planning and state synchronization, which this measure alone does not establish.
Changing only backend text without init and migration risks disconnected state or unintended resource recreation. This addresses Remote backend configuration and migration (official objective 6c). The separate hazard is that changing only backend text without init and migration risks disconnected state or unintended resource recreation. It does not by itself satisfy the case-specific requirement for Refresh-only planning and state synchronization.
Use terraform plan against the actual current infrastructure to identify differences caused by manual or external changes before choosing a corrective action. This does not provide the required Refresh-only planning and state synchronization action-and-evidence pair.