# HashiCorp Certified: Terraform Assoc. (004) (Terraform Associate 004) practice exams

> Prepare for Terraform Associate 004 with 290 practice questions across 5 full timed exams, weighted toward Terraform Configuration. Every answer is explained.

Page: https://devopscodelab.com/exams/terraform-associate-004/

290 questions in 5 timed practice tests. Each test has about 62 questions and a 60-minute limit. The pass mark is 70%. Results are split across the 8 exam domains.

## Exam at a glance

| Setting | Value |
| --- | --- |
| Practice tests | 5 |
| Questions in total | 290 |
| Questions per test | About 62 |
| Time limit per test | 60 minutes |
| Pass mark | 70% |
| Question types | Single answer and multiple answer (26 multiple-answer questions) |
| Level | Associate |
| Category | DevOps & Cloud Native |

These are the settings of our practice tests. Check the official HashiCorp exam page for the current format before you book.

## Domains and weights

| Domain | Weight | Questions in our bank |
| --- | --- | --- |
| Infrastructure as Code (IaC) with Terraform | 8% | 23 |
| Terraform Fundamentals | 12% | 35 |
| Core Terraform Workflow | 17% | 49 |
| Terraform Configuration | 22% | 64 |
| Terraform Modules | 10% | 29 |
| Terraform State Management | 11% | 32 |
| Maintain Infrastructure with Terraform | 8% | 23 |
| HCP Terraform | 12% | 35 |

## Price and access

- Terraform Associate 004 practice exams: $12.99 for 12 months of access.
- Free mini exam: 15 questions with explanations (free account): https://devopscodelab.com/app/exams/terraform-associate-004/mini/
- All-Access subscription includes every exam: https://devopscodelab.com/pricing/
- 10 free questions with answers: https://devopscodelab.com/exams/terraform-associate-004/free-practice-questions/

## Sample questions

### Question 1 of 3 (choose 2)

A company manages Kubernetes clusters on two clouds plus GitHub repositories and Datadog monitors. Which characteristics of Terraform make a single workflow possible? (Choose two.)

- A. A requirement that every provider uses the same resource types and arguments
- B. Automatic sharing of a single API credential across all configured providers
- C. A dependency graph that can order resources even when they span several providers
- D. A built-in translator that ports resource definitions from one cloud to another
- E. A provider ecosystem that exposes many platforms through one configuration language

**Answer:** C, E

**Explanation:** Terraform uses providers to cover clouds, SaaS tools, and other APIs with one language, and its dependency graph can link resources across providers, for example passing a cluster endpoint into a monitoring resource. Terraform does not translate resources between clouds, each provider has its own resource types and arguments, and every provider uses its own credentials.

### Question 2 of 3 (choose 2)

Which statements about Terraform providers are correct? (Choose two.)

- A. Only HashiCorp-maintained providers can be installed from the public Terraform Registry
- B. Each provider adds resource types and data sources that wrap a target platform's API
- C. Providers are compiled into the Terraform binary, so upgrading Terraform upgrades them
- D. Providers are plugins that Terraform installs during init, separately from the Terraform binary
- E. A configuration can use at most one provider from each cloud vendor in a single module

**Answer:** B, D

**Explanation:** Providers are separate plugins downloaded by terraform init, and each one defines resource and data source types that translate configuration into API calls. They are versioned independently of Terraform core, the public registry hosts official, partner, and community providers, and a module can use multiple providers and multiple configurations of the same provider.

### Question 3 of 3

An EC2 instance is unhealthy even though its configuration has not changed. The team wants Terraform to recreate only that instance. Which command is the recommended approach?

- A. terraform apply -replace="aws_instance.web"
- B. terraform state rm aws_instance.web followed by terraform plan
- C. terraform apply -target=aws_instance.web -refresh=false
- D. terraform taint aws_instance.web followed by terraform refresh

**Answer:** A

**Explanation:** The -replace option on plan or apply forces replacement of a specific instance and shows it in the plan; it supersedes the deprecated taint command, and refresh would not perform a replacement anyway. -target with -refresh=false would find no changes, and state rm makes Terraform forget the instance, leaving the old one running unmanaged while creating a duplicate.


## Study plans

### Two weeks

1. Day 1: take practice test 1 in exam mode to get a baseline.
2. Days 2 to 5: domain mode on Terraform Configuration and Core Terraform Workflow, the two most heavily weighted domains.
3. Day 6: practice test 2 in exam mode, then the mistakes quiz.
4. Days 7 to 12: practice tests 3 to 5, one every other day, each followed by its mistakes quiz.
5. Days 13 and 14: final mode. Book the exam when your readiness stays above the pass mark.

### Four weeks

1. Week 1: one practice test in practice mode, reading every explanation. Note your two lowest domains.
2. Week 2: domain mode on those two domains, then a second practice test in exam mode.
3. Week 3: practice tests 3 and 4 in exam mode, with the mistakes and flagged quizzes after each.
4. Week 4: practice test 5 and final mode until your readiness holds above the pass mark.

## Questions about the Terraform Associate 004 practice exams

**Are these real Terraform Associate 004 exam questions?**

No. We write every question ourselves and map it to the published Terraform Associate 004 exam objectives. We do not use leaked or recalled questions.

**Do the time limit and pass mark match the official exam?**

They match the settings of our practice tests. Exam providers change their format from time to time, so check the official exam page before you book.

**Can I try it before I pay?**

Yes. The free mini exam has 15 questions with full explanations and needs no account.

**How long do I keep access?**

A single-exam purchase gives you 12 months of access. All-Access includes this exam for as long as your subscription runs.

**What happens after I finish a test?**

You get a score, a pass or fail against the pass mark, a score per domain and every answer with its explanation.

Last updated November 2026.

DevOpsCode Lab is not affiliated with HashiCorp. Terraform Associate 004 and related names are trademarks of their owners. We write every question ourselves; these are not real exam questions.
