HashiCorp
TERRAFORM-ASSOCIATE-004 · Question #1
What does Terraform not reference when running a terraform apply -refresh-only ?
The correct answer is D. Terraform resource definitions in configuration files. When running a terraform apply -refresh-only, Terraform does not reference the configuration files, but only the state file, credentials, and cloud provider. The purpose of this command is to update the state file with the current status of the real resources, without making any
Submitted by rachelw· Apr 18, 2026Manage Terraform State
Question
What does Terraform not reference when running a terraform apply -refresh-only ?
Options
- AState file
- BCredentials
- CCloud provider
- DTerraform resource definitions in configuration files
How the community answered
(31 responses)- A3% (1)
- B3% (1)
- C10% (3)
- D84% (26)
Explanation
When running a terraform apply -refresh-only, Terraform does not reference the configuration files, but only the state file, credentials, and cloud provider. The purpose of this command is to update the state file with the current status of the real resources, without making any changes to
Topics
#terraform apply#refresh-only#state management#CLI behavior
Community Discussion
No community discussion yet for this question.