ExamGecko
Question list
Search
Search

Question 163 - Terraform Associate 003 discussion

Report
Export

When does Terraform create the .terraform.lock.hc1 file?

A.
After your first terraform plan
Answers
A.
After your first terraform plan
B.
After your first terraform apply
Answers
B.
After your first terraform apply
C.
After your first terraform init
Answers
C.
After your first terraform init
D.
When you enable state locking
Answers
D.
When you enable state locking
Suggested answer: C

Explanation:

Terraform creates the .terraform.lock.hcl file after the first terraform init command. This lock file ensures that the dependencies for your project are consistent across different runs by locking the versions of the providers and modules used.

asked 18/09/2024
Ludovic HEZON
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first