HashiCorp
TERRAFORM-ASSOCIATE-004 · Question #6
As a developer, you want to ensure your plugins are up to date with the latest versions. Which Terraform command should you use?
The correct answer is C. terraform init -upgrade. This command will upgrade the plugins to the latest acceptable version within the version constraints specified in the configuration. The other commands do not have an -upgrade option.
Submitted by lukas.cz· Apr 18, 2026Use Terraform CLI
Question
As a developer, you want to ensure your plugins are up to date with the latest versions. Which Terraform command should you use?
Options
- Aterraform refresh -upgrade
- Bterraform apply -upgrade
- Cterraform init -upgrade
- Dterraform providers -upgrade
How the community answered
(14 responses)- C93% (13)
- D7% (1)
Explanation
This command will upgrade the plugins to the latest acceptable version within the version constraints specified in the configuration. The other commands do not have an -upgrade option.
Topics
#Terraform CLI#Provider management#terraform init command#Plugin updates
Community Discussion
No community discussion yet for this question.