ExamGecko
Question list
Search
Search

Question 120 - Terraform Associate 003 discussion

Report
Export

How would you output returned values from a child module in the Terraform CLI output?

A.
Declare the output in the root configuration
Answers
A.
Declare the output in the root configuration
B.
Declare the output in the child module
Answers
B.
Declare the output in the child module
C.
Declare the output in both the root and child module
Answers
C.
Declare the output in both the root and child module
D.
None of the above
Answers
D.
None of the above
Suggested answer: C

Explanation:

To output returned values from a child module in the Terraform CLI output, you need to declare the output in both the child module and the root module. The child module output will return the value to the root module, and the root module output will display the value in the CLI.Reference= [Terraform Outputs]

asked 18/09/2024
Tuan Nguyen
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first