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:

Kara
1 months ago
I heard the exam is going to be a total module-maker. Better brush up on my Terraform puns!
upvoted 0 times
Isaiah
17 days ago
C) Add a version = '1.0.0' attribute to the module block.
upvoted 0 times
...
Frederica
18 days ago
A) Append ?ref=v1.0.0 argument to the source path.
upvoted 0 times
...
...
Lashawnda
1 months ago
I'm just hoping the exam doesn't ask me to write a Terraform module from scratch. That would be a real Terraform-ic experience!
upvoted 0 times
Kara
8 days ago
C) Add a version = `1.0.0` attribute to the module block.
upvoted 0 times
...
Trevor
16 days ago
A) Append ?ref=v1.0.0 argument to the source path.
upvoted 0 times
...
...
Jerrod
1 months ago
I'm going with C. It's the only option that mentions the version attribute, which seems like the way to go.
upvoted 0 times
Dannie
20 days ago
I agree, C is the way to go. It's important to be able to specify the version when referencing a module.
upvoted 0 times
...
Avery
22 days ago
I think C is the correct answer. It makes sense to specify the version using the version attribute.
upvoted 0 times
...
...
Vesta
2 months ago
I'm not sure. I think it might be A) Append ?ref=v1.0.0 argument to the source path.
upvoted 0 times
...
Hector
2 months ago
D is a bit too good to be true. Modules usually have different versions, not just 1.0.0.
upvoted 0 times
Rodolfo
1 months ago
Yeah, D does seem too good to be true. Modules usually have multiple versions.
upvoted 0 times
...
Rodolfo
1 months ago
I think C) Add a version = 1.0.0 attribute to the module block.
upvoted 0 times
...
...
Daniela
2 months ago
I agree with Doyle. It makes sense to specify the version within the module block.
upvoted 0 times
...
Shannan
2 months ago
B is definitely wrong. The Terraform Registry does support versioning for modules.
upvoted 0 times
...
Derick
2 months 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
Luz
22 days ago
Absolutely, it helps ensure you are using the correct version of the module.
upvoted 0 times
...
Louis
24 days ago
That makes sense. It's important to specify the version when referencing a module.
upvoted 0 times
...
Shayne
1 months ago
Yes, you are right. The version attribute is used to specify the module version.
upvoted 0 times
...
Jarod
2 months ago
I think C is the correct answer.
upvoted 0 times
...
Shenika
2 months ago
Yes, that's right. The version attribute is used to specify the module version in the module block.
upvoted 0 times
...
Francesco
2 months ago
I agree, C is the correct answer. You add a version attribute to specify the module version.
upvoted 0 times
...
...
Doyle
2 months ago
I think the answer is C) Add a version = '1.0.0' attribute to the module block.
upvoted 0 times
...

Save Cancel