Question 180
A Terraform associate evaluates: A change review needs to distinguish reconfigure from a deliberate state migration. Select TWO complementary responses: the appropriate action AND direct evidence it worked.
Explanation
Correct Answers
The case says: A change review needs to distinguish reconfigure from a deliberate state migration. The directly relevant Terraform response is: Use terraform init with the appropriate migration or reconfiguration option after changing backend configuration, following a backed-up state-migration plan. This addresses the related failure mode: Changing a backend block without reinitializing may leave Terraform using stale backend settings. Validate the result by checking: The initialized backend targets the approved new state location and existing bindings remain intact. The selection matches this objective, rather than a different Terraform administration task.
The observed situation is: A change review needs to distinguish reconfigure from a deliberate state migration. The acceptance evidence is: The initialized backend targets the approved new state location and existing bindings remain intact. It verifies the corrective approach (Use terraform init with the appropriate migration or reconfiguration option after changing backend configuration, following a backed-up state-migration plan.) and controls the risk: Changing a backend block without reinitializing may leave Terraform using stale backend settings. Checking an unrelated Terraform setting would not prove the stated requirement was met.
Incorrect Answers
The destruction plan lists only the intended disposable environment resources and approval is recorded. This is relevant to Destroy with visibility into consequences (official objective 3f). Its distinct failure risk is that a destroy operation can remove every managed object in the active configuration and state, not just temporary resources. The present question tests Reinitialize after backend changes, which this measure alone does not establish.
Terraform apply mutates managed infrastructure; treating it as a read-only preview can cause outages. This addresses Apply reviewed changes (official objective 3e). The separate hazard is that terraform apply mutates managed infrastructure; treating it as a read-only preview can cause outages. It does not by itself satisfy the case-specific requirement for Reinitialize after backend changes.
Run terraform init in the root configuration directory to install required providers and child modules and initialize backend settings. This does not provide the required Reinitialize after backend changes action-and-evidence pair.