TERRAFORM-ASSOCIATE-003 · Question #243
Which of the following should you add in the required_providers block to define a provider version constraint?
The correct answer is B. version = "3.1". Provider version constraints in Terraform are specified using the version argument in the required_providers block, e.g.: required_providers { source = "hashicorp/aws" This ensures Terraform always uses a specific provider version (or constraint expression).
Question
Which of the following should you add in the required_providers block to define a provider version constraint?
Options
- Aversion
- Bversion = "3.1"
- Cversion: 3.1
- Dversion - 3.1
How the community answered
(27 responses)- A4% (1)
- B70% (19)
- C11% (3)
- D15% (4)
Explanation
Provider version constraints in Terraform are specified using the version argument in the required_providers block, e.g.: required_providers { source = "hashicorp/aws" This ensures Terraform always uses a specific provider version (or constraint expression).
Topics
Community Discussion
No community discussion yet for this question.