HashiCorp Certified: Terraform Associate — Question 192

What does terraform refresh-only modify?

Answer options

Correct answer: D

Explanation

The terraform refresh-only command updates the state file by synchronizing it with the real-world infrastructure, ensuring that Terraform has the latest information. The other options, such as cloud infrastructure, Terraform plan, and Terraform configuration, remain unchanged and are not directly modified by this command.