HashiCorp Certified: Terraform Associate — Question 254

When do you need to explicitly execute terraform refresh?

Answer options

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.