Planfile

Terraform certification: the HashiCorp Terraform Associate (004) guide

Updated

The main Terraform certification is the HashiCorp Certified: Terraform Associate (004). It is a one-hour, multiple-choice exam taken online with a remote proctor, tests Terraform 1.12, and costs $70.50 USD plus local taxes and fees. The credential is valid for two years. It covers eight domains, from infrastructure as code and the core workflow to state, modules and HCP Terraform. This page lists every objective with what to study.

Practice questions on how Terraform works, each with an explanation, then the one-time unlock.

What is the Terraform Associate certification?

HashiCorp Certified: Terraform Associate is HashiCorp's entry-level Terraform certification. It shows that you understand the concepts and the day-to-day work: writing configuration, running the core workflow, managing state, using modules and knowing what HCP Terraform adds. The current version is 004; it replaced the Terraform Associate 003 exam.

It suits:

HashiCorp's stated prerequisites are basic terminal skills and an understanding of on-premises and cloud architecture. You don't need to be an expert, but you should have run Terraform yourself: many questions describe a situation and ask what Terraform would do. HashiCorp also offers a separate professional-level Terraform exam for experienced practitioners; the Associate is the place to start.

Terraform Associate 004 exam facts

Terraform Associate (004)
FormatMultiple choice
DeliveryOnline, proctored
Duration1 hour
LanguageEnglish
Terraform version tested1.12
Price$70.50 USD plus locally applicable taxes and fees
RetakeFree retake not included
Valid for2 years
PrerequisitesBasic terminal skills; understanding of on-premises and cloud architecture

HashiCorp does not publish the number of questions or a passing score for 004, so be wary of any site that quotes them as fact. HashiCorp's official sample questions show the question styles. The official facts are on the Terraform Associate certification page (checked 26 November 2026).

Terraform certification cost and renewal

The Terraform Associate 004 exam costs $70.50 USD, plus whatever taxes and fees apply where you live. A free retake is not included, so if you fail you pay again for the next attempt.

The credential is valid for two years. To renew, you can retake the current Associate exam starting six months before your credential expires. If you hold the older Terraform Associate 002 or 003, you can take 004 from six months before your expiry date. HashiCorp's certification page lists the exact renewal rules for each version, including other ways to extend a credential.

Terraform Associate 003 vs 004: what changed

If you studied for 003, most of it still applies. The 004 exam:

Old 003 practice material can still help with the fundamentals, but check anything about deprecated commands, and add study time for the new objectives.

Terraform Associate 004 exam objectives

These are HashiCorp's objectives for the Terraform Associate (004), with their exact titles. HashiCorp doesn't publish weights per domain, so prepare for all of them.

1. Infrastructure as Code (IaC) with Terraform

ObjectiveWhat to knowGuide
1aExplain what IaC isInfrastructure defined in versioned, reviewable files; declarative (describe the end state) versus imperative.What is Terraform
1bDescribe the advantages of IaC patternsRepeatable environments, code review, version history, automation, fewer manual mistakes.What is Terraform
1cExplain how Terraform manages multi-cloud, hybrid cloud, and service-agnostic workflowsOne workflow and language across any API with a provider: clouds, on-premises, SaaS.What is Terraform

2. Terraform fundamentals

ObjectiveWhat to knowGuide
2aInstall and version Terraform providersrequired_providers, source addresses, ~> constraints, .terraform.lock.hcl, init -upgrade.Providers
2bDescribe how Terraform uses providersPlugins that translate resources into API calls; installed by init from the registry.Providers
2cWrite Terraform configuration using multiple providersSeveral providers in one configuration; alias for a second configuration of the same provider (another region).Providers
2dExplain how Terraform uses and manages stateState maps resources to real objects; why it holds secrets; why teams use remote state with locking.State

3. Core Terraform workflow

ObjectiveWhat to knowGuide
3aDescribe the Terraform workflowWrite, plan, apply; and the commands around it.Tutorial
3bInitialize a Terraform working directoryWhat terraform init installs and when to re-run it.terraform init
3cValidate a Terraform configurationWhat terraform validate checks, and that it makes no API calls.fmt and validate
3dGenerate and review an execution plan for TerraformPlan symbols, -out, -destroy, -replace, forces replacement.terraform plan
3eApply changes to infrastructure with TerraformApproval prompt, saved plans, -auto-approve.apply and destroy
3fDestroy Terraform-managed infrastructureterraform destroy = apply -destroy; reverse dependency order.apply and destroy
3gApply formatting and style adjustments to a configurationterraform fmt, -recursive, -check.fmt and validate

4. Terraform configuration

ObjectiveWhat to knowGuide
4aUse and differentiate resource and data blocksResources are managed; data sources only read. Address data.TYPE.NAME.Providers
4bRefer to resource attributes and create cross-resource referencesTYPE.NAME.ATTR, references create implicit dependencies.Providers
4cUse variables and outputsVariable types, defaults, precedence, .tfvars, TF_VAR_, outputs and terraform output.Variables and outputs
4dUnderstand and use complex typeslist, set, map, object, tuple and when each fits.Variables and outputs
4eWrite dynamic configuration using expressions and functionsfor_each, count, for expressions, conditionals, dynamic blocks, built-in functions.Functions
4fDefine resource dependencies in configurationImplicit dependencies from references; depends_on only for hidden ones.Lifecycle
4gValidate configuration using custom conditionsVariable validation, precondition, postcondition, check blocks.Lifecycle
4hUnderstand best practices for managing sensitive data, including secrets management with Vaultsensitive hides output but state still stores it; ephemeral values; Vault provider for secrets.Variables and outputs

5. Terraform modules

ObjectiveWhat to knowGuide
5aExplain how Terraform sources modulesLocal paths, the public and private registries, Git and other sources.Modules
5bDescribe variable scope within modulesModules see only their own variables; pass values in as arguments, read results as module.NAME.OUTPUT.Modules
5cUse modules in configurationmodule blocks, inputs, outputs, for_each on modules.Modules
5dManage module versionsversion works for registry modules only; pin Git sources with ?ref=.Modules

6. Terraform state management

ObjectiveWhat to knowGuide
6aDescribe the local backendDefault terraform.tfstate in the working directory; fine for one person.State
6bDescribe state lockingPrevents two runs writing the same state; force-unlock for stale locks.State
6cConfigure remote state using the backend blockbackend block, literals only, partial config, init -migrate-state.State
6dManage resource drift and Terraform statePlan detects drift; -refresh-only; moved, removed, state mv/rm.Drift

7. Maintain infrastructure with Terraform

ObjectiveWhat to knowGuide
7aImport existing infrastructure into your Terraform workspaceimport blocks, -generate-config-out, and the terraform import command.Import
7bUse the CLI to inspect stateterraform state list, state show, show, output.State
7cDescribe when and how to use verbose loggingTF_LOG levels and TF_LOG_PATH.Commands

8. HCP Terraform

ObjectiveWhat to knowGuide
8aUse HCP Terraform to create infrastructureRemote runs, the cloud block, terraform login, variables in workspaces.Workspaces
8bDescribe HCP Terraform collaboration and governance featuresTeams and permissions, run history, policy checks, the private registry.Workspaces
8cDescribe how to organize and use HCP Terraform workspaces and projectsA workspace per configuration and environment; projects group workspaces and permissions.Workspaces
8dConfigure and use HCP Terraform integrationConnecting the CLI with the cloud block, and VCS-driven runs.Workspaces

How to register for the Terraform Associate exam

  1. Go to HashiCorp's Terraform Associate certification page and choose Register for the exam.
  2. Sign in to the HashiCorp certification portal (create an account if you don't have one).
  3. Follow the steps there to pay and book your online proctored session.
  4. Read the exam rules and requirements in HashiCorp's certification knowledge base, and run any system check offered before exam day.

Book a date when you start studying. A fixed date turns a vague plan into a four-week one.

A 4-week Terraform Associate study plan

About an hour a day, assuming you know a little cloud. Write and run code every day; reading alone won't stick.

Week 1: foundations and the core workflow (domains 1–3)

Week 2: configuration language (domain 4)

Week 3: modules, state and maintenance (domains 5–7)

Week 4: HCP Terraform and practice exams (domain 8)

How to prepare: hands-on practice, docs and sample questions

Exam-day tips for the online proctored exam

Study for the Terraform certification with Planfile

Planfile is an iPhone app that teaches Terraform with short lessons and Labs that run a simulated Terraform CLI and cloud on your phone. Its 8 chapters, 42 lessons and 26 Labs follow the 004 objectives for the core workflow, configuration, state and modules, and it has 74 original practice questions with an exam readiness score; questions you miss come back sooner. It does not simulate HCP Terraform (objective 8), so learn that domain with HashiCorp's own tutorials and an HCP Terraform account. Chapters 1 and 2 are free; a one-time $14.99 (US) unlocks the rest. Planfile is not affiliated with HashiCorp or IBM.

Planfile's learning path with chapters such as How Terraform works and Providers and resources
Planfile's chapters follow the exam objectives, from the core workflow to functions.

Questions

How much does the Terraform certification cost?

The Terraform Associate (004) exam costs $70.50 USD plus locally applicable taxes and fees. A free retake is not included.

How many questions are on the Terraform Associate 004 exam?

HashiCorp doesn't publish a question count or passing score for 004. It is a one-hour, multiple-choice exam, so practise answering at a steady pace.

How long is the HashiCorp Certified: Terraform Associate valid?

Two years. You can renew by passing the current Associate exam, starting six months before your credential expires.

What is the difference between Terraform Associate 003 and 004?

004 tests Terraform 1.12, includes HCP Terraform content, and adds four objectives: resource dependencies, custom conditions, sensitive data and Vault, and HCP Terraform workspaces and projects.

Is the Terraform Associate exam hard?

It is an associate-level exam, but it expects hands-on experience: many questions ask what Terraform would do in a given situation. With regular practice over a few weeks, most engineers who already know some cloud are ready.

How long should I study for the Terraform Associate certification?

Around four weeks at an hour a day is a common plan if you know a little cloud; less if you already use Terraform at work. Spend most of it writing and running configuration.