TERRAFORM-ASSOCIATE-003 · Question #222
When you initialize Terraform, where does it cache modules from the public Terraform Registry?
The correct answer is B. In the .terraform sub-directory. Terraform downloads modules and providers into the .terraform directory inside the working A (/tmp/) - Incorrect; modules are not stored temporarily. C (In memory) - Incorrect; modules persist on disk. D (Not cached) - Incorrect; Terraform does cache modules for efficiency.
Question
When you initialize Terraform, where does it cache modules from the public Terraform Registry?
Options
- AIn the /tmp directory.
- BIn the .terraform sub-directory.
- CIn memory.
- DThey are not cached.
How the community answered
(52 responses)- A8% (4)
- B77% (40)
- C12% (6)
- D4% (2)
Explanation
Terraform downloads modules and providers into the .terraform directory inside the working A (/tmp/) - Incorrect; modules are not stored temporarily. C (In memory) - Incorrect; modules persist on disk. D (Not cached) - Incorrect; Terraform does cache modules for efficiency.
Topics
Community Discussion
No community discussion yet for this question.