nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-003 · Question #189

When you include a module block in your configuration that references a module from the Terraform Registry, the "version" attribute is required.

The correct answer is B. False. The "version" attribute is optional when referencing a module from the Terraform Registry. If not specified, the latest version will be used, but it is often recommended to specify a version to ensure consistency across environments.

Interact with Terraform Modules

Question

When you include a module block in your configuration that references a module from the Terraform Registry, the "version" attribute is required.

Options

  • ATrue
  • BFalse

How the community answered

(24 responses)
  • A
    29% (7)
  • B
    71% (17)

Explanation

The "version" attribute is optional when referencing a module from the Terraform Registry. If not specified, the latest version will be used, but it is often recommended to specify a version to ensure consistency across environments.

Topics

#module versioning#Terraform Registry#module block#version constraints

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-003 Practice