HashiCorp Terraform Associate 003 Practice Exams
Last updated on Oct 22,2026- Exam Code: Terraform Associate 003
- Exam Name: HashiCorp Certified: Terraform Associate (003)
- Certification Provider: HashiCorp
- Latest update: Oct 22,2026
When you use a remote backend that needs authentication, HashiCorp recommends that you:
- A . Write the authentication credentials in the Terraform configuration files
- B . Keep the Terraform configuration files in a secret store
- C . Push your Terraform configuration to an encrypted git repository
- D . Use partial configuration to load the authentication credentials outside of the Terraform code
A developer accidentally launched a VM (virtual machine) outside of the Terraform workflow and ended up with two servers with the same name. They don’t know which VM Terraform manages but do have a list of all active VM IDs.
Which of the following methods could you use to discover which instance Terraform manages?
- A . Run terraform state list to find the names of all VMs, then run terraform state show for each of them to find which VM ID Terraform manages
- B . Update the code to include outputs for the ID of all VMs, then run terraform plan to view the outputs
- C . Run terraform taint/code on all the VMs to recreate them
- D . Use terraform refresh/code to find out which IDs are already part of state
Which command lets you experiment with terraform expressions?
- A . Terraform console
- B . Terraform validate
- C . Terraform env
- D . Terraform test
Which two steps are required to provision new infrastructure in the Terraform workflow? Choose two correct answers.
- A . Plan
- B . Import
- C . Alidate
- D . Init
- E . apply
One remote backend configuration always maps to a single remote workspace.
- A . True
- B . False
Which of the following are advantages of using infrastructure as code (laC) instead of provisioning with a graphical user interface (GUI)? Choose two correct answers.
- A . Prevents manual modifications to your resources
- B . Lets you version, reuse, and share infrastructure configuration
- C . Secures your credentials
- D . Provisions the same resources at a lower cost
- E . Reduces risk of operator error
Which of these are features of HCP Terraform/Terraform Cloud? (Pick the 2 correct responses)
- A . Automatic backups of configuration and state.
- B . Remote state storage.
- C . Automated infrastructure deployment visualization.
- D . A web-based user interface (UI).
How would you reference the volume IDs associated with the ebs_block_device blocks in this configuration?

- A . aws_instance.example.ebs_block_device[sda2,sda3).volume_id
- B . aws_lnstance.example.ebs_block_device.[*].volume_id
- C . aws_lnstance.example.ebs_block_device.volume_ids
- D . aws_instance.example-ebs_block_device.*.volume_id
When does Terraform create the .terraform.lock.hc1 file?
- A . After your first terraform plan
- B . After your first terraform apply
- C . After your first terraform init
- D . When you enable state locking
What kind of configuration block will create an infrastructure object with settings specified within the block?
- A . provider
- B . state
- C . data
- D . resource