Question 680
A Terraform associate evaluates: A policy owner needs governance checks that operate independently of terraform validate. Select TWO complementary responses: the appropriate action AND direct evidence it worked.
Explanation
Correct Answers
The observed situation is: A policy owner needs governance checks that operate independently of terraform validate. The acceptance evidence is: A deliberately disallowed plan fails the configured policy gate and cannot apply without authorized override where permitted. It verifies the corrective approach (Use HCP Terraform policy sets, team access and approvals to enforce organizational infrastructure rules around managed runs.) and controls the risk: Without enforcement gates a valid Terraform plan can still violate security or cost policy. Checking an unrelated Terraform setting would not prove the stated requirement was met.
The case says: A policy owner needs governance checks that operate independently of terraform validate. The directly relevant Terraform response is: Use HCP Terraform policy sets, team access and approvals to enforce organizational infrastructure rules around managed runs. This addresses the related failure mode: Without enforcement gates a valid Terraform plan can still violate security or cost policy. Validate the result by checking: A deliberately disallowed plan fails the configured policy gate and cannot apply without authorized override where permitted. The selection matches this objective, rather than a different Terraform administration task.
Incorrect Answers
A local terraform command connected to HCP Terraform can trigger remote operations and need not imply the state is stored in the local directory. This belongs to CLI-driven HCP Terraform remote operations (official objective 8a). Its separate risk is 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. The question instead tests HCP Terraform policy and governance controls; that other safeguard alone does not verify it.
Connect an HCP Terraform workspace to an authorized VCS repository so approved commits and pull requests can drive remote plans and runs. That addresses HCP Terraform VCS-driven runs (official objective 8a), specifically the hazard that a workspace without the intended VCS connection will not automatically track repository changes. Here the necessary action or evidence is the paired action A deliberately disallowed plan fails the configured policy gate and cannot apply without authorized override where permitted and separate validation Use HCP Terraform policy sets, team access and approvals to enforce organizational infrastructure rules around managed runs, 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 addresses HCP Terraform cloud integration and credentials (official objective 8d). The separate hazard is that a cloud block conflicts with a backend block, while hardcoded long-lived cloud credentials undermine secure integration. It does not by itself satisfy the case-specific requirement for HCP Terraform policy and governance controls.