HashiCorp Certified: Terraform Associate — Question 254
When do you need to explicitly execute terraform refresh?
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 is not required to be executed explicitly; Terraform automatically manages the state during plan and apply operations. The other options suggest mandatory steps that are not necessary as Terraform handles state updates on its own.