Preparing Practice Exam…
Please wait a moment while the system generates the exam questions, answers, and study session.
Please wait a moment while the system generates the exam questions, answers, and study session.
Question 30 of 112
Free Preview · 112 of 371 · questions 1–112 of 371 are free. Sign up free to sync your progress across devices.
Select one answer.
Written by other learners. Comments can disagree with the marked answer — check the official documentation when in doubt.
B - refresh only check desired and actual state
When running terraform refresh, Terraform updates the state file by querying the cloud provider using the appropriate credentials to check the actual state of the infrastructure. However, the configuration file (the .tf files) is not processed during a refresh. Terraform is only concerned with updating the state to match the real-world infrastructure, not applying changes from the configuration.
Refresh command updates the state file but not the terraform configuration file