Question 230
A Terraform associate evaluates: A change review asks how to confirm the declared resources were actually applied. Select TWO complementary responses: the appropriate action AND direct evidence it worked.
Explanation
Correct Answers
The observed situation is: A change review asks how to confirm the declared resources were actually applied. The acceptance evidence is: The apply log reports completion and a subsequent plan shows only any remaining deliberate differences. It verifies the corrective approach (Run terraform apply only after reviewing the proposed plan and ensuring appropriate cloud credentials and authorization.) and controls the risk: Terraform apply mutates managed infrastructure; treating it as a read-only preview can cause outages. Checking an unrelated Terraform setting would not prove the stated requirement was met.
The case says: A change review asks how to confirm the declared resources were actually applied. The directly relevant Terraform response is: Run terraform apply only after reviewing the proposed plan and ensuring appropriate cloud credentials and authorization. This addresses the related failure mode: Terraform apply mutates managed infrastructure; treating it as a read-only preview can cause outages. Validate the result by checking: The apply log reports completion and a subsequent plan shows only any remaining deliberate differences. The selection matches this objective, rather than a different Terraform administration task.
Incorrect Answers
A destroy operation can remove every managed object in the active configuration and state, not just temporary resources. This belongs to Destroy with visibility into consequences (official objective 3f). Its separate risk is that a destroy operation can remove every managed object in the active configuration and state, not just temporary resources. The question instead tests Apply reviewed changes; that other safeguard alone does not verify it.
Apply an approved saved plan with terraform apply planfile rather than attempting to pass fresh input variables to the saved plan. That addresses Saved plan application and input immutability (official objective 3e), specifically the hazard that changing inputs after plan generation cannot retroactively change the actions encoded in that saved artifact. Here the necessary action or evidence is the paired action The apply log reports completion and a subsequent plan shows only any remaining deliberate differences and separate validation Run terraform apply only after reviewing the proposed plan and ensuring appropriate cloud credentials and authorization, not that separate control.
The formatter reports only formatting changes and separate validate checks configuration correctness. This does not provide the required Apply reviewed changes action-and-evidence pair.