HashiCorp Certified: Terraform Associate — Question 205

When do you need to explicitly execute terraform refresh-only?

Answer options

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.