TA-002-P · Question #280
TA-002-P Question #280: Real Exam Question with Answer & Explanation
The correct answer is D: current working directory. {"question_number": 7, "correct_answer": "D", "explanation": "By default, Terraform stores its state file (terraform.tfstate) in the current working directory - the same directory where you run Terraform commands. This is the local backend, which is the default when no backend is
Question
By default, where does Terraform store its state file?
Options
- AAmazon S3 bucket
- Bshared directory
- Cremotely using Terraform Cloud
- Dcurrent working directory
Explanation
{"question_number": 7, "correct_answer": "D", "explanation": "By default, Terraform stores its state file (terraform.tfstate) in the current working directory - the same directory where you run Terraform commands. This is the local backend, which is the default when no backend is explicitly configured. Storing state in an S3 bucket (A), a shared directory (B), or Terraform Cloud (C) all require explicit backend configuration. For team environments, using a remote backend is strongly recommended to enable state locking and sharing, but locally the default is always the current working directory.", "generated_by": "claude-sonnet", "llm_judge_score": 4}
Topics
Community Discussion
No community discussion yet for this question.