Question 660
A Terraform associate evaluates: A workspace run history should link each infrastructure plan to a repository revision. Select TWO complementary responses: the appropriate action AND direct evidence it worked.
Explanation
Correct Answers
The case says: A workspace run history should link each infrastructure plan to a repository revision. The directly relevant Terraform response is: Connect an HCP Terraform workspace to an authorized VCS repository so approved commits and pull requests can drive remote plans and runs. This addresses the related failure mode: A workspace without the intended VCS connection will not automatically track repository changes. Validate the result by checking: A reviewed commit queues the expected plan in the intended HCP Terraform workspace with run records. The selection matches this objective, rather than a different Terraform administration task.
The observed situation is: A workspace run history should link each infrastructure plan to a repository revision. The acceptance evidence is: A reviewed commit queues the expected plan in the intended HCP Terraform workspace with run records. It verifies the corrective approach (Connect an HCP Terraform workspace to an authorized VCS repository so approved commits and pull requests can drive remote plans and runs.) and controls the risk: A workspace without the intended VCS connection will not automatically track repository changes. Checking an unrelated Terraform setting would not prove the stated requirement was met.
Incorrect Answers
A CLI workspace in one directory is not the same as an HCP workspace with access controls, project membership and run history. This belongs to HCP Terraform projects workspaces and triggers (official objective 8c). Its separate risk is that a CLI workspace in one directory is not the same as an HCP workspace with access controls, project membership and run history. The question instead tests HCP Terraform VCS-driven runs; that other safeguard alone does not verify it.
Use an HCP Terraform workspace with a supported cloud configuration or remote workflow for CLI-driven plans and applies, keeping state under the hosted workspace. That addresses CLI-driven HCP Terraform remote operations (official objective 8a), specifically the hazard that a local terraform command connected to HCP Terraform can trigger remote operations and need not imply the state is stored in the local directory. Here the necessary action or evidence is the paired action Connect an HCP Terraform workspace to an authorized VCS repository so approved commits and pull requests can drive remote plans and runs and separate validation A reviewed commit queues the expected plan in the intended HCP Terraform workspace with run records, not that separate control.
The CLI targets the correct hosted workspace and remote runs obtain approved short-lived credentials without static secrets in code. This does not provide the required HCP Terraform VCS-driven runs action-and-evidence pair.