HashiCorp Certified: Terraform Associate — Question 162

Define the purpose of state in Terraform.

Answer options

Correct answer: D

Explanation

The correct answer is D because Terraform's state file is essential for mapping real-world infrastructure to the configuration and storing important metadata. Options A, B, and C describe aspects of resource management but do not accurately capture the primary purpose of state in Terraform, which is to track the resources and their metadata.