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

When does terraform apply reflect changes in the cloud environment?

  1. Immediately
  2. However long it takes the resource provider to fulfill the request
  3. After updating the state file
  4. Based on the value provided to the -refresh command line argument
  5. None of the above

Answer(s): B



How would you reference the "name" value of the second instance of this fictitious resource?

  1. element(aws_instance.web, 2)
  2. aws_instance.web[1].name
  3. aws_instance.web[1]
  4. aws_instance.web[2].name
  5. aws_instance.web.*.name

Answer(s): B

Explanation:


Reference:

https://www.terraform.io/docs/configuration-0-11/interpolation.html



A Terraform provider is not responsible for:

  1. Understanding API interactions with some service
  2. Provisioning infrastructure in multiple clouds
  3. Exposing resources and data sources based on an API
  4. Managing actions to take based on resource differences

Answer(s): B

Explanation:


Reference:

https://www.terraform.io/docs/configuration-0-11/providers.html



Terraform provisioners can be added to any resource block.

  1. True
  2. False

Answer(s): A

Explanation:


Reference:

https://www.terraform.io/docs/language/resources/provisioners/syntax.html



What is terraform refresh intended to detect?

  1. Terraform configuration code changes
  2. Empty state files
  3. State file drift
  4. Corrupt state files

Answer(s): C

Explanation:


Reference:

https://www.hashicorp.com/blog/detecting-and-managing-drift-with-terraform



Viewing Page 12 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