nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-003 · Question #45

What does this code do?

The correct answer is A. Requires any version of the AWS provider > = 3.0 and <4.0. This is what this code does, by using the pessimistic constraint operator (~>), which specifies an acceptable range of versions for a provider or module.

Understand Terraform basics

Question

What does this code do?

Options

  • ARequires any version of the AWS provider > = 3.0 and <4.0
  • BRequires any version of the AWS provider >= 3.0
  • CRequires any version of the AWS provider after the 3.0 major release, like 4.1
  • DRequires any version of the AWS provider > 3.0

How the community answered

(39 responses)
  • A
    79% (31)
  • B
    5% (2)
  • C
    13% (5)
  • D
    3% (1)

Explanation

This is what this code does, by using the pessimistic constraint operator (~>), which specifies an acceptable range of versions for a provider or module.

Topics

#version constraints#provider versioning#pessimistic constraint operator#semantic versioning

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-003 Practice