002 · Domain 7: HCP Terraform / Enterprise Operations · 12% of the exam
Task 7.1: Understand how to operate HCP Terraform
Running HCP Terraform day to day: VCS, CLI and API-driven runs, configuration versions, health assessments and drift detection, run states, and when Stacks fit better than workspaces.
Study it
Operating HCP Terraform: run workflows, health assessments and Stacks
Lesson coming
Sample questions
Try each one before opening the answer. Every option is explained, with the HashiCorp documentation page that proves it.
Question 1 · choose 1
An organization on the HCP Terraform Standard edition enables health assessments for a workspace that uses Terraform 1.15. The workspace's last run applied successfully, but no drift or continuous validation results ever appear. The workspace's execution mode is Local, with plans and applies run in the team's CI system. What is the cause?
AHealth assessments are a Premium feature whatever the execution mode, unavailable on Standard
BContinuous validation needs check blocks, and without them drift detection is skipped as well
CAssessments require remote or agent execution mode, which these runs do not use
DTerraform 1.15 is newer than health assessments support; pin 1.3
Show the answer and why
AHealth assessments are a Premium feature whatever the execution mode, unavailable on Standard
Incorrect
Health assessments are available in the Standard and Premium editions.
BContinuous validation needs check blocks, and without them drift detection is skipped as well
Incorrect
Drift detection runs regardless of check blocks; continuous validation simply has fewer conditions to evaluate.
CAssessments require remote or agent execution mode, which these runs do not use
Correct
Workspaces need remote or agent execution mode for health assessments, because HCP Terraform runs a speculative plan to assess them.
DTerraform 1.15 is newer than health assessments support; pin 1.3
Incorrect
Drift detection needs 0.15.4 or later and continuous validation 1.3 or later; newer versions qualify.
Health assessments need Standard or Premium, a supported Terraform version, remote or agent execution and a successful latest run. Local execution mode keeps state in HCP Terraform but runs nothing there.
A team deploys the same components to twelve regions and wants rules that automatically approve deployment runs for some groups. Which HCP Terraform construct supports that?
ATwelve workspaces with auto-apply
BOne workspace with twelve variable sets
CRun triggers between regional deployment workspaces
DA Stack with deployment groups
Show the answer and why
ATwelve workspaces with auto-apply
Incorrect
Auto-apply is not deployment group orchestration.
BOne workspace with twelve variable sets
Incorrect
One workspace holds one state.
CRun triggers between regional deployment workspaces
Incorrect
Run triggers chain runs; they do not approve groups.
DA Stack with deployment groups
Correct
Deployment group orchestration rules are supported by Stacks and not by workspaces.
Workspaces keep features Stacks lack, such as continuous validation, so compare the feature table before choosing.