HashiCorp Terraform Associate 003 Practice Exams
Last updated on Oct 21,2026- Exam Code: Terraform Associate 003
- Exam Name: HashiCorp Certified: Terraform Associate (003)
- Certification Provider: HashiCorp
- Latest update: Oct 21,2026
Where does the Terraform local backend store its state?
- A . In the terraform file
- B . In the /tmp directory
- C . In the terraform,tfstate file
- D . In the user’s terraform,state file
How is terraform import run?
- A . As a part of terraform init
- B . As a part of terraform plan
- C . As a part of terraform refresh
- D . By an explicit call
- E . All of the above
You’ve used Terraform to deploy a virtual machine and a database. You want to replace this virtual machine instance with an identical one without affecting the database.
What is the best way to achieve this using Terraform?
- A . Use the terraform state rm command to remove the VM from state file
- B . Use the terraform taint command targeting the VMs then run terraform plan and terraform apply
- C . Use the terraform apply command targeting the VM resources only
- D . Delete the Terraform VM resources from your Terraform code then run terraform plan and terraform apply
You ate creating a Terraform configuration which needs to make use of multiple providers, one for AWS and one for Datadog.
Which of the following provider blocks would allow you to do this?
A)

B)

C)

D)

- A . Option A
- B . Option B
- C . Option C
- D . Option D
You have multiple team members collaborating on infrastructure as code (IaC) using Terraform, and want to apply formatting standards for readability.
How can you format Terraform HCL (HashiCorp Configuration Language) code according to standard Terraform style convention?
- A . Run the terraform fmt command during the code linting phase of your CI/CD process Most Voted
- B . Designate one person in each team to review and format everyone’s code
- C . Manually apply two spaces indentation and align equal sign "=" characters in every Terraform file (*.tf)
- D . Write a shell script to transform Terraform files using tools such as AWK, Python, and sed
terraform validate confirms that your infrastructure matches the Terraform state file.
- A . True
- B . False
Provides a browsable directory
- A . Subfolder within a workspace
- B . Generic git repository
- C . Terraform Cloud private registry
- D . Public Terraform module registry
In a Terraform Cloud workspace linked to a version control repository, speculative plan runs start automatically when you merge or commit changes to version control.
- A . True
- B . False
Which of the following statements about Terraform modules is not true?
- A . Modules can call other modules
- B . A module is a container for one or more resources
- C . Modules must be publicly accessible
- D . You can call the same module multiple times
You have a Terraform configuration that defines a single virtual machine with no references to it, You have run terraform apply to create the resource, and then removed the resource definition from your Terraform configuration file.
What will happen you run terraform apply in the working directory again?
- A . Terraform will remove the virtual machine from the state file, but the resource will still exist
- B . Nothing
- C . Terraform will error
- D . Terraform will destroy the virtual machine