exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 333 discussion

Actual exam question from HashiCorp's Terraform Associate
Question #: 333
Topic #: 1
[All Terraform Associate 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?

  • A. You cannot. Modules stored on the public Terraform Registry do not support versioning.
  • B. Add a version = “1.0.0” attribute to the module block.
  • C. Nothing. Modules stored on the public Terraform module Registry always default to version 1.0.0.
  • D. Append ?ref=v1.0.0 argument to the source path.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
vonbuggy99
3 months, 2 weeks ago
Selected Answer: B
To specify version 1.0.0 of a Terraform module, you use the "version" argument within the "module" block in your Terraform configuration, like this: module "my_module" { source = "my_provider/my_module" version = "1.0.0" }
upvoted 1 times
...
d00b229
6 months, 1 week ago
B. Add a version = “1.0.0” attribute to the module block.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago