Pass Terraform Associate (004) on your first attempt
Timed Terraform Associate exam questions for the 004 exam: 300 questions across all eight official HashiCorp domains, in 60-question attempts of 60 minutes. One-time purchase, no subscription; or start with a $1 trial, deducted when you upgrade.
- Updated 25 Sep 2026
- 300 question bank
- 60 questions / attempt Questions Our practice length. The vendor does not publish a fixed number of questions for this exam.
- 60 min time limit
- 70% pass grade Pass grade Our result is the percentage of questions you answer correctly. The vendor reports only pass/fail for this exam and does not publish a numeric passing score.
What you'll practice
- Infrastructure as Code (IaC) with Terraform
- Terraform fundamentals
- Core Terraform workflow
- Terraform configuration
- Terraform modules
- Terraform state management
Try sample questions
Pick an answer to see the explanation.
Why does Terraform retain dependency metadata in state after you delete a resource from configuration?
Correct!
Answer explanations
-
So Terraform can keep root module outputs after the resource is gone from configuration.
Outputs are stored in state, but dependency metadata is kept specifically for destroy order.
-
So Terraform can destroy the object in a safe order using stored dependencies.
Purpose-of-state: after you remove a resource, Terraform uses stored dependencies to destroy it safely.
-
So Terraform can increment the state serial number when a resource is deleted.
State serial tracks state versions; it is not why dependency metadata is retained after a delete.
-
So Terraform can retain the resource's last attributes for terraform console.
Resource attributes remain in state while the object exists; destroy order is the documented reason.
State keeps the last known dependency graph so deletes remain ordered. https://developer.hashicorp.com/terraform/language/state/purpose
Not quite
Answer explanations
-
So Terraform can keep root module outputs after the resource is gone from configuration.
Outputs are stored in state, but dependency metadata is kept specifically for destroy order.
-
So Terraform can destroy the object in a safe order using stored dependencies.
Purpose-of-state: after you remove a resource, Terraform uses stored dependencies to destroy it safely.
-
So Terraform can increment the state serial number when a resource is deleted.
State serial tracks state versions; it is not why dependency metadata is retained after a delete.
-
So Terraform can retain the resource's last attributes for terraform console.
Resource attributes remain in state while the object exists; destroy order is the documented reason.
State keeps the last known dependency graph so deletes remain ordered. https://developer.hashicorp.com/terraform/language/state/purpose
Five timed questions from this exam. No account.
What this practice exam covers
Aligned to the official exam domains.
- Infrastructure as Code (IaC) with Terraform
- Terraform fundamentals
- Core Terraform workflow
- Terraform configuration
- Terraform modules
- Terraform state management
- Maintain infrastructure with Terraform
- HCP Terraform
Description
Who it is for
- Cloud Engineers with foundational Terraform knowledge who want the HashiCorp Certified: Terraform Associate (004) credential.
- Operations, IT, and development specialists who manage infrastructure as code with Terraform.
What you will practice
- Explain IaC patterns and how Terraform supports multi-cloud, hybrid, and service-agnostic workflows.
- Install and version providers, and write configuration that uses more than one provider. Then explain how Terraform uses and manages state.
- Run the core workflow: initialize a working directory, validate configuration, and generate a plan. After that, apply or destroy changes, and format configuration.
- Author configuration with resource and data blocks, variables and outputs, and complex types. Then add expressions and functions, resource dependencies, custom conditions, and sensitive data including Vault.
- Source, version, and use modules, including variable scope inside a module.
- Configure local and remote backends, and describe state locking. You also manage drift with refresh, moved, and removed.
- Import existing infrastructure, inspect state with the CLI, and use verbose logging.
- Use HCP Terraform workspaces and projects, plus VCS, CLI, and API-driven runs. In addition, manage teams, policies, dynamic credentials, variable sets, run triggers, and change requests.
About these Terraform Associate exam questions
The HashiCorp Certified: Terraform Associate exam tests foundational Terraform knowledge and skills. For example, it covers infrastructure as code, providers and state, and the core workflow. It also covers configuration, modules, and HCP Terraform collaboration. This Terraform Associate practice exam prepares you for HashiCorp Certified: Terraform Associate (004). Its exam questions span all eight domains listed above.Exam focus and skills
The exam emphasizes writing and applying configuration, and managing state and modules. In addition, it covers importing and inspecting existing infrastructure. You also distinguish Terraform Community features from HCP Terraform and Terraform Enterprise collaboration. Finally, you use HCP Terraform workspaces, projects, and governance features. However, it does not primarily assess Terraform Authoring and Operations Advanced production authoring. For that level, see our Terraform Authoring and Operations Advanced practice exam. Likewise, writing custom provider plugins is not the main objective. Day-2 operations of Vault, Nomad, or Consul are also out of focus.Exam format
The official HashiCorp Certified: Terraform Associate (004) exam is 60 minutes. HashiCorp publishes the exam as multiple choice and multi-select. However, it does not publish a fixed question count or numeric passing score. This independent practice exam is not the official test and is not affiliated with HashiCorp. Still, our Terraform Associate exam questions cover the official domains. For current exam details, also check the official Terraform Associate page on HashiCorp Developer.What the certification validates
The certification validates understanding of:- Infrastructure as Code (IaC) with Terraform: IaC benefits, Terraform’s multi-cloud and service-agnostic model, and when Terraform is the right workflow.
- Terraform fundamentals: providers and the plugin model, installing and versioning providers, multi-provider configuration, and the purpose of state.
- Core Terraform workflow: terraform init, validate, plan, apply, destroy, and fmt on a working directory.
- Terraform configuration: resources and data sources, variables and outputs, and complex types. It also includes expressions and functions, dependencies, custom conditions, and sensitive values including Vault.
- Terraform modules: sourcing and versioning modules, inputs and outputs, and variable scope inside a module.
- Terraform state management: local and remote backends, state locking, and reconciling drift with refresh, moved, and removed.
- Maintain infrastructure with Terraform: importing existing infrastructure, inspecting state with the CLI, and verbose logging for troubleshooting.
- HCP Terraform: workspaces and projects, plus VCS, CLI, and API-driven runs. It also covers teams, policies, dynamic credentials, variable sets, run triggers, and change requests. In addition, it compares these features with the Community edition.
Frequently asked questions
What does the Terraform Associate (004) exam cover?
The Terraform Associate (004) exam covers Infrastructure as Code (IaC) with Terraform, Terraform fundamentals, Core Terraform workflow, Terraform configuration, Terraform modules, Terraform state management, Maintain infrastructure with Terraform, and HCP Terraform.
How long is the Terraform Associate (004) exam?
The official Terraform Associate (004) exam is 60 minutes long. Source: Terraform Associate (004) exam
Who is the Terraform Associate (004) practice exam for?
Cloud Engineers with foundational Terraform knowledge who want the HashiCorp Certified: Terraform Associate (004) credential. Operations, IT, and development specialists who manage infrastructure as code with Terraform.
What will I practice on the Terraform Associate (004) practice exam?
Explain IaC patterns and how Terraform supports multi-cloud, hybrid, and service-agnostic workflows. Install and version providers, and write configuration that uses more than one provider.
Is there a free sample of the Terraform Associate (004) practice exam?
Yes. A free sample quiz is available on this page. Full access unlocks the complete Terraform Associate (004) practice exam question bank and timed sittings.
What is the refund policy for the Terraform Associate (004) practice exam?
If you are not satisfied with the Terraform Associate (004) practice exam within 14 days, we refund 100% of your payment - even if you have completed attempt(s). See our Refund Policy for details.
