Question 280
A team wants to verify that a reusable module's caller receives a computed service endpoint without needing its underlying resource naming. Which Terraform concept most directly explains the appropriate approach?
Explanation
Correct Answer
Publish a child output and use that output in the calling module. The endpoint is accessible as a module output after evaluation.
Incorrect Answers
Declare a module block whose source identifies the intended registry module. Publish a child output and use that output in the calling module.
Change the version constraint deliberately, reinitialize, and inspect a full plan in affected roots. Outputs are the standard public value interface for composed Terraform modules.
Pass the root variable explicitly as an argument in the child module block. The endpoint is accessible as a module output after evaluation.