terraform-associate question 334 discussion

View all HashiCorp Certified: Terraform Associate Exam here
back to hashicorp forum

Question 334

What is a key benefit of the Terraform state file?

  • A. A state file represents a source of truth for resources provisioned with a public cloud console
  • B. A state file represents a source of truth for resources provisioned with Terraform
  • C. A state file represents the desired state expressed by the Terraform code files D A state file can be used to schedule recurring infrastructure tasks
Answer:

C


User Votes:
A
50%
B 1 votes
50%
C
50%
Discussions
0 / 1000
nassimaelferkhsi
1 month, 2 weeks ago

The Terraform state file (terraform.tfstate) is critical because it acts as the single source of truth for resources managed by Terraform. It stores information about the actual infrastructure state, including resource attributes and metadata, allowing Terraform to track resource changes and manage updates, deletions, or additions effectively.