Here are 15 original exam-style questions for the HashiCorp Certified: Terraform Associate (004) exam, mapped to the official 004 objectives. Each one comes with the answer and a short reason why every other option is wrong. Answer each question before you read the explanation, and write down the objective of every one you miss. That list tells you where to study first.
These are not real exam questions. They are written to HashiCorp's official 004 exam content list and match current Terraform behaviour. The real exam also uses true/false and multiple-answer items; every question here has one correct answer. For a full study plan, see the Terraform Associate (004) prep page.
The 004 objectives and how this sample is split
HashiCorp lists eight objective areas for 004 and does not publish percentage weights, so this sample covers every area.
| Objective area | Official weight | Questions here |
|---|---|---|
| 1. Infrastructure as Code (IaC) with Terraform | Not published | 1 (Q1) |
| 2. Terraform fundamentals | Not published | 2 (Q2–Q3) |
| 3. Core Terraform workflow | Not published | 2 (Q4–Q5) |
| 4. Terraform configuration | Not published | 3 (Q6–Q8) |
| 5. Terraform modules | Not published | 2 (Q9–Q10) |
| 6. Terraform state management | Not published | 2 (Q11–Q12) |
| 7. Maintain infrastructure with Terraform | Not published | 2 (Q13–Q14) |
| 8. HCP Terraform | Not published | 1 (Q15) |
The 004 exam is aligned to Terraform 1.12. It replaced version 003 on 8 January 2026.
The questions
Question 1 · Infrastructure as Code (IaC) with Terraform
A team builds its staging and production environments by clicking through a cloud console. The two environments keep drifting apart, and nobody can say who changed what. Which benefit of infrastructure as code most directly solves this?
Answer: B
Defining infrastructure as code gives you a reviewed, versioned source of truth. Applying the same configuration builds matching environments, and the history shows who changed what.
- A is false. Terraform only acts when you run a plan or apply; it does not watch for console changes.
- C is false. Each provider has its own resource types. Terraform uses one workflow across providers, not one resource type.
- D is false. You still need to know what you are building.
How did you do?
Fifteen questions is a sample, not a readiness verdict. Use your score to decide where to look next, not whether to book.
| Score | What it suggests |
|---|---|
| 13–15 | Strong sample. Confirm it across a full-length mock before you book. |
| 9–12 | A solid base with gaps. Check whether your misses cluster in one or two objective areas. |
| 5–8 | Several areas need work. Start with configuration and state, which have the most sub-objectives. |
| 0–4 | Build the foundations first: write, plan and apply a small configuration end to end. |
The real exam covers eight objective areas. Getting ready means seeing your accuracy in each one across many questions, so you know which gaps will cost you marks. If Terraform is part of a wider cloud career plan, read how to become an AWS cloud engineer and the AWS certification roadmap for 2027.
How StudyTech AI gets you exam-ready
StudyTech AI is a personalised AWS and AI certification prep platform. It finds your knowledge gaps, builds your practice around your skills and gaps, turns your mistakes into flashcards, scores your readiness for every exam domain, and tells you when you are ready to take your exam.
- Take a free diagnostic. It maps your strengths and weaknesses across every Terraform Associate objective area.
- Study your weakest area first. Each focused lesson ends with an immediate quiz, so you prove you understood it.
- Turn wrong answers into flashcards. Every mistake becomes a card you review until it sticks.
- Track progress in real time. Your dashboard updates as you practise, and mock exams are personalised to your weak areas.
- Book when the data says so. Your readiness score tells you when you are ready to sit the exam.
There is also a community inside StudyTech AI where learners help each other with questions and study plans.
StudyTech AI costs $29 a month or $297 a year. The assessment is free.
Start a free assessment on StudyTech AI
Verified 7 November 2026 against the official exam guide.