When does Terraform create the .terraform.lock.hcl file?
When does Terraform create the .terraform.lock.hcl file?
Terraform creates the .terraform.lock.hcl file after your first terraform init. This command initializes the working directory containing the Terraform configuration files and it is during this initialization process that Terraform generates the lock file to ensure consistent dependency versions.
Answer C Terraform automatically creates or updates the dependency lock file each time you run the terraform init command.
answer D is correct.