nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-004 · Question #131

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

The correct answer is B. version = ">= 3.1". The required_providers block is used to specify the provider versions that the configuration can work with. The version argument accepts a version constraint string, which must be enclosed in double quotes. The version constraint string can use operators such as >=, ~>, =, etc. t

Submitted by suresh_in· Apr 18, 2026Understand Terraform Providers

Question

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

Options

  • Aversion >= 3.1
  • Bversion = ">= 3.1"
  • Cversion ~> 3.1

How the community answered

(28 responses)
  • A
    4% (1)
  • B
    96% (27)

Explanation

The required_providers block is used to specify the provider versions that the configuration can work with. The version argument 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.

Topics

#provider configuration#version constraints#required_providers#syntax

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-004 Practice