CertificationTestPrep Free diagnostic

HashiCorp · Associate

HashiCorp Terraform Associate (004) practice questions that find your gaps.

Start with the free diagnostic: 20 practice questions, no account needed, every answer explained. Every question is written against HashiCorp’s 004 exam content list and checked against the Terraform 1.12 documentation, the version the exam tests. Real configuration, plan output and CLI commands to read, not just definitions. The diagnostic covers all eight objectives and maps what you know skill by skill, then practice spends your time where you need it most.

The diagnostic takes about 20 minutes and needs no account or card. A free account adds two practice sessions of 12. Full access is $19 once for 365 days: no subscription, and a full refund within 30 days.

Try one

A real question from the bank. No sign-in.

From Objective 3, skill 3.5.s1: what terraform apply carries out. Pick an answer and every option explains itself, the wrong ones included.

Multiple choice · Domain 3 · Core Terraform workflow

A reviewer approved the output of terraform plan on Monday. On Tuesday an engineer runs terraform apply with no file. What will Terraform apply?

Example: a learner partway through HashiCorp Terraform
55%
Practice score76 of 99 skills tried
D1 8% · IaC
D2 11% · Fundamentals
D3 19% · Workflow
D4 21% · Configuration
D5 11% · Modules
D6 11% · State
D7 8% · Maintain
D8 11% · HCP Terraform
  • not tried
  • shaky
  • getting there
  • solid
Each square is one skill in the exam guide, and it fills in as you answer its questions. The practice score averages every square, weighted by each domain’s share of the sub-objectives; squares you haven’t tried count as 50%. It tracks your practice, not your exam result.

The exam

What the Terraform Associate exam looks like on the day.

Terraform Associate is HashiCorp’s foundational certification for cloud engineers who use Terraform. It checks that you can write and read configuration, run the core workflow, use modules and manage state, maintain infrastructure with import and the CLI, and tell what HCP Terraform and Terraform Enterprise add to the Community Edition.

  • 60minutes
  • 1.12the Terraform version tested
  • 8objectives, from IaC to HCP Terraform
  • 2 yrbefore you recertify

The exam is multiple choice, taken online with a proctor, and tests Terraform 1.12. HashiCorp doesn’t publish a question count, a passing score or domain weights; our practice score is not a prediction of your exam score. The certification is valid for two years. Practice here uses four formats, whichever teaches each idea best:

  • Multiple choiceOne right answer out of four.
  • Multiple responseTwo or more right out of five or more. You need all of them for credit.
  • OrderingPut three to five steps in order. It has to be exactly right.
  • MatchingPair three to seven prompts with their answers. Every pair has to be right.

See the official certification page for registration and current exam details. These are original practice scenarios, not reproduced exam questions.

Exam facts

Before you book the exam.

  • How much does the HashiCorp Certified Terraform Associate (004) exam cost?

    HashiCorp lists the Terraform Associate (004) exam at $70.50 USD, plus locally applicable taxes and fees. A free retake is not included.

    Source: Terraform associate, developer.hashicorp.com

  • How do I register for the HashiCorp Certified Terraform Associate (004) exam, and where do I take it?

    You register for the Terraform Associate (004) exam from HashiCorp’s certification page on developer.hashicorp.com and take it online with a proctor. HashiCorp says the candidate is responsible for meeting its identification, system and physical space requirements.

    Source: Terraform associate, developer.hashicorp.com

  • What happens if I fail the HashiCorp Certified Terraform Associate (004) exam?

    The Terraform Associate (004) exam price does not include a free retake, so another attempt means registering for the exam again.

    Source: Terraform associate, developer.hashicorp.com

  • How long does the HashiCorp Certified Terraform Associate certification last?

    The HashiCorp Certified Terraform Associate credential expires after two years. A holder can renew by passing the 004 Terraform Associate exam starting six months before expiration, or by passing the Terraform Infrastructure Engineer Professional or Terraform Authoring and Operations Advanced exam.

    Source: Terraform associate, developer.hashicorp.com

  • Are there prerequisites for the HashiCorp Certified Terraform Associate (004) exam?

    HashiCorp lists basic terminal skills and an understanding of on-premises and cloud architecture as prerequisites for the Terraform Associate (004) exam. It recommends professional experience but says you can also practice the exam objectives in a personal demo setup.

    Source: Terraform associate, developer.hashicorp.com

Checked against HashiCorp’s own pages on November 11, 2026.

What’s covered

Eight domains, 37 sub-objectives, 99 skills.

This is how HashiCorp’s content list divides the exam, summarized in our words. HashiCorp gives no weights, so the percentages here are each objective’s share of the 37 sub-objectives; configuration and the core workflow are the biggest.

D1

Infrastructure as Code (IaC) with Terraform

8%

3 sub-objectives · 9 skills

What each one covers
  • 1.1
    What IaC is

    Infrastructure defined in files instead of by hand, and declarative configuration that describes the end state.

  • 1.2
    Why IaC helps

    Version control and review, repeatable environments, automation and reuse, and less drift and human error.

  • 1.3
    Multi-cloud and hybrid

    One language and workflow across clouds, on-premises platforms and SaaS, through each platform’s provider.

D2

Terraform fundamentals

11%

4 sub-objectives · 13 skills

What each one covers
  • 2.1
    Installing providers

    required_providers, source addresses, version constraints, the dependency lock file and init -upgrade.

  • 2.2
    How Terraform uses providers

    What Terraform core does and what a provider does, provider blocks, and keeping credentials out of configuration.

  • 2.3
    Several providers

    Different providers in one configuration, alias, and passing provider configurations to modules.

  • 2.4
    State

    Why Terraform keeps state, what it holds and why it’s sensitive, and how state and refresh feed a plan.

D3

Core Terraform workflow

19%

7 sub-objectives · 15 skills

What each one covers
  • 3.1
    The workflow

    Write, plan and apply, alone and as a team with version control and automation.

  • 3.2
    init

    What terraform init sets up, when it must run again, and its options.

  • 3.3
    validate

    What terraform validate checks, and which errors only show at plan or apply.

  • 3.4
    plan

    Reading plan output, saved plans, -target, -refresh=false, and the dependency graph.

  • 3.5
    apply

    Applying with and without a saved plan, partial failures, and forcing replacement with -replace.

  • 3.6
    destroy

    Destroying everything or one resource, removed blocks, and prevent_destroy.

  • 3.7
    fmt

    What terraform fmt changes, its options, and Terraform’s style conventions.

D4

Terraform configuration

21%

8 sub-objectives · 24 skills

What each one covers
  • 4.1
    Resources and data sources

    Writing resource and data blocks, when a data source is read, and choosing between them.

  • 4.2
    References

    Named values, resource addresses, instances of count and for_each, and splat expressions.

  • 4.3
    Variables and outputs

    Declaring and setting variables, their precedence, local values, and outputs.

  • 4.4
    Complex types

    Collection and structural types, type constraints, conversion, and optional attributes.

  • 4.5
    Expressions and functions

    Conditionals, for expressions, count versus for_each, dynamic blocks, built-in functions and templates.

  • 4.6
    Dependencies

    Implicit dependencies, depends_on, and the lifecycle arguments.

  • 4.7
    Custom conditions

    Variable validation, preconditions and postconditions, and check blocks.

  • 4.8
    Sensitive data

    sensitive, ephemeral values and write-only arguments, Vault, and protecting state.

D5

Terraform modules

11%

4 sub-objectives · 8 skills

What each one covers
  • 5.1
    Module sources

    Local paths, registries and Git, root and child modules, and how init installs them.

  • 5.2
    Variable scope

    Inputs and outputs as a module’s interface, and reading a child module’s outputs.

  • 5.3
    Using modules

    module blocks and their meta-arguments, and the standard module structure.

  • 5.4
    Module versions

    Constraining and pinning versions, and upgrading with init -upgrade.

D6

Terraform state management

11%

4 sub-objectives · 10 skills

What each one covers
  • 6.1
    The local backend

    Where local state lives, its backup, and why it doesn’t suit a team.

  • 6.2
    State locking

    What a lock prevents, which operations take it, and handling a stuck lock.

  • 6.3
    Remote state

    backend blocks, partial configuration, migrating state, S3 locking and terraform_remote_state.

  • 6.4
    Drift and refactoring

    Refresh-only plans, resolving drift, and moved and removed blocks.

D7

Maintain infrastructure with Terraform

8%

3 sub-objectives · 6 skills

What each one covers
  • 7.1
    Import

    import blocks, generating configuration, and the terraform import command.

  • 7.2
    Inspecting state

    terraform state list and state show, terraform show, and choosing the right command.

  • 7.3
    Logging

    TF_LOG and its levels, log files, and when logs help.

D8

HCP Terraform

11%

4 sub-objectives · 14 skills

What each one covers
  • 8.1
    Creating infrastructure

    HCP Terraform workspaces, the VCS, CLI and API workflows, runs and execution modes.

  • 8.2
    Collaboration and governance

    Teams, Sentinel and OPA policies, the private registry, health assessments, and how the editions differ.

  • 8.3
    Workspaces and projects

    Projects, variable sets and their precedence, run triggers, and sharing outputs.

  • 8.4
    CLI integration

    The cloud block, terraform login, migrating state, and what runs where in a remote run.

Summary of HashiCorp’s Terraform Associate (004) exam content list. The official content list has the exact wording and the documentation for each objective.

Ten free practice questions across the domains, with every option explained.

Explained in plain words: CloudFormation vs Terraform vs CDK: how to define AWS infrastructure as code

Renamed and deprecated

Terraform has changed since older Terraform Associate material was written.

Every question here is written for Terraform 1.12, the version the 004 exam tests, and checked against today’s documentation. Terraform Cloud is HCP Terraform, terraform taint has given way to -replace, terraform refresh to refresh-only plans, and DynamoDB locking for the S3 backend to use_lockfile. import, moved and removed blocks, custom conditions, ephemeral values and write-only arguments are covered as HashiCorp documents them. Features that arrived after 1.12 are left out.

How it picks your next question

Practice that follows what you miss, and brings it back before you forget it.

  • Weakness and weight

    Skills you’re shaky on, in the domains worth the most, come up more often. Skills you haven’t tried yet still get their turn.

  • Spaced repetition

    Answer a question right without guessing and it moves up a box, coming back after a day, then three, up to five weeks. Miss it and it starts over.

  • Follow-up after a miss

    Two questions after a miss, a different question on the same skill lets you use the explanation while it’s fresh.

  • Every option explains itselfRight or wrong, each answer says why, so the options you didn’t pick teach you too.
  • Think before you see the choicesOn a new question, practice can hide the options and ask for your answer in a few words first. On the closest calls, it asks which detail decides it before showing the answer. Nothing you write is graded, and you can skip either step.
  • Guesses don’t count as winsMark “I’m guessing” or take a hint and the question counts for less and comes back sooner.
  • Written by AI, checked against the sourceThe questions are written by AI models, primarily Claude, working from the vendor’s own documents, then reviewed by separate sessions whose job is to prove each answer wrong. Every question maps to a skill in HashiCorp’s Terraform Associate (004) exam content list and links the Terraform and HCP Terraform documentation its answer is based on, so you can check any answer yourself. A concept card covers every skill. Last reviewed October 25, 2026. How the questions are written and checked.

Pricing

Free to find your gaps and start on them. $19 to practice all of it.

Free

$0
  • A 20-question diagnostic across all eight domains, weighted by each domain’s share of the sub-objectives. About 20 minutes, and you can stop and pick up where you left off
  • Your skill map and practice score, with every option explained and the concept behind each miss
  • Ten more practice questions to read, no sign-in
  • No account needed for the diagnostic. A free account, with Google or your email, keeps your results
  • With that free account, two practice sessions of 12 questions from all 1297, aimed at the skills you missed. No card
Take the diagnostic

Full access

$19one time, 365 days
  • All 1297 questions, in four formats, with a concept card for every skill
  • Unlimited adaptive practice that follows what you miss, with spaced review
  • Focus on any one skill, and review your misses and guesses
  • No subscription and nothing renews
  • Full refund within 30 days, no questions asked
Get full access for $19

Sign up or sign in with Google or your email, and the payment form opens. Card payments are handled by Stripe. Refund policy.

The questions are written by AI and checked against the Terraform and HCP Terraform documentation. Each one links the page its answer is based on. How they are written and checked.