Hashicorp Certified Terraform Associate 003 · Free Practice Question Medium
Question 26
Fill in the blank from the correct answer below:
A Terraform module (usually the root module of a configuration) can call other modules to include their resources into the configuration. A module that has been called by another module is often referred to as _______________.
-
A
called module
-
B
child module
-
C
parent module
-
D
sourced module
Reveal correct answer
Correct answer: B
Explanation
A Terraform module (usually the root module of a configuration) can call other modules to include their resources into the configuration. A module that has been called by another module is often referred to as a child module.
Child modules can be reused across configurations and called multiple times, allowing modular and scalable infrastructure design.
A. The term "called module" is not typically used in Terraform to describe a module that has been included or referenced by another module. The more commonly used term for this scenario is a "child module."
B. A Terraform module that has been called by another module is commonly referred to as a "child module." This terminology is used to indicate that the module is being included or used within another module's configuration.
C. A "parent module" in Terraform refers to the module that is calling or including other modules within its configuration. It is the module that is responsible for orchestrating and integrating the resources from the child modules.
D. While a "sourced module" can refer to a module that is retrieved from a remote source or registry, it is not the commonly used term to describe a module that has been called by another module in Terraform configurations.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
