HashiCorp TA-002-P Exam
HashiCorp Certified: Terraform Associate (Page 4 )

Updated On: 1-Feb-2026

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


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


Reference:

https://www.terraform.io/docs/language/values/outputs.html



What is the provider for this fictitious resource?

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

Answer(s): C


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


Reference:

https://www.terraform.io/cli/commands/refresh#:~:text=The%20terraform%20refresh%20command%20reads%20the%20current%20settings%20from%20all%20managed%20remote%20objects%20and%20updates%20the%20Terraform%20state%20to%20match.



What is not processed when running a terraform refresh?

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

Answer(s): B

Explanation:

"The terraform refresh command reads the current settings from all managed remote objects and updates the Terraform state to match."



Viewing page 4 of 91
Viewing questions 16 - 20 out of 449 questions



Post your Comments and Discuss HashiCorp TA-002-P exam prep with other Community members:

Join the TA-002-P Discussion