HashiCorp Certified: Terraform Associate — Question 218
What is terraform refresh-only intended to detect?
Answer options
- A. Empty state files
- B. Corrupt state files
- C. Terraform configuration code changes
- D. State file drift
Correct answer: D
Explanation
The correct answer is D, as terraform refresh-only is designed to identify any drift between the actual infrastructure and the state files. Options A and B refer to issues with the state files themselves, while option C concerns changes in configuration, which are not specifically detected by the refresh-only command.