TA-002-P · Question #62
FILL BLANK What is the name of the default file where Terraform stores the state? Type your answer in the field provided. The text field is not case-sensitive and all variations of the correct…
The correct answer is A. Terraform.tfstate. By default, Terraform stores its state in a file named 'terraform.tfstate' in the current working directory, which tracks the mapping between configuration resources and real-world infrastructure.
Question
FILL BLANK What is the name of the default file where Terraform stores the state? Type your answer in the field provided. The text field is not case-sensitive and all variations of the correct answer are accepted.
Options
- ATerraform.tfstate
How the community answered
(34 responses)- A100% (34)
Why each option
By default, Terraform stores its state in a file named 'terraform.tfstate' in the current working directory, which tracks the mapping between configuration resources and real-world infrastructure.
When Terraform operates in a local backend configuration without explicit state file naming, it automatically creates and manages a file named 'terraform.tfstate' to store the state of the infrastructure it manages. This file is crucial for Terraform to understand the current state of resources.
Concept tested: Terraform default state file
Source: https://developer.hashicorp.com/terraform/language/state
Topics
Community Discussion
No community discussion yet for this question.