HashiCorp Certified: Terraform Associate — Question 304
What does terraform refresh modify?
Answer options
- A. Your cloud infrastructure
- B. Your state file
- C. Your Terraform plan
- D. Your Terraform configuration
Correct answer: B
Explanation
The terraform refresh command updates the state file to reflect the current state of the infrastructure. This command does not change the actual cloud infrastructure, Terraform plan, or configuration; it only ensures that the state file is in sync with what is deployed.