Terraform Associate Practice Test

Terraform Associate Practice Test practice questions, page 12 of 15, with answer review and explanations.

Question 56

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

Question 57

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

Question 58

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

Question 59

Terraform provisioners can be added to any resource block.

  1. True
  2. False

Question 60

What is terraform refresh intended to detect?

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