RousselTMLEARNING

Automation

Preparing for the HashiCorp Certified: Terraform Associate certification

Preparation guide for the Terraform Associate: format, official objectives (IaC concepts, workflow, state, modules, HCP Terraform), commands to master, study plan and pitfalls.

1. The exam #

Format and objectives.

Format #

ItemIndicative value
QuestionsAbout 57 (multiple choice, true/false, short answers)
Duration1 hour
PriceUSD 70.50
Validity2 years
Terraform Associate exam objectives
The exam version evolves (003, 004): check the current objectives.
To check: Indicative data: consult HashiCorp's official page before registering.

2. What to master #

The essentials.

Summary #

  • Commands: init, validate, fmt, plan, apply, destroy, output, state (list, show, mv, rm), import, workspace, console, providers, force-unlock.
  • Language: variables (types, validation, sensitive), locals, outputs, data, count, for_each, dynamic, common functions, implicit dependencies and depends_on.
  • State: backends, locking, drift, refresh-only, import, moved and removed blocks.
  • Modules: sources, versions, inputs and outputs, registry.
  • HCP Terraform: workspaces, remote runs, variables, policies, private registry.

Plan #

  1. Week 1: concepts, workflow, language.
  2. Week 2: state, modules, workspaces.
  3. Week 3: HCP Terraform, labs and mock exams until you consistently reach 80%.

3. Pitfalls #

The classic confusions.

Tell apart #

  • CLI workspaces (several states) and HCP Terraform workspaces (complete units of work).
  • terraform refresh (deprecated) and plan -refresh-only.
  • count (index) and for_each (keys).
  • Provider (plugin) and module (reusable code).
  • Provider version constraints (~>) and the .terraform.lock.hcl file.

Related articles

Terraform: principles, architecture and workflow

Understand Terraform: declarative infrastructure as code, architecture (core, providers, state), the init, pl…

The HCL language: resources, variables, outputs, data and expressions

Writing Terraform: terraform, provider, resource and data blocks, typed variables with validation, locals, ou…

Terraform state: remote backends, locking, import and refactoring

Manage Terraform state: the role of the state file, sensitive data, remote backends (S3, azurerm, gcs, HCP Te…

Keep learning

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!