Question 190
A Terraform associate evaluates: A module author tests configuration consistency without creating any cloud resources. Select TWO complementary responses: the appropriate action AND direct evidence it worked.
Explanation
Correct Answers
The observed situation is: A module author tests configuration consistency without creating any cloud resources. The acceptance evidence is: Validate reports consistent HCL and a separate plan exposes provider or infrastructure issues. It verifies the corrective approach (Run terraform validate to check configuration syntax and internal consistency, then use plan to evaluate actual infrastructure differences.) and controls the risk: Passing validate does not prove credentials, permissions or remote object behavior will succeed at apply. Checking an unrelated Terraform setting would not prove the stated requirement was met.
The case says: A module author tests configuration consistency without creating any cloud resources. The directly relevant Terraform response is: Run terraform validate to check configuration syntax and internal consistency, then use plan to evaluate actual infrastructure differences. This addresses the related failure mode: Passing validate does not prove credentials, permissions or remote object behavior will succeed at apply. Validate the result by checking: Validate reports consistent HCL and a separate plan exposes provider or infrastructure issues. The selection matches this objective, rather than a different Terraform administration task.
Incorrect Answers
Terraform apply mutates managed infrastructure; treating it as a read-only preview can cause outages. This belongs to Apply reviewed changes (official objective 3e). Its separate risk is that terraform apply mutates managed infrastructure; treating it as a read-only preview can cause outages. The question instead tests terraform validate versus provider-aware plan; that other safeguard alone does not verify it.
The apply uses the previously reviewed values and reports no unexpected input prompts or new 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 Validate reports consistent HCL and a separate plan exposes provider or infrastructure issues and separate validation Run terraform validate to check configuration syntax and internal consistency, then use plan to evaluate actual infrastructure differences, not that separate control.
Correct unresolved references and schema errors reported by terraform validate instead of attempting an apply to discover them. This addresses Detect invalid references and values (official objective 3c). The separate hazard is that a typo in a resource reference or invalid argument can prevent Terraform from constructing a valid graph. It does not by itself satisfy the case-specific requirement for terraform validate versus provider-aware plan.