DevOpsInterviewPrep logo
All tool topics

Terraform interview preparation

Study Terraform plans, state, resource identity and module contracts. Work through unknown values and distinguish a blocking validation from a warning before reviewing an apply.

Start here

Read basic HCL and understand cloud resource IDs, dependencies and the difference between configuration and running infrastructure.

  1. Read the Terraform operating model.
  2. Try the foundation question before opening its answer.
  3. Review a replacement plan, classify unknown values and write the conditions that must stop an apply. Open the course exercises.

Practise until you can

  • Explain which parts of a resource address must be known during planning.
  • Choose variable validation, preconditions or checks for a specific requirement.
  • Review replacements and recovery evidence before approving an infrastructure change.

Terraform concepts

Build the explanation, then test it against the questions below.

Foundational
Immutable InfrastructurePlan replacements around data, identity and availability.
Foundational
Terraform ArchitectureFollow configuration through providers, plans, state and apply.
Foundational
Terraform ModulesDesign inputs, outputs and provider ownership for reuse.
Foundational
Terraform Provider UpgradesReview versions, checksums and schema changes before upgrading.
Foundational
Terraform Secrets & StateTrace secrets beyond terminal masking into state, plans and artifacts.
Foundational
Terraform Unknown ValuesSeparate unknown resource attributes from the keys that identify instances.
Foundational
Terraform Conditions & ChecksPlace blocking conditions before a change and distinguish advisory check results.
Core
Sign in
Infrastructure State & DriftTrack the relationship between configuration and real resources.
Core
Sign in
Terraform ImportAdopt existing infrastructure without applying unwanted changes.
Core
Sign in
Terraform WorkspacesSeparate state while checking credentials and environment boundaries.
Core
Sign in
Terraform Drift RemediationDecide who owns a drifted setting before applying a repair.
Core
Sign in
Terraform Tests & PolicySeparate configuration assertions from live provider and policy evidence.
Advanced
๐Ÿ”’ Premium
Terraform State LockingPrevent concurrent writes and recover without trusting a stale plan.
Advanced
๐Ÿ”’ Premium
Terraform RefactoringRename resources and change instance keys without recreation.
Advanced
๐Ÿ”’ Premium
Terraform Lifecycle RulesControl replacement order and decide who owns external changes.
Advanced
๐Ÿ”’ Premium
AI-Generated InfrastructureCheck generated plans against intended resources and permissions.

Terraform questions

Start with an open answer, or sign in to track your practice. Locked answers show the access needed.

36 questions ยท 16 unlocked for you

Course exercises using Terraform

These lessons belong to the broader DevOps courses. Each card shows its access level.