Question 580
A Terraform associate evaluates: A compliance review asks how Terraform notices changes made without updating HCL. Select TWO complementary responses: the appropriate action AND direct evidence it worked.
Explanation
Correct Answers
The observed situation is: A compliance review asks how Terraform notices changes made without updating HCL. The acceptance evidence is: The plan reports a deliberate manual attribute change and reviewers decide whether to restore code intent or update configuration. It verifies the corrective approach (Use terraform plan against the actual current infrastructure to identify differences caused by manual or external changes before choosing a corrective action.) and controls the risk: Assuming configuration and infrastructure remain identical can hide unapproved console edits. Checking an unrelated Terraform setting would not prove the stated requirement was met.
The case says: A compliance review asks how Terraform notices changes made without updating HCL. The directly relevant Terraform response is: Use terraform plan against the actual current infrastructure to identify differences caused by manual or external changes before choosing a corrective action. This addresses the related failure mode: Assuming configuration and infrastructure remain identical can hide unapproved console edits. Validate the result by checking: The plan reports a deliberate manual attribute change and reviewers decide whether to restore code intent or update configuration. The selection matches this objective, rather than a different Terraform administration task.
Incorrect Answers
Use terraform plan -refresh-only when the goal is to inspect state updates to match real objects without proposing configuration-driven repairs. This belongs to Refresh-only planning and state synchronization (official objective 6d). Its separate risk is that confusing refresh-only with a normal corrective plan can leave configuration drift unresolved or record unintended state updates. The question instead tests Detect and review out-of-band drift; that other safeguard alone does not verify it.
The initialized configuration uses one supported backend mechanism and no credentials appear in tracked configuration. This is relevant to Backend credentials and HCP cloud block exclusivity (official objective 6c). Its distinct failure risk is that hardcoded backend access tokens can persist in.terraform metadata and saved plans, and cloud and backend blocks conflict. The present question tests Detect and review out-of-band drift, which this measure alone does not establish.
Forcibly unlocking an active run can permit concurrent writers and corrupt resource state. This addresses Force-unlock safety (official objective 6b). The separate hazard is that forcibly unlocking an active run can permit concurrent writers and corrupt resource state. It does not by itself satisfy the case-specific requirement for Detect and review out-of-band drift.