ExamGecko
Question list
Search
Search

Question 133 - Terraform Associate 003 discussion

Report
Export

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

A.
version >= 3.1
Answers
A.
version >= 3.1
B.
version = ''>= 3.1''
Answers
B.
version = ''>= 3.1''
C.
version ~> 3.1
Answers
C.
version ~> 3.1
Suggested answer: B

Explanation:

Therequired_providersblock is used to specify the provider versions that the configuration can work with. Theversionargument accepts a version constraint string, which must be enclosed in double quotes. The version constraint string can use operators such as>=,~>,=, etc. to specify the minimum, maximum, or exact version of the provider. For example,version = '>= 3.1'means that the configuration can work with any provider version that is 3.1 or higher.Reference= [Provider Requirements] and [Version Constraints]

asked 18/09/2024
Abdullah Mousa
45 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first