HashiCorp Certified: Terraform Associate (004) practice exam and study path
A free, timed 57-question 004 practice exam in 60 minutes, scored by domain, with every option explained after you submit. Also 230 practice questions you can check one at a time, a page for every task in the exam guide, and a study path. No sign-up.
$4.99for 12 months
For engineers who write and run Terraform: providers and state, the init, plan and apply workflow, configuration and modules, backends and drift, import and the state CLI, and HCP Terraform workspaces and governance.
The exam
- Exam code
- 004
- Questions
- Not yet published
- Time
- 60 minutes
- Passing score
- Not published
- Exam fee
- $70.5 (USD)
- Question types
- multiple choice, multiple response
A one-hour, online-proctored exam in English that tests Terraform 1.12; the credential is valid for 2 years and the fee is $70.50 plus local taxes and fees, with no free retake. HashiCorp's associate exams use true or false, multiple choice and multiple answer questions; our forms write the true or false kind as four-option questions. HashiCorp publishes neither the number of questions nor a passing score. Our forms hold 57 questions, the count candidates commonly report (community reports, not a HashiCorp figure), and the eight objectives carry equal weight because HashiCorp publishes none.
From HashiCorp's certification page and exam guide, checked Oct 18, 2026.
Domains and weights
Domain 1: Infrastructure as Code (IaC) with Terraform
12%
Domain 2: Terraform fundamentals
13%
Domain 3: Core Terraform workflow
13%
Domain 4: Terraform configuration
13%
Domain 5: Terraform modules
12%
Domain 6: Terraform state management
13%
Domain 7: Maintain infrastructure with Terraform
12%
Domain 8: HCP Terraform
12%
On our roadmap this comes after Cloud Practitioner. See every certification.
Practice
230 original practice questions, every option explained with the HashiCorp documentation page that proves it. Free, no sign-up; progress stays on this device.
230 questions · practice mode
All domains
Every sample question for this exam, in domain order.
20 questions · practice mode
Topic quiz — Domain 1: Infrastructure as Code (IaC) with Terraform
A topic quiz on domain 1 (12% of the exam).
26 questions · practice mode
Topic quiz — Domain 2: Terraform fundamentals
A topic quiz on domain 2 (13% of the exam).
38 questions · practice mode
Topic quiz — Domain 3: Core Terraform workflow
A topic quiz on domain 3 (13% of the exam).
47 questions · practice mode
Topic quiz — Domain 4: Terraform configuration
A topic quiz on domain 4 (13% of the exam).
25 questions · practice mode
Topic quiz — Domain 5: Terraform modules
A topic quiz on domain 5 (12% of the exam).
26 questions · practice mode
Topic quiz — Domain 6: Terraform state management
A topic quiz on domain 6 (13% of the exam).
21 questions · practice mode
Topic quiz — Domain 7: Maintain infrastructure with Terraform
A topic quiz on domain 7 (12% of the exam).
27 questions · practice mode
Topic quiz — Domain 8: HCP Terraform
A topic quiz on domain 8 (12% of the exam).
57 questions · 60 min · timed
Full practice exam
The real exam's pace, no feedback until you submit.
57 questions · 60 min · timed · exam pack
Practice exam 1
Included in the Terraform Associate exam pack.
57 questions · 60 min · timed · exam pack
Practice exam 2
Included in the Terraform Associate exam pack.
57 questions · 60 min · timed · exam pack
Practice exam 3
Included in the Terraform Associate exam pack.
More practice exams
The lessons, the sample questions on every task page and the first full practice exam are free and stay free. A pack adds the further timed 004 practice exams.
Terraform Associate exam pack
$4.99for 12 months
- Every paid 004 practice exam, timed, with every option explained
- The next version of this exam included when it changes within your 12 months
- 12 months of access. One payment, nothing renews by itself.
- 14-day refund, no conditions
- 14-day refund, no conditions: ask within 14 days of buying and you get the whole payment back.
- No pass guarantee. These are practice exams written by us from the exam guide and the HashiCorp documentation; a score here does not predict your result on the real exam.
Study path
One module per exam domain. Lessons that already exist on BytePatterns are linked; the rest are being written.
Module 1: Infrastructure as Code (IaC) with Terraform
1What IaC is: declarative configuration that a tool converges toTask 1.1
Partly covered by: Pods, ReplicaSets & Deployments
2Order from references: the dependency graph and parallel creationTask 1.1
Partly covered by: Topological Sort
3Why IaC: version history, review, plans, repeatable and disposable environmentsTask 1.2
Lesson coming
4One workflow for many platforms: multi-cloud, hybrid and SaaS providersTask 1.3
Lesson coming
Module 2: Terraform fundamentals
5Installing providers: required_providers, version constraints and the lock fileTask 2.1
Lesson coming
6How providers work: plugins, RPC, schemas, configuration and credentialsTask 2.2
Lesson coming
7Several providers and aliases in one configuration and across modulesTask 2.3
Lesson coming
8What state is for: bindings, metadata, caching, and why it is sensitiveTask 2.4
Lesson coming
Module 3: Core Terraform workflow
9Write, plan, apply for individuals, teams and HCP TerraformTask 3.1
Lesson coming
10terraform init: backends, modules, providers and the .terraform directoryTask 3.2
Lesson coming
11terraform validate and what it cannot catchTask 3.3
Lesson coming
12Reading a plan: actions, saved plans, exit codes and targetingTask 3.4
Partly covered by: Topological Sort
13terraform apply: approval, saved plans, -replace and failures part wayTask 3.5
Lesson coming
14Destroying infrastructure and the reverse dependency orderTask 3.6
Partly covered by: Topological Sort
15terraform fmt and the style conventionsTask 3.7
Lesson coming
Module 4: Terraform configuration
16Resources, data sources and ephemeral resourcesTask 4.1
Lesson coming
17References, count and for_each instances, splatsTask 4.2
Lesson coming
18Input variables, precedence, locals and outputsTask 4.3
Lesson coming
19Complex types: lists, sets, tuples, maps, objects and optional attributesTask 4.4
Lesson coming
20Expressions and functions: conditionals, for, dynamic blocks, templatesTask 4.5
Lesson coming
21Dependencies: references, depends_on and cyclesTask 4.6
Partly covered by: Topological Sort, Cycles in a Directed Graph
22Replacing without downtime: create_before_destroy and replace_triggered_byTask 4.6
Partly covered by: Scheduling & Rolling Updates
23Custom conditions: validation, preconditions, postconditions and checksTask 4.7
Lesson coming
24Sensitive values, ephemeral values, write-only arguments and VaultTask 4.8
Partly covered by: ConfigMaps, Secrets & Env
Module 5: Terraform modules
25Module sources: local paths, registries, Git, archives and object storageTask 5.1
Lesson coming
26Scope: inputs down, outputs up, nothing shared implicitlyTask 5.2
Lesson coming
27Using modules: calls, for_each, composition and refactoringTask 5.3
Lesson coming
28Module versions: constraints, Git refs and upgradesTask 5.4
Lesson coming
Module 6: Terraform state management
29The local backend: files, backups and workspacesTask 6.1
Lesson coming
30State locking: why concurrent writers corrupt stateTask 6.2
Partly covered by: Race Conditions, Locks and Mutexes
31Remote backends: the backend block, partial configuration and migrationTask 6.3
Lesson coming
32Encrypting state at rest in a cloud backendTask 6.3
Partly covered by: KMS, Envelope Encryption & Private CA
33Drift and refactoring: refresh-only, moved and removed blocksTask 6.4
Lesson coming
Module 7: Maintain infrastructure with Terraform
34Importing existing infrastructure: import blocks, generated configuration, the import commandTask 7.1
Lesson coming
35Inspecting and editing state with the CLITask 7.2
Lesson coming
36Verbose logging with TF_LOG and its companionsTask 7.3
Partly covered by: Observability Basics
Module 8: HCP Terraform
37Runs in HCP Terraform: VCS, CLI and API workflows, variables and run stagesTask 8.1
Lesson coming
38Governance: teams, policy as code, private registry, health assessmentsTask 8.2
Partly covered by: Organizations, SCPs & Control Tower
39Short-lived credentials for runs: dynamic provider credentialsTask 8.2
Partly covered by: Shared Responsibility & IAM
40Workspaces and projects: variable sets, run triggers and accessTask 8.3
Lesson coming
41Connecting the CLI: terraform login, the cloud block and state migrationTask 8.4
Lesson coming
Every task in the exam guide
The exam guide splits each domain into task statements. Each one has a page with a short summary, the lessons that teach it and open sample questions.
Domain 1: Infrastructure as Code (IaC) with Terraform
Domain 2: Terraform fundamentals
Domain 3: Core Terraform workflow
- 3.1Describe the Terraform workflow5 sample questions
- 3.2Initialize a Terraform working directory5 sample questions
- 3.3Validate a Terraform configuration5 sample questions
- 3.4Generate and review an execution plan for Terraform6 sample questions
- 3.5Apply changes to infrastructure with Terraform6 sample questions
- 3.6Destroy Terraform-managed infrastructure5 sample questions
- 3.7Apply formatting and style adjustments to a configuration6 sample questions
Domain 4: Terraform configuration
- 4.1Use and differentiate resource and data blocks6 sample questions
- 4.2Refer to resource attributes and create cross-resource references6 sample questions
- 4.3Use variables and outputs6 sample questions
- 4.4Understand and use complex types6 sample questions
- 4.5Write dynamic configuration using expressions and functions6 sample questions
- 4.6Define resource dependencies in configuration6 sample questions
- 4.7Validate configuration using custom conditions5 sample questions
- 4.8Understand best practices for managing sensitive data, including secrets management with Vault6 sample questions
Domain 5: Terraform modules
Domain 6: Terraform state management
Domain 7: Maintain infrastructure with Terraform
Domain 8: HCP Terraform
How these questions are made
- Written by us from the exam guide's task statements and the HashiCorp documentation — never from real exam content.
- Every option carries its own explanation and a link to the HashiCorp page that proves it.
- A question enters a timed exam only after an independent check; until then it is a practice question.
- Results are a plain percentage, per domain too — not an imitation of HashiCorp's scaled score.
Questions about the 004 practice exam
- Is the 004 practice exam free?
- Yes. The full practice exam (57 questions, 60 minutes) is free with no sign-up, and so are the 230 practice questions, the task pages and the study path. Your attempts are saved in this browser, on this device.
- How many questions does it have, and is it timed?
- 57 questions in 60 minutes: the real 004 pace, scaled to this form. When the time runs out, the exam is submitted as it stands.
- Are the answers explained?
- After you submit, not during: like the real exam, the timed exam gives no feedback until the end. Then you get your score overall and per exam domain, and every question with each option explained and a link to the HashiCorp documentation page behind it. In practice mode an answer is explained as soon as you check it.
- What does the Terraform Associate exam pack add?
- 3 more timed practice exams (Practice exam 1: 57 questions, 60 minutes; Practice exam 2: 57 questions, 60 minutes; Practice exam 3: 57 questions, 60 minutes), each scored and explained the same way, and the next version of this exam if it changes within your 12 months. 12 months of access. One payment, nothing renews by itself. Everything above stays free. See the pack.
- Can I get a refund?
- Yes, with no conditions: ask within 14 days of buying and you get the whole payment back. The details are in the terms.
- Is this an official HashiCorp practice exam?
- No. BytePatterns is not affiliated with, endorsed or sponsored by HashiCorp. Every question is written by us from the public exam guide and the HashiCorp documentation, never from real exam content, and a score here does not predict your result on the real exam. HashiCorp lists its own preparation resources on its certification page.