Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 261


The Terraform binary version and provider versions must match each other in a single configuration.

Show Answer
Correct Answer: B

The Terraform binary version and provider versions do not need to match each other in a single configuration. Terraform manages provider versions independently from its core binary, and it is common for the version numbers to be different. It is important, however, to use compatible versions to ensure expected features and functionalities are supported, but there is no strict requirement for them to match exactly.

Discussion

2 comments
Sign in to comment
FyssyOption: B
Jun 17, 2023

If the versions are incompatible or if a required provider is missing, Terraform will prompt you to update the provider versions or download the necessary provider plugins.

LemonadeSoftwareOption: B
Nov 16, 2023

B Not necessarily. In Terraform, the version of the Terraform binary itself doesn't have to match the versions of the providers being used within a configuration file. However, it's generally recommended to use compatible versions. Terraform typically manages provider versions independently from its core binary. Each Terraform provider (e.g., AWS, Azure, etc.) has its own versioning that may differ from the version of the Terraform core. Using compatible versions helps ensure that the features and functionalities expected by your configuration are available and supported by both the Terraform binary and the specified providers. But it's not a strict requirement that they must match exactly.