Terraform Associate (004) · Free practice question 7 of 12
Health assessments for drift detection
Nightjar Logistics wants HCP Terraform to check its workspaces on a schedule and alert the team when real infrastructure no longer matches state, without anyone starting a plan. Which feature provides this?
- A.Speculative plans on pull requests
- B.Health assessments with drift detection
- C.The dependency lock file
- D.Cost estimation
Show answer and explanation
Correct answer: B. Health assessments with drift detection
Why: Once enabled for a workspace or organization, HCP Terraform health assessments run automatically in the background and include drift detection, which reports when real infrastructure has changed outside Terraform, as well as continuous validation of checks and conditions. Speculative plans on pull requests run only when a pull request is opened or updated. The lock file pins provider versions, and cost estimation shows the cost impact of a planned run.
More free Terraform Associate (004) questions
- Skipping refresh during plan
- Local state backup file
- Default CLI workspace cannot be deleted
- Local execution mode in HCP Terraform
- Self-hosted agents for private networks
- Run triggers between workspaces
- Dynamic provider credentials with OIDC
- terraform_data triggers_replace argument
- Provisioners as a last resort
- Running tests with terraform test
- Lock file hashes for multiple platforms