NSE7_PBC-7.2 · Question #77
How does Terraform keep track of provisioned resources?
The correct answer is A. It uses the terraform. tf state file. Terraform manages and tracks the state of infrastructure resources through a file known as terraform.tfstate. This file is automatically created by Terraform and is updated after the application of a Terraform plan to capture the current state of the resources. State File…
Question
How does Terraform keep track of provisioned resources?
Options
- AIt uses the terraform. tf state file
- BTerraform does not keep the state of resources created
- CIt uses the terraform. tfvars file.
- DIt uses the database. tf file.
How the community answered
(28 responses)- A82% (23)
- B4% (1)
- C4% (1)
- D11% (3)
Explanation
Terraform manages and tracks the state of infrastructure resources through a file known as terraform.tfstate. This file is automatically created by Terraform and is updated after the application of a Terraform plan to capture the current state of the resources. State File Purpose: The terraform.tfstate file contains a JSON object that records the IDs and properties of resources Terraform manages, so that it can map real-world resources to your configuration, keep track of metadata, and improve performance for large infrastructures. State File Management: This file is crucial for Terraform to perform resource updates, deletions, and for creating dependencies. It's essentially the 'source of truth' for Terraform about your managed infrastructure and services.
Topics
Community Discussion
No community discussion yet for this question.