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 123 discussion

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

What does Terraform use .terraform.lock.hcl file for?

  • A. Tracking provider dependencies
  • B. There is no such file
  • C. Preventing Terraform runs from occurring
  • D. Storing references to workspaces which are locked
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nunyabiznes
Highly Voted 1 year, 8 months ago
Selected Answer: A
A. Tracking provider dependencies The .terraform.lock.hcl file is used to track provider dependencies and their exact versions. This file is automatically generated by Terraform when you run terraform init. It locks the versions of the providers used in your configuration, ensuring that subsequent Terraform runs use the same provider versions for consistency and reproducibility across environments. This file should be committed to your version control system to maintain consistency across team members and environments.
upvoted 9 times
...
[Removed]
Highly Voted 2 years, 2 months ago
Selected Answer: A
A is correct https://www.terraform.io/language/files/dependency-lock
upvoted 9 times
...
Pikopo
Most Recent 1 year, 1 month ago
A is correct
upvoted 1 times
...
Ni33
1 year, 6 months ago
Selected Answer: A
A is the correct answer !
upvoted 1 times
...
Livvie
2 years ago
Selected Answer: A
The right answer is A. Based on this reference: https://developer.hashicorp.com/terraform/language/files/dependency-lock
upvoted 1 times
...
Anderson01
2 years, 1 month ago
"Terraform has made some changes to the "provider dependency" selections recorded in the .terraform.lock.hcl file. Review those changes and commit them to your version control system if they represent changes you intended to make." -> I will go with A
upvoted 1 times
...
Atta33
2 years, 1 month ago
Selected Answer: A
A is correct
upvoted 1 times
...
shopkitty
2 years, 2 months ago
Selected Answer: D
I voted for D, this file for the purpose that now allow other user to perform init again the from different machine (workspace) if you work as a team.
upvoted 1 times
...
bora4motion
2 years, 2 months ago
Selected Answer: A
so if you google the first thing that shows up is A
upvoted 4 times
...
Burakko
2 years, 2 months ago
Selected Answer: A
I guess it is A. "hcl , and this name is intended to signify that it is a lock file for various items that Terraform caches in the . terraform subdirectory of your working directory. Terraform automatically creates or updates the dependency lock file each time you run the terraform init command."
upvoted 2 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 ...