HashiCorp Certified: Terraform Associate
HashiCorp Certified: Terraform Associate practice questions, page 12 of 15, with answer review and explanations.
Question 56
When does terraform apply reflect changes in the cloud environment?
- Immediately
- However long it takes the resource provider to fulfill the request
- After updating the state file
- Based on the value provided to the -refresh command line argument
- None of the above
Question 57
How would you reference the "name" value of the second instance of this fictitious resource?
- element(aws_instance.web, 2)
- aws_instance.web[1].name
- aws_instance.web[1]
- aws_instance.web[2].name
- aws_instance.web.*.name
Question 58
A Terraform provider is not responsible for:
- Understanding API interactions with some service
- Provisioning infrastructure in multiple clouds
- Exposing resources and data sources based on an API
- Managing actions to take based on resource differences
Question 59
Terraform provisioners can be added to any resource block.
- True
- False
Question 60
What is terraform refresh intended to detect?
- Terraform configuration code changes
- Empty state files
- State file drift
- Corrupt state files