TA-002-P · Question #405
TA-002-P Question #405: Real Exam Question with Answer & Explanation
The correct answer is A: Tracking provider dependencies Most Voted. {"question_number": 6, "explanation": "The .terraform.lock.hcl file is the dependency lock file introduced in Terraform 0.14. It records the exact provider versions and their checksums that were selected during terraform init. This ensures all team members and CI/CD pipelines use
Question
What does Terraform use .terraform.lock.hcl file for?
Options
- ATracking provider dependencies Most Voted
- BThere is no such file
- CPreventing Terraform runs from occurring
- DStoring references to workspaces which are locked
Explanation
{"question_number": 6, "explanation": "The .terraform.lock.hcl file is the dependency lock file introduced in Terraform 0.14. It records the exact provider versions and their checksums that were selected during terraform init. This ensures all team members and CI/CD pipelines use identical provider versions, preventing unexpected behavior from automatic upgrades. It should be committed to version control. It has nothing to do with workspace locking or preventing runs. Answer A is correct.", "generated_by": "claude-sonnet", "llm_judge_score": 4}
Topics
Community Discussion
No community discussion yet for this question.