Which of these is stored in the .terraform directory?
A.
The dependency lock file
B.
Providers and modules
C.
The state file
D.
Terraform configuration files
The Answer Is:
B
This question includes an explanation.
Explanation:
Detailed Explanation:
Rationale for Correct Answer: Terraform uses the .terraform directory as working-directory data and caches downloaded dependencies there, including modules and provider/plugin-related files. HashiCorp ' s tutorial describes .terraform as containing modules and plugins used to provision infrastructure.
Analysis of Incorrect Options (Distractors):
A: .terraform.lock.hcl is stored in the root working directory, not inside .terraform.
C: With the default local backend, terraform.tfstate is normally in the working directory, not the .terraform dependency directory.
D: .tf configuration files belong in the module ' s working directory.
Key Concept: Terraform working-directory structure and initialization artifacts.