Free HashiCorp Terraform-Associate-003 Exam Braindumps (page: 16)

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






Post your Comments and Discuss HashiCorp Terraform-Associate-003 exam prep with other Community members:

Terraform-Associate-003 Exam Discussions & Posts