HashiCorp Terraform Associate Exam (page: 3)
HashiCorp Certified: Terraform Associate
Updated on: 25-Dec-2025

Which of the following is not a key principle of infrastructure as code?

  1. Versioned infrastructure
  2. Golden images
  3. Idempotence
  4. Self-describing infrastructure

Answer(s): B

Explanation:


Reference:

https://docs.microsoft.com/en-us/azure/devops/learn/what-is-infrastructure-as-code#:~:text=Idempotence%20is%20a%20principle%20of,of%20the%
20environment's%20starting%20state
.



Terraform variables and outputs that set the "description" argument will store that description in the state file.

  1. True
  2. False

Answer(s): B



What is the provider for this fictitious resource?

  1. vpc
  2. main
  3. aws
  4. test

Answer(s): C

Explanation:


Reference:

https://docs.aws.amazon.com/cloudformation-cli/latest/userguide/resource-types.html



If you manually destroy infrastructure, what is the best practice reflecting this change in Terraform?

  1. Run terraform refresh
  2. It will happen automatically
  3. Manually update the state fire
  4. Run terraform import

Answer(s): A



What is not processed when running a terraform refresh?

  1. State file
  2. Configuration file
  3. Credentials
  4. Cloud provider

Answer(s): B

Explanation:


Reference:

https://www.terraform.io/docs/cli/commands/refresh.html



Viewing Page 3 of 71



Share your comments for HashiCorp Terraform Associate exam with other users:

DN 9/4/2023 11:19:00 PM

question 14 - run terraform import: this is the recommended best practice for bringing manually created or destroyed resources under terraform management. you use terraform import to associate an existing resource with a terraform resource configuration. this ensures that terraform is aware of the resource, and you can subsequently manage it with terraform.
Anonymous


YK 12/11/2023 1:10:00 AM

good one nice
JAPAN


Mn8300 11/9/2023 8:53:00 AM

nice questions
Anonymous