HashiCorp Certified: Terraform Associate — Question 131

How would you output returned values from a child module?

Answer options

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.