Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 111


You just upgraded the version of a provider in an existing Terraform project. What do you need to do to install the new provider?

Show Answer
Correct Answer: B

To install the new provider after upgrading its version in an existing Terraform project, you need to run 'terraform init -upgrade'. This command reinitializes the Terraform working directory and updates providers to the latest version allowed within the version constraints specified in the configuration.

Discussion

8 comments
Sign in to comment
Hizumi
Mar 2, 2023

Answer is B. [-upgrade] - Opt to upgrade modules and plugins as part of their respective installation steps. See the sections below for more details. Reference: https://www.terraform.io/cli/commands/init#upgrade

BortolotoOption: B
Apr 6, 2023

Answer is B.

hectordjOption: B
Apr 25, 2023

Answer is B.

srcntpcOption: B
Jul 8, 2023

Answer is B.

Ni33Option: B
Nov 9, 2023

BBBBBBBB

IK912
Dec 18, 2023

its B, I tried this

Tyler2023
May 3, 2024

https://developer.hashicorp.com/terraform/tutorials/configuration-language/provider-versioning#upgrade-the-aws-provider-version

Prince_devopsOption: B
Jul 26, 2024

Answer is B