HashiCorp Terraform Associate (004) · Section 8 · 18% of the exam
Use HCP Terraform to create infrastructure
One of the objectives of the HashiCorp Certified: Terraform Associate (004) exam, in the section “HCP Terraform”. Here is what it covers, the points to remember and a question to try.
What it covers
HCP Terraform is HashiCorp's managed service that stores state, runs Terraform remotely and gives teams a shared run workflow. This lesson covers the three run workflows, remote versus local execution, the life of a run, variables and credentials, and the free tier.
Points to remember
- HCP Terraform was Terraform Cloud; Terraform Enterprise is the self-managed edition.
- Hierarchy: organization > project > workspace; a workspace holds config, variables, state versions and runs.
- Three workflows: VCS-driven, CLI-driven (cloud block) and API-driven.
- Execution modes: Remote (default), Agent (private networks, outbound only) and Local (variables not used).
- A speculative plan is plan-only and cannot be applied; pull requests and CLI plans use it.
Try a question
What is a speculative plan?
- AA plan that applies itself when the cost estimate is low
- BA plan-only run that can never be applied
- CA plan that ignores variables and uses defaults
- DA plan stored on disk with -out and applied later
Show the answer
B. A speculative plan shows what would change without any option to apply it, so it is safe to run for reviews.
Written for practice in the style of the exam: never a question from the real exam.
In the course
The lesson Creating infrastructure with HCP Terraform teaches this objective (about 40 minutes), and 20 practice questions test it. The course has lessons, exam-style questions, timed practice exams and an AI tutor for every objective, and a pass prediction that tells you when you're ready to book.