nerdexam
HashiCorp

TA-002-P · Question #96

Terraform and Terraform providers must use the same major version number in a single configuration.

The correct answer is B. False. Terraform core and Terraform providers are independently versioned and do not need to share the same major version number.

Understand Terraform basics

Question

Terraform and Terraform providers must use the same major version number in a single configuration.

Options

  • ATrue
  • BFalse

How the community answered

(44 responses)
  • A
    7% (3)
  • B
    93% (41)

Why each option

Terraform core and Terraform providers are independently versioned and do not need to share the same major version number.

ATrue

This is false because Terraform's plugin architecture explicitly separates provider versioning from core CLI versioning, allowing each to follow its own release cadence independently.

BFalseCorrect

Terraform providers are distributed as separate plugins with their own independent release and versioning lifecycle, completely decoupled from the Terraform CLI version. A provider such as the AzureRM provider can be at version 3.x while Terraform CLI is at version 1.x, and both interoperate correctly as long as the provider supports the plugin protocol version used by the CLI. Provider version constraints in the 'required_providers' block manage compatibility independently from the 'required_version' constraint for the CLI.

Concept tested: Terraform core and provider independent versioning

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

Topics

#Terraform#Providers#Versioning#Configuration

Community Discussion

No community discussion yet for this question.

Full TA-002-P Practice