Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

HashiCorp Exam Terraform-Associate-003 Topic 6 Question 33 Discussion

Actual exam question for HashiCorp's Terraform-Associate-003 exam
Question #: 33
Topic #: 6
[All Terraform-Associate-003 Questions]

A module block is shown in the Exhibit space of this page. When you use a module block to reference a module from the Terraform Registry such as the one in the example, how do you specify version 1.0.0 of the module?

Show Suggested Answer Hide Answer
Suggested Answer: C

Module Versioning: To specify a version in a module block for modules in the Terraform Registry, you add the version attribute, e.g., version = '1.0.0'.

Terraform Registry Support: The public registry supports versioning by enabling semantic constraints, allowing users to define specific versions compatible with their infrastructure requirements.

Refer to the module versioning documentation in Terraform's official registry guide.


Contribute your Thoughts:

Daniela
4 days ago
I agree with Doyle. It makes sense to specify the version within the module block.
upvoted 0 times
...
Shannan
9 days ago
B is definitely wrong. The Terraform Registry does support versioning for modules.
upvoted 0 times
...
Derick
14 days ago
I think C is the correct answer. The version attribute is used to specify the module version in the module block.
upvoted 0 times
Shenika
2 days ago
Yes, that's right. The version attribute is used to specify the module version in the module block.
upvoted 0 times
...
Francesco
5 days ago
I agree, C is the correct answer. You add a version attribute to specify the module version.
upvoted 0 times
...
...
Doyle
16 days ago
I think the answer is C) Add a version = '1.0.0' attribute to the module block.
upvoted 0 times
...

Save Cancel