Question of the day · DevOps
HashiCorp Certified: Terraform Associate (004): today's question
Today · Terraform fundamentals
Which command upgrades installed providers to the newest versions that still match the constraints in the configuration, and updates the lock file?
- Aterraform providers upgrade
- Bterraform init -upgrade
- Cterraform refresh
- Dterraform apply -upgrade
Show the answer
B. A plain terraform init reuses the versions already recorded in the lock file. terraform init -upgrade re-evaluates the constraints and records the newest matching versions.
Written for practice in the style of the exam: never a question from the real exam. A new one every day.
Want ten more now?
The free readiness check asks ten questions weighted like the real exam and shows your score by section.