HashiCorp Certified: Terraform Associate — Question 71
What is terraform refresh intended to detect?
Answer options
- A. Terraform configuration code changes
- B. Empty state files
- C. State file drift
- D. Corrupt state files
Correct answer: C
Explanation
The terraform refresh command is designed to update the state file with the real infrastructure status, which helps in identifying state file drift, making option C correct. Options A, B, and D do not accurately describe what terraform refresh detects, as it does not focus on configuration changes, empty states, or corruption issues.