HashiCorp Certified: Terraform Associate — Question 304

What does terraform refresh modify?

Answer options

Correct answer: B

Explanation

The terraform refresh command updates the state file to reflect the current state of the infrastructure. This command does not change the actual cloud infrastructure, Terraform plan, or configuration; it only ensures that the state file is in sync with what is deployed.