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 35 Discussion

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

Which argument can you use to prevent unexpected updates to a module's configuration when calling Terraform Registry modules?

Show Suggested Answer Hide Answer
Suggested Answer: C

Comprehensive and Detailed in-Depth

The version argument in a module ensures Terraform uses a specific version of a module, preventing unintended updates.

A (source) -- Specifies the module source but does not control versioning.

B (count) -- Controls how many instances of a resource/module exist, not updates.

D (lifecycle) -- Controls how resources behave but does not control module versioning.

Official Terraform Documentation Reference:


Contribute your Thoughts:

Starr
5 days ago
I think the `version` argument is important to prevent unexpected updates, but I'm not entirely sure if it's the only one we should consider.
upvoted 0 times
...
Reuben
11 days ago
I'm pretty confident that C is the correct answer. Specifying the version is the best way to ensure stability and prevent surprises when using Terraform Registry modules.
upvoted 0 times
...
Dean
16 days ago
I'm a bit confused on this one. Is there another argument besides version that could also work to prevent unexpected updates? I want to make sure I fully understand the options.
upvoted 0 times
...
Elli
22 days ago
The version argument sounds like the right approach here. Locking the module to a specific version will ensure that any future updates don't break your configuration.
upvoted 0 times
...
Mattie
27 days ago
Hmm, I'm not totally sure about this one. I'll need to review the Terraform Registry documentation again to make sure I understand the different arguments and how they work.
upvoted 0 times
...
Pete
1 months ago
I think the answer is C. Using the version argument to specify a specific version of the module should prevent unexpected updates.
upvoted 0 times
...
Maurine
7 months ago
Ah, the age-old question of keeping your infrastructure on a leash. Clearly, the answer is to use the 'do-not-touch-this-or-else' option. Good luck, everyone!
upvoted 0 times
Vanda
5 months ago
Always check the module documentation for any specific configuration options.
upvoted 0 times
...
Kris
5 months ago
You can use the 'constraints' argument to specify version constraints.
upvoted 0 times
...
Aretha
6 months ago
Set the 'version' argument to a specific version to prevent unexpected updates.
upvoted 0 times
...
Buddy
6 months ago
Use the 'source' argument to pin the module to a specific version.
upvoted 0 times
...
...
Rodrigo
7 months ago
B) count? Really? I'm pretty sure that's just for duplicating resources, not locking down versions. Rookie mistake!
upvoted 0 times
...
Cruz
7 months ago
A) source, because that's where the magic happens! Or, you know, the potential disaster, depending on how you look at it.
upvoted 0 times
...
Lisbeth
7 months ago
D) lifecycle is the answer. Gotta keep that configuration locked down tight, no room for shenanigans here!
upvoted 0 times
Valentin
6 months ago
That's right, setting the lifecycle configuration can help maintain control over changes to module configurations.
upvoted 0 times
...
Laura
6 months ago
Exactly, using the lifecycle argument in Terraform can help prevent unexpected updates to module configurations.
upvoted 0 times
...
...
Kattie
7 months ago
C) version is the way to go. Don't want any surprises when your infrastructure decides to update itself without your permission!
upvoted 0 times
...
Sheridan
7 months ago
Because the lifecycle argument allows you to control when resources are created, updated, or deleted.
upvoted 0 times
...
Merissa
7 months ago
Why do you think it's lifecycle?
upvoted 0 times
...
Sheridan
7 months ago
I disagree, I believe it's D) lifecycle.
upvoted 0 times
...
Merissa
7 months ago
I think the answer is C) version.
upvoted 0 times
...

Save Cancel