Terraform Associate practice exam
Free HashiCorp Certified: Terraform Associate (004) practice test with 200 original questions and detailed explanations, organized by the 8 exam domains.
About the Terraform Associate exam
The Terraform Associate (004) exam validates the basics of infrastructure as code with Terraform: providers and state, the core workflow, writing configuration, modules, state management, importing and maintaining infrastructure, and HCP Terraform. HashiCorp doesn't publish objective weights, so exam simulations use estimated weights.
- Questions
- About 57
- Duration
- 1 hour
- Exam version
- 004 (Terraform 1.12)
- In this practice bank
- 200 questions
- Domains
- 8
Terraform Associate exam domains
Each domain page lists every practice question with its answer and explanation.
| Domain | Exam weight | Practice questions |
|---|---|---|
| 1. Infrastructure as Code (IaC) with Terraform | 8% | 15 |
| 2. Terraform Fundamentals | 12% | 25 |
| 3. Core Terraform Workflow | 15% | 30 |
| 4. Terraform Configuration | 22% | 45 |
| 5. Terraform Modules | 11% | 22 |
| 6. Terraform State Management | 13% | 25 |
| 7. Maintain Infrastructure with Terraform | 9% | 18 |
| 8. HCP Terraform | 10% | 20 |
Sample Terraform Associate practice questions
One question from each domain. Open "Show answer" for the explanation.
-
Question 1. What is infrastructure as code (IaC)?
Show answer
Answer: C. Managing infrastructure through machine-readable definition files
IaC describes infrastructure in files that can be versioned, reviewed, tested, and applied repeatedly by tools such as Terraform.
-
Question 2. Which block declares the providers a configuration needs and where to get them?
Show answer
Answer: A. required_providers inside the terraform block
Each entry sets a local name, a source address such as hashicorp/aws, and a version constraint.
-
Question 3. What is the core Terraform workflow?
Show answer
Answer: B. Write, plan, apply
You write configuration, review the plan, then apply it. init comes first in a new working directory.
-
Question 4. In the address aws_instance.web, what are aws_instance and web?
Show answer
Answer: B. The resource type and the local name
Resource addresses are <type>.<name>, and the pair must be unique within a module.
-
Question 5. What is a Terraform module?
Show answer
Answer: B. A set of configuration files in one directory
Every configuration is a module. Modules called from another module are child modules.
-
Question 6. Which backend does Terraform use when no backend is configured?
Show answer
Answer: A. The local backend
The local backend writes terraform.tfstate on disk and locks it with the operating system's file locking.
How to prepare for Terraform Associate with this practice test
- Learn by domain. Use practice mode on one domain at a time and read every explanation, including for questions you got right.
- Simulate the exam. Take timed mock exams that sample domains by their official weight, at about 63 seconds per question.
- Close the gaps. Review the progress dashboard, drill your weakest domain, and retry previously missed questions.
- Check readiness. Aim for a readiness score comfortably above 70% across all domains before booking the real exam.
Terraform Associate FAQ
How many questions are on the Terraform Associate exam?
The official HashiCorp Certified: Terraform Associate (004) exam has About 57 questions, with 1 hour to complete it. Our timed simulation uses the same pace per question.
What topics does the Terraform Associate exam cover?
It covers 8 domains: Infrastructure as Code (IaC) with Terraform (8%); Terraform Fundamentals (12%); Core Terraform Workflow (15%); Terraform Configuration (22%); Terraform Modules (11%); Terraform State Management (13%); Maintain Infrastructure with Terraform (9%); HCP Terraform (10%).
Are these real Terraform Associate exam questions?
No. Every question is original, written for this site from the publicly available exam outline. None are copied from the real exam, exam dumps, or commercial question banks. HashiCorp, Terraform, and HCP Terraform are trademarks of HashiCorp, Inc. This site is not affiliated with HashiCorp.
Is this Terraform Associate practice test free?
Yes. All 200 questions, explanations, timed mock exams, and progress charts are free, with no sign-up. Your progress is stored only in your browser.
How should I use these Terraform Associate practice questions?
Start in practice mode by domain and read each explanation, then take timed exam simulations weighted like the real exam. Use the "previously missed" pool to review weak areas until your readiness score is comfortably above the pass mark.