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
Which of the following is not a key principle of infrastructure as code?
- A . Self-describing infrastructure
- B . Idempotence
- C . Versioned infrastructure
- D . Golden images
You have deployed a new webapp with a public IP address on a cloud provider. However, you did not create any outputs for your code.
What is the best method to quickly find the IP address of the resource you deployed?
- A . In a new folder, use the terraform_remote_state data source to load in the state file, then write an output for each resource that you find the state file
- B . Run terraform state list to find the name of the resource, then terraform state show to find the attributes including public IP address
- C . Run terraform output ip_address to view the result
- D . Run terraform destroy then terraform apply and look for the IP address in stdout
Which of the following ate advantages of using infrastructure as code (laC) instead of provisioning with a graphical user interface (GUI)? Choose two correct answers.
- A . Lets you version, reuse, and share infrastructure configuration
- B . Provisions the same resources at a lower cost
- C . Secures your credentials
- D . Reduces risk of operator error
- E . Prevents manual modifications to your resources
What is the name of the default file where Terraform stores the state?
Type your answer in the field provided. The text field is not case-sensitive and all variations of the correct answer are accepted.
- A . Terraform.tfstate
You want to define multiple data disks as nested blocks inside the resource block for a virtual machine.
What Terraform feature would help you define the blocks using the values in a variable?
- A . Local values
- B . Count arguments
- C . Collection functions
- D . Dynamic blocks
You want to use API tokens and other secrets within your team’s Terraform workspaces.
Where does HashiCorp recommend you store these sensitive values? (Pick the 3 correct responses)
- A . In an HCP Terraform/Terraform Cloud variable, with the sensitive option checked.
- B . In HashiCorp Vault.
- C . In a terraform.tfvars file, securely managed and shared with your team.
- D . In a terraform.tfvars file, checked into your version control system.
- E . In a plaintext document on a shared drive.
While attempting to deploy resources into your cloud provider using Terraform, you begin to see some odd behavior and experience slow responses. In order to troubleshoot you decide to turn on Terraform debugging.
Which environment variables must be configured to make Terraform’s logging more verbose?
- A . TF_LOG_PAIH
- B . TF_LOG
- C . TF_VAR_log_path
- D . TF_VAR_log_level
While attempting to deploy resources into your cloud provider using Terraform, you begin to see some odd behavior and experience slow responses. In order to troubleshoot you decide to turn on Terraform debugging.
Which environment variables must be configured to make Terraform’s logging more verbose?
- A . TF_LOG_PAIH
- B . TF_LOG
- C . TF_VAR_log_path
- D . TF_VAR_log_level
You’re writing a Terraform configuration that needs to read input from a local file called id_rsa.pub.
Which built-in Terraform function can you use to import the file’s contents as a string?
- A . file("id_rsa.pub")
- B . templaTefil("id_rsa.pub")
- C . filebase64("id_rsa.pub")
- D . fileset<"id_rsa.pub")