Question 170
A child module defines a required environment input, but the root module also has a variable named environment and the child receives no value. Which observation would be the most direct evidence that this requirement has been satisfied?
Explanation
Correct Answer
Input variables are scoped to modules and are not implicitly inherited merely because names match. Pass the root variable explicitly as an argument in the child module block.
Incorrect Answers
Outputs are the standard public value interface for composed Terraform modules. Input variables are scoped to modules and are not implicitly inherited merely because names match.
Module source addresses identify where Terraform obtains reusable configuration. Pass the root variable explicitly as an argument in the child module block.
Local module sources are part of the surrounding source tree and do not accept registry version constraints. Input variables are scoped to modules and are not implicitly inherited merely because names match.