nerdexam
HashiCorp

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.

Interact with Terraform modules

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)
  • A
    8% (4)
  • B
    77% (40)
  • C
    12% (6)
  • D
    4% (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

#terraform init#module caching#.terraform directory#Terraform Registry

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-003 Practice