Question 590
A root module passes an object input to a child module, and validation should be enforced at the child boundary. Which Terraform concept most directly explains the appropriate approach?
Explanation
Correct Answer
Declare the child input variable with an appropriate type and pass the object explicitly. The child checks and receives the object through its declared variable interface.
Incorrect Answers
Pass the first module's exported network output to the second module's input. Each module owns its input-variable contract independently of its caller.
Pin the Git module using the supported source ref query instead of a registry version argument. The child checks and receives the object through its declared variable interface.
Declare a module block whose source identifies the intended registry module. Each module owns its input-variable contract independently of its caller.