HashiCorp

Terraform Associate Exam: A Complete Prep Guide for 2026

The HashiCorp Terraform Associate certification validates that you understand infrastructure-as-code principles and the core Terraform workflow. Here's what's tested, what trips people up, and how to prepare efficiently.

CertifySphere Team
April 1, 2026
11 min read

Terraform is the most widely adopted infrastructure-as-code tool in the world. It is used by teams at every scale — from startups provisioning a handful of cloud resources to enterprises managing thousands of services across multiple clouds. The Terraform Associate certification is the entry-level credential that proves you understand how Terraform works and can use it confidently.

The exam is not as difficult as the AWS SAA or GCP PCA. But it is specific. It tests your understanding of the Terraform workflow, HCL syntax, state management, modules, and Terraform Cloud features with enough precision that superficial knowledge won't pass.

Exam Overview

Questions57 multiple choice and true/false
Duration60 minutes
Passing score~70% (not officially published)
Cost$70.50 USD
FormatRemote proctored or testing center
Validity2 years

What the Exam Tests

Understand Infrastructure as Code (IaC) Concepts (16%)

What IaC is, the benefits over manual provisioning, and the difference between declarative and imperative approaches. Terraform vs. other tools like Ansible and Pulumi.

Understand Terraform's Purpose (16%)

What problems Terraform solves, multi-cloud provisioning, provider ecosystem, and how Terraform differs from configuration management tools.

Understand Terraform Basics (36%)

HCL syntax, CLI commands (init, plan, apply, destroy), variables, outputs, locals, data sources, and resource meta-arguments (depends_on, count, for_each, lifecycle).

Use Terraform Outside the Core Workflow (12%)

State manipulation commands (terraform state, import, taint, refresh), workspaces, and debugging with TF_LOG.

Interact with Terraform Modules (12%)

Module structure, published modules from the registry, input/output variables, module versioning, and when to use modules.

Navigate Terraform Workflow (8%)

The write/plan/apply cycle, understanding terraform plan output, and using -target for partial applies.

Advertisement

The Core Concepts You Must Understand

1. The Terraform Workflow

Terraform has a three-step workflow: terraform init (download providers and modules), terraform plan (preview what will change), terraform apply (make the changes). This sounds trivial, but the exam tests the details: what init downloads, what plan calculates, how apply handles drift, and what terraform destroy does versus removing resources manually.

2. State

The state file is the most important concept in the exam. It is a JSON file that maps your Terraform resources to real-world infrastructure. Understand:

  • Why state exists and what happens without it
  • Local vs. remote backends (S3, Terraform Cloud, GCS, Azure Blob)
  • State locking: why it matters and how backends implement it
  • terraform state list, terraform state show, terraform state mv, terraform state rm
  • The danger of manually editing the state file
  • Sensitive values in state: Terraform stores all values, including passwords, in state in plaintext — securing the backend is your responsibility

3. Variables and Outputs

Know all six ways to pass variables to Terraform: default values, terraform.tfvars, *.auto.tfvars, -var flag, -var-file flag, and environment variables (TF_VAR_name). Know the precedence order. Understand output values, when they are computed, and how to mark them as sensitive.

4. Modules

A module is any directory of .tf files. The root module is the directory you run terraform from. Child modules are called with a module block. Key exam topics:

  • Module inputs (variable blocks) and outputs (output blocks)
  • Calling modules from the Terraform Registry with a source and version
  • The difference between published modules and local modules
  • When to use modules: reusability, encapsulation of complex resources

5. Meta-Arguments

These resource-level arguments modify how Terraform handles a resource:

  • count: create N copies of a resource. Resources are indexed (resource[0], resource[1])
  • for_each: create resources from a map or set. More flexible than count for named resources
  • depends_on: explicit dependency when Terraform can't infer it automatically
  • lifecycle: create_before_destroy, prevent_destroy, ignore_changes

What Trips People Up on This Exam

Confusing count and for_each

Count creates numerically indexed resources; for_each creates string-keyed resources. Removing an item from a count list re-numbers all subsequent resources, causing unnecessary destroys. for_each avoids this.

Misunderstanding remote state

Many candidates know that remote backends exist but don't understand locking. If two applies run simultaneously without a lock, state can become corrupted. This is a first-class exam topic.

Terraform import vs. state

terraform import brings an existing resource into state without generating configuration. You still need to write the .tf resource block manually. It does not write HCL for you.

Implicit vs. explicit dependencies

Terraform infers dependencies when you reference one resource's attribute in another. depends_on is only needed when the dependency exists but is not captured by a reference (e.g., a side-effect dependency).

Terraform Cloud workspaces vs. CLI workspaces

These are different. CLI workspaces share a backend but use different state files. Terraform Cloud workspaces are isolated environments with separate variables, state, and runs.

Study Plan (3–4 Weeks)

  • Week 1: Foundations. Complete the official HashiCorp Terraform tutorials on developer.hashicorp.com (free). Work through the "Get Started" tutorials for at least one provider (AWS or Azure). Write real configuration files — do not just read them.
  • Week 2: State, modules, and variables. Set up a remote backend (Terraform Cloud has a free tier). Create a multi-module configuration. Practice every variable input method. Run terraform state commands on a real state file.
  • Week 3: Edge cases and exam prep. Study the meta-arguments deeply. Understand what happens when you change count to for_each. Take two practice exams. Review the official study guide (free on HashiCorp's site).
  • Week 4 (optional): Terraform Cloud features. If you have time, study Terraform Cloud's run workflows, remote operations, Sentinel policies, and cost estimation. These are tested but are a smaller percentage.

Practice for the Terraform Associate

Test your Terraform knowledge with a free timed mock exam on CertifySphere.

Start free Terraform mock exam →