HashiCorp Terraform Associate 003 Actual Exam Questions

Last updated on July 23, 2025.

Topic 1 - Exam A

Question #1 Topic 1

As a developer, you want to ensure your plugins are up-to-date with the latest versions. Which Terraform command should you use?

  • A. terraform refresh -upgrade
  • B. terraform apply -upgrade
  • C. terraform providers -upgrade
  • D. terraform init -upgrade
Reveal Solution Hide Solution   Discussion  

Correct Answer: D 🗳️

Question #2 Topic 1

Your security team scanned some Terraform workspaces and found secrets stored in plaintext in state files. How can you protect that data?

  • A. Delete the state file every time you run Terraform.
  • B. Store the state in an encrypted backend.
  • C. Always store your secrets in a secrets.tfvars file.
  • D. Edit your state file to scrub out the sensitive data.
Reveal Solution Hide Solution   Discussion  

Correct Answer: B 🗳️

Question #3 Topic 1

You can reference a resource created with for_each using a splat ( * ) expression.

  • A. True
  • B. False
Reveal Solution Hide Solution   Discussion  

Correct Answer: A 🗳️

Question #4 Topic 1

You add a new resource to an existing Terraform configuration, but do not update the version constraint in the configuration. The existing and new resources use the same provider. The working directory contains a .terraform.lock.hcl file.
How will Terraform choose which version of the provider to use?

  • A. Terraform will use the latest version of the provider for the new resource and the version recorded in the lock file to manage existing resources.
  • B. Terraform will use the version recorded in your lock file.
  • C. Terraform will check your state file to determine the provider version to use.
  • D. Terraform will use the latest version of the provider available at the time you provision your new resource.
Reveal Solution Hide Solution   Discussion  

Correct Answer: B 🗳️

file Viewing page 1 out of 24 pages.
Viewing questions 1-4 out of 93 questions
Next Questions
Browse atleast 50% to increase passing rate cup
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Loading ...