Exam Terraform Associate All QuestionsBrowse all questions from this exam
Question 245

Which of the following should you put into the required_providers block?

    Correct Answer: B

    The correct syntax for specifying a version in the required_providers block is to use a string. Therefore, the appropriate format for setting the version constraint 'greater than or equal to 3.1' is 'version = ">= 3.1"'. The other options do not correctly follow the syntax requirements for the version parameter.

Discussion
sdm13168Option: B

B https://developer.hashicorp.com/terraform/language/providers/requirements

Tronko86Option: B

B is the only answer with a correct syntax: version parameter wants a string

MarshalLawOption: B

B since this syntax is correct. If you go back to the previous questions you'll see a screenshot where a relevant question is being asked.

Oleg_golOption: C

I choose "С"

bella

well B and C are correct. the question isn't clear about required provider... did they mean terraform version or hashicorp provider terraform { required_providers { aws = { source = "hashicorp/aws" version = "~> 5.42" } } required_version = ">= 1.2.0" }

AlandtOption: B

B is correct, others have wrong syntax

bajwa360

terraform { required_providers { mycloud = { source = "mycorp/mycloud" version = "~> 1.0" } } }

arun00028Option: C

C is the answer

arun00028Option: C

C is correct

SathisgmOption: B

I choose B

Oleg_golOption: A

A and C - correct (