HashiCorp Certified: Terraform Associate — Question 131
How would you output returned values from a child module?
Answer options
- A. Declare the output in the root configuration
- B. Declare the output in the child module
- C. Declare the output in both the root and child module
- D. None of the above
Correct answer: C
Explanation
The correct answer is C because to successfully output values from a child module, you need to declare the output in both the root configuration and the child module. Options A and B are incomplete as they do not cover both necessary declarations, and option D is incorrect as the correct method is provided in option C.