Terraform Associate Exam QuestionsBrowse all questions from this exam

Terraform Associate Exam - Question 338


terraform init retrieves and caches the configuration for all remote modules.

Show Answer
Correct Answer:

Discussion

4 comments
Sign in to comment
Algol
Sep 19, 2024

The question is not so clear. In case, by "all modules" they mean all modules that are mentioned in the code, then the answer is yes but if they mean all the modules that exist, the answer is no.

azizbaghirov
Nov 18, 2024

I think, the answer here should be B. False. Because, as you mentioned, from context we understand that the question means all modules, not just ones in the code.

d00b229
Sep 5, 2024

A. True

geekosOption: A
Jan 12, 2025

The terraform init command retrieves and caches the configuration for all remote modules referenced in the Terraform configuration files. It downloads the source code for these modules and stores them locally (typically in the .terraform directory) so they can be reused without additional downloads in subsequent runs unless the -upgrade flag is used to force updates

SoratajOption: B
Mar 25, 2025

I'd say it is B, because init retrieves and caches the configuration for the remote modules referenced in the config files, not "all modules". The question is a bit ambiguous