Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
HASHICORP

HashiCorp Certified:Terraform Associate

TERRAFORM-ASSOCIATE-004HashiCorp Terraform Associate

The HashiCorp Certified: Terraform Associate (004) certification validates your foundational Terraform knowledge and skills, from core workflow to HCP Terraform. Designed for cloud engineers, it proves you can manage infrastructure as code across multi-cloud and hybrid environments. Earning this credential demonstrates your ability to use Terraform effectively in real-world scenarios, setting you apart in the cloud engineering field.

889 practice questions · Updated 2025-01-01

8Domains
37Objectives
286Concepts
889Questions

TERRAFORM-ASSOCIATE-004 Curriculum

Every domain, objective, and concept the TERRAFORM-ASSOCIATE-004 exam measures.

1a Explain what IaC is

5 concepts · 28 questions
  1. Definition of Infrastructure as Code
  2. Benefits of IaC
  3. Declarative vs. Imperative Approach
  4. IaC Tools Overview
  5. Terraform's Role in IaC
  1. Definition of IaC
  2. Benefits of IaC
  3. Automation and Efficiency
  4. Version Control and Collaboration
  5. Idempotency and Consistency
  6. Cost and Risk Reduction
  7. Scalability and Reusability
  8. Disaster Recovery and Reproducibility
  1. Multi-cloud workflows
  2. Hybrid cloud workflows
  3. Service-agnostic workflows

  1. Terraform provider installation
  2. Provider version constraints
  3. Provider version locking
  4. Upgrading providers
  5. Provider installation verification
  1. Provider definition
  2. Provider configuration
  3. Provider initialization
  4. Provider usage
  5. Provider versioning
  6. Provider registry
  7. Multiple providers
  1. Provider configuration blocks
  2. Multiple providers in one configuration
  3. Provider aliases
  4. Referencing provider aliases in resources
  5. Provider requirements and source addresses
  1. Purpose of Terraform state
  2. State file contents
  3. State storage backends
  4. State locking
  5. State commands
  6. State refresh
  7. State in teams
  8. State and workspaces
  9. State and imports
  10. State and taint
  11. State and data sources
  12. State and providers
  13. State and drift
  14. State and sensitive data
  15. State and versioning

3a Describe the Terraform workflow

5 concepts · 22 questions
  1. Terraform workflow phases
  2. Write phase
  3. Plan phase
  4. Apply phase
  5. Iterative workflow
  1. Purpose of terraform init
  2. Initializing a working directory
  3. Downloading provider plugins
  4. Setting up backend for state storage
  5. Installing modules
  6. Creating .terraform directory
  7. Lock file creation and dependency locking
  8. Re-running terraform init
  9. Using init flags and options
  10. Troubleshooting initialization errors

3c Validate a Terraform configuration

4 concepts · 19 questions
  1. terraform validate command
  2. validation scope
  3. validation workflow
  4. interpreting validation output
  1. Purpose of terraform plan
  2. Running terraform plan
  3. Reading plan output
  4. Plan output sections
  5. Resource actions in plan
  6. Plan exit codes
  7. Saving and using plan files
  8. Plan with variables and options
  9. Plan and state interaction
  10. Plan in automation and CI/CD
  1. Terraform apply basics
  2. Execution plan review
  3. Applying changes
  4. State update after apply
  5. Handling apply errors
  6. Apply with auto-approve
  7. Targeted apply
  8. Apply with variables
  9. Apply in automation
  10. Post-apply verification
  1. terraform destroy command
  2. destroy plan review
  3. destroy confirmation prompt
  4. destroy with auto-approve
  5. targeted destroy
  6. state update after destroy
  7. resource dependencies in destroy
  8. destroy and configuration changes
  9. safe destroy practices
  1. Formatting with terraform fmt
  2. Style conventions in Terraform
  3. Handling formatting in modules and directories
  4. Checking formatting without applying

  1. Resource block syntax
  2. Resource behavior
  3. Resource dependencies
  4. Data block syntax
  5. Data source behavior
  6. Resource vs data block
  1. Refer to resource attributes
  2. Create cross-resource references
  3. Understand implicit dependencies
  4. Use references in expressions

4c Use variables and outputs

12 concepts · 34 questions
  1. Declaring input variables
  2. Using variable values
  3. Variable type constraints
  4. Variable validation
  5. Variable precedence and assignment
  6. Declaring output values
  7. Using output values
  8. Output value features
  9. Sensitive outputs
  10. Output value dependencies
  11. Module outputs
  12. Variable and output best practices

4d Understand and use complex types

9 concepts · 19 questions
  1. Complex type categories
  2. List type
  3. Map type
  4. Set type
  5. Tuple type
  6. Object type
  7. Type constraints and conversion
  8. Nested and complex structures
  9. Iteration over complex types
  1. Expressions in Terraform
  2. Functions in Terraform
  3. Operators and Conditionals
  4. String Templates
  5. Splat Expressions
  6. Dynamic Blocks
  1. Explicit resource dependencies
  2. Implicit resource dependencies
  3. Resource references
  4. Dependency graph and ordering
  5. Handling missing dependencies
  1. Custom condition basics
  2. Validation block syntax
  3. Precondition and postcondition
  4. Using custom conditions in variables
  5. Using custom conditions in outputs
  6. Using custom conditions in resources and data sources
  7. Error message formatting
  8. Condition expression syntax
  9. Failures and behavior
  1. Sensitive data in Terraform
  2. Terraform state and sensitive data
  3. Marking outputs as sensitive
  4. Sensitive variables
  5. Avoiding secrets in plain text
  6. Using environment variables for secrets
  7. Terraform Vault provider
  8. Vault secrets as data sources
  9. Vault secrets as variables
  10. Vault secrets in state
  11. Vault secrets in outputs
  12. Vault secrets in provisioners
  13. Vault secrets in modules
  14. Vault secrets in CI/CD
  15. Vault secrets rotation
  16. Vault secrets with dynamic credentials
  17. Vault secrets with sensitive data in plan
  18. Vault secrets with sensitive data in logs
  19. Vault secrets with sensitive data in state file
  20. Vault secrets with sensitive data in remote state
  21. Vault secrets with sensitive data in version control
  22. Vault secrets with sensitive data in documentation
  23. Vault secrets with sensitive data in collaboration
  24. Vault secrets with sensitive data in troubleshooting
  25. Vault secrets with sensitive data in testing
  26. Vault secrets with sensitive data in compliance
  27. Vault secrets with sensitive data in audit
  28. Vault secrets with sensitive data in access control
  29. Vault secrets with sensitive data in encryption
  30. Vault secrets with sensitive data in backup
  31. Vault secrets with sensitive data in disaster recovery
  32. Vault secrets with sensitive data in monitoring
  33. Vault secrets with sensitive data in alerting
  34. Vault secrets with sensitive data in incident response
  35. Vault secrets with sensitive data in security policies
  36. Vault secrets with sensitive data in governance

  1. Module source types
  2. Module source syntax
  3. Module versioning
  4. Module source resolution
  5. Module source updates
  1. Understanding module variable scope
  2. Passing variables into modules
  3. Module output variables and scope
  4. Variable shadowing and name resolution
  5. Local values within modules

5c Use modules in configuration

7 concepts · 16 questions
  1. Module source and version pinning
  2. Module input variables
  3. Module outputs
  4. Module local naming and alias
  5. Module configuration block syntax
  6. Module dependencies and resource references
  7. Module refactoring and moving resources

5d Manage module versions

5 concepts · 17 questions
  1. Module versioning basics
  2. Version constraints syntax
  3. Selecting module versions
  4. Upgrading module versions
  5. Module registry versioning

6a Describe the local backend

5 concepts · 11 questions
  1. Local backend definition
  2. State file location
  3. Local backend configuration
  4. Local backend behavior
  5. Local backend use cases

6b Describe state locking

5 concepts · 19 questions
  1. Purpose of state locking
  2. Mechanism of state locking
  3. Backend support for locking
  4. Forcing unlock
  5. Locking in practice
  1. Backend block syntax
  2. Backend types and configuration
  3. Initialization with remote backend
  4. State locking and consistency
  5. Partial configuration
  6. State migration and reconfiguration
  7. Backend authentication and credentials
  8. Remote state access and sharing
  1. Understanding resource drift
  2. Detecting drift with terraform plan
  3. Refreshing state with terraform refresh
  4. Applying changes to fix drift
  5. Managing state with terraform state commands
  6. Understanding state file importance
  7. Handling state conflicts and locking
  8. Backing up and restoring state
  9. Using remote state storage
  10. Migrating state between backends

  1. Terraform import command
  2. Import syntax and addressing
  3. State file management during import
  4. Writing configuration for imported resources
  5. Handling import errors and conflicts

7b Use the CLI to inspect state

8 concepts · 13 questions
  1. terraform state list
  2. terraform state show
  3. terraform state pull
  4. terraform state push
  5. terraform state rm
  6. terraform state mv
  7. terraform state replace-provider
  8. Inspect state with terraform show
  1. Purpose of verbose logging
  2. Enabling verbose logging
  3. Log levels
  4. Log output destinations
  5. Interpreting verbose logs
  6. Disabling verbose logging

  1. HCP Terraform Overview
  2. Creating a Workspace
  3. Connecting Version Control
  4. Configuring Variables
  5. Running Terraform Operations
  6. Managing State
  7. Using Run Triggers
  8. Applying Infrastructure Changes
  1. HCP Terraform collaboration features
  2. HCP Terraform governance features
  3. Team and user management
  4. Policy as Code with Sentinel
  5. Run triggers and workspace dependencies
  6. Audit logging and visibility
  1. Workspace organization
  2. Project structure
  3. Workspace creation and configuration
  4. Workspace lifecycle management
  5. Project and workspace access control
  6. Workspace variables and state
  7. Workspace run workflows
  8. Workspace and project best practices
  1. HCP Terraform integration overview
  2. Configuring VCS integration
  3. Setting up API-driven workflows
  4. Using CLI-driven workflows
  5. Integrating with CI/CD pipelines
  6. Managing run triggers and notifications
  7. Handling state and locking in integration
  8. Troubleshooting integration issues
Ready to practice?Test your knowledge with exam-style questions or take an intelligent quiz tailored to your level.

Percentages reflect share of the current practice bank, not official exam weightings — no structured per-skill weight is published for TERRAFORM-ASSOCIATE-004, so none is invented.