HashiCorp · DevOps & Platform certification

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.

200 questions 8 domains 1 hour real exam

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.

Sample Terraform Associate practice questions

One question from each domain. Open "Show answer" for the explanation.

  1. Question 1. What is infrastructure as code (IaC)?

    1. Drawing infrastructure diagrams by hand
    2. Configuring servers through a web console
    3. Managing infrastructure through machine-readable definition files
    4. Running scripts only on physical hardware
    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.

  2. Question 2. Which block declares the providers a configuration needs and where to get them?

    1. required_providers inside the terraform block
    2. provider_requirements inside each provider block
    3. A top-level providers block
    4. plugins inside the backend block
    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.

  3. Question 3. What is the core Terraform workflow?

    1. Init, destroy, apply
    2. Write, plan, apply
    3. Plan, write, import
    4. Apply, test, plan
    Show answer

    Answer: B. Write, plan, apply

    You write configuration, review the plan, then apply it. init comes first in a new working directory.

  4. Question 4. In the address aws_instance.web, what are aws_instance and web?

    1. The provider and the region
    2. The resource type and the local name
    3. The module and the output
    4. The workspace and the resource
    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.

  5. Question 5. What is a Terraform module?

    1. A provider plugin binary
    2. A set of configuration files in one directory
    3. A saved plan file for an apply
    4. A backend that stores state
    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.

  6. Question 6. Which backend does Terraform use when no backend is configured?

    1. The local backend
    2. The HCP Terraform backend
    3. An S3 backend
    4. A temporary in-memory backend
    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.

See all Infrastructure as Code (IaC) with Terraform questions

How to prepare for Terraform Associate with this practice test

  1. Learn by domain. Use practice mode on one domain at a time and read every explanation, including for questions you got right.
  2. Simulate the exam. Take timed mock exams that sample domains by their official weight, at about 63 seconds per question.
  3. Close the gaps. Review the progress dashboard, drill your weakest domain, and retry previously missed questions.
  4. 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.