Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam Terraform Associate All Questions

View all questions & answers for the Terraform Associate exam

Exam Terraform Associate topic 1 question 262 discussion

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

The .terraform.lock.hcl file tracks module versions.

  • A. True
  • B. False
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Fyssy
Highly Voted 1 year, 5 months ago
Selected Answer: B
The .terraform.lock.hcl file is not used to track module versions; it is used to lock the versions of the provider dependencies used by your Terraform configuration.
upvoted 11 times
...
Mimi666
Highly Voted 1 year, 1 month ago
Selected Answer: B
At present, the dependency lock file tracks only provider dependencies. Terraform does not remember version selections for remote modules, and so Terraform will always select the newest available module version that meets the specified version constraints. Fuente: https://developer.hashicorp.com/terraform/language/files/dependency-lock
upvoted 6 times
...
Newuser95
Most Recent 9 months, 1 week ago
Selected Answer: B
At present, the dependency lock file tracks only provider dependencies. Terraform does not remember version selections for remote modules, and so Terraform will always select the newest available module version that meets the specified version constraints. You can use an exact version constraint to ensure that Terraform will always select the same module version. https://developer.hashicorp.com/terraform/language/files/dependency-lock
upvoted 3 times
...
gold4otas
10 months, 4 weeks ago
Selected Answer: B
The .terraform.lock.hcl file does not track module versions. Instead, it is used to lock the versions of the provider plugins used by Terraform. It helps ensure that the same provider versions are used consistently across different Terraform runs and by different team members. Module versions, on the other hand, are typically tracked in the versions.tf or required_version block in the main Terraform configuration file or in the root module. The versions of modules are controlled through the Terraform configuration itself, not the .terraform.lock.hcl file.
upvoted 2 times
...
Spandrop
11 months, 2 weeks ago
Selected Answer: A
https://developer.hashicorp.com/terraform/language/files/dependency-lock
upvoted 1 times
...
enry99ita
11 months, 2 weeks ago
Selected Answer: B
At present, the dependency lock file tracks only provider dependencies. Terraform does not remember version selections for remote modules, and so Terraform will always select the newest available module version that meets the specified version constraints. You can use an exact version constraint to ensure that Terraform will always select the same module version.
upvoted 1 times
...
PolitoMex
11 months, 3 weeks ago
Selected Answer: A
In the newest documentation .terraform.lock.hcl tracks both modules and providers versions.
upvoted 1 times
...
LemonadeSoftware
1 year ago
A The .terraform.lock.hcl file keeps track of the specific versions of modules used in your Terraform configuration. It records the exact versions of modules and their dependencies to ensure that subsequent runs of Terraform use the same versions consistently. This file helps maintain consistency across different environments and team members working on the same Terraform project by locking the versions of modules, preventing unintentional upgrades or changes to the modules without explicit action.
upvoted 2 times
...
dn_mohammed_data
1 year, 1 month ago
Selected Answer: B
tracks both providers and modules versions
upvoted 2 times
uax
1 year ago
"At present, the dependency lock file tracks only provider dependencies. Terraform does not remember version selections for remote modules, and so Terraform will always select the newest available module version that meets the specified version constraints. " https://developer.hashicorp.com/terraform/language/files/dependency-lock
upvoted 2 times
...
...
BalaGCPArch
1 year, 3 months ago
Selected Answer: A
The question does not ask if it’s used to track only module version.. the dependency lock is used to track both provider and module version.. Hence I go with Option A
upvoted 1 times
...
akm_1010
1 year, 3 months ago
Selected Answer: B
At present, the dependency lock file tracks only provider dependencies. Terraform does not remember version selections for remote modules https://developer.hashicorp.com/terraform/language/files/dependency-lock
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 ...