exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 347 discussion

Actual exam question from HashiCorp's Terraform Associate
Question #: 347
Topic #: 1
[All Terraform Associate Questions]

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

  • A. True
  • B. False
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
Smith_Adam
1 month ago
Selected Answer: B
The version attribute in a module block referencing a module from the Terraform Registry is optional but highly recommended. If you do not specify a version, Terraform will fetch the latest available version of the module when you run terraform init. Specifying a version helps ensure consistency and predictability in deployments by avoiding unexpected changes if a newer version of the module becomes available. Thus, while specifying the version is not mandatory, it is considered a best practice.
upvoted 2 times
...
siheom
1 month, 1 week ago
Selected Answer: B
vote B
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