nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-003 · Question #68

What is a key benefit of the Terraform state file?

The correct answer is B. A state file is a source of truth for resources provisioned with Terraform. This is a key benefit of the Terraform state file, as it stores and tracks the metadata and attributes of the resources that are managed by Terraform, and allows Terraform to compare the current state with the desired state expressed by your configuration files.

Implement and Maintain State

Question

What is a key benefit of the Terraform state file?

Options

  • AA state file can schedule recurring infrastructure tasks
  • BA state file is a source of truth for resources provisioned with Terraform
  • CA state file is a source of truth for resources provisioned with a public cloud console
  • DA state file is the desired state expressed by the Terraform code files

How the community answered

(53 responses)
  • A
    6% (3)
  • B
    75% (40)
  • C
    4% (2)
  • D
    15% (8)

Explanation

This is a key benefit of the Terraform state file, as it stores and tracks the metadata and attributes of the resources that are managed by Terraform, and allows Terraform to compare the current state with the desired state expressed by your configuration files.

Topics

#state file purpose#source of truth#resource tracking#state management

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-003 Practice