Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 79


When you initialize Terraform, where does it cache modules from the public Terraform Module Registry?

Show Answer
Correct Answer: C

When you initialize Terraform, it caches modules from the public Terraform Module Registry on disk in the .terraform sub-directory. This directory is automatically managed by Terraform, created during initialization, and used to manage cached provider plugins and modules.

Discussion

8 comments
Sign in to comment
EltoothOption: C
Dec 28, 2022

C is correct answer : hidden terraform directory "A hidden .terraform directory, which Terraform uses to manage cached provider plugins and modules, record which workspace is currently active, and record the last known backend configuration in case it needs to migrate state on the next run. This directory is automatically managed by Terraform, and is created during initialization." https://www.terraform.io/cli/init

amrith501Option: C
Dec 12, 2022

on disk for sure for sure

Eltooth
Jan 7, 2023

On disk in the .terraform sub-directory - just to clarify.

Ahmad_Terraform
Jan 14, 2023

C. On disk in the .terraform sub-directory

eduvar4Option: C
Mar 27, 2023

https://developer.hashicorp.com/terraform/language/modules/sources

vadeemkaa
Jun 22, 2023

Answer C. On disk in the .terraform sub-directory

Power123
Sep 30, 2023

Answer is C

Ni33Option: C
Nov 9, 2023

C is the correct option

shefulacertificari
Jul 20, 2024

Answer - C. It's stored in the .terraform directory.