HashiCorp Certified: Terraform Associate — Question 205
When do you need to explicitly execute terraform refresh-only?
Answer options
- A. Before every terraform plan
- B. Before every terraform apply
- C. Before every terraform import
- D. None of the above
Correct answer: D
Explanation
The correct answer is D because terraform refresh-only is not required to be executed explicitly before any of the mentioned actions. Terraform automatically refreshes the state before the plan and apply actions, making it unnecessary to run refresh-only beforehand.