HashiCorp
TERRAFORM-ASSOCIATE-004 · Question #169
What is terraform refresh-only intended to detect?
The correct answer is C. State file drift. The terraform refresh-only command is intended to detect state file drift. This command synchronizes the state file with the actual infrastructure, updating the state to reflect any changes that have occurred outside of Terraform.
Submitted by yousef_jo· Apr 18, 2026Manage Terraform State
Question
What is terraform refresh-only intended to detect?
Options
- ATerraform configuration code changes
- BCorrupt state files
- CState file drift
- DEmpty state files
How the community answered
(42 responses)- A5% (2)
- B2% (1)
- C88% (37)
- D5% (2)
Explanation
The terraform refresh-only command is intended to detect state file drift. This command synchronizes the state file with the actual infrastructure, updating the state to reflect any changes that have occurred outside of Terraform.
Topics
#terraform refresh-only#state file drift#state management#Terraform CLI
Community Discussion
No community discussion yet for this question.