Exam4Training

What must you do to pass the value to a child module in the configuration?

You have declared an input variable called environment in your parent module.

What must you do to pass the value to a child module in the configuration?
A . Add node_count = var.node_count
B. Declare the variable in a terraform.tfvars file
C. Declare a node_count input variable for child module
D. Nothing, child modules inherit variables of parent module

Answer: C

Explanation:

"That module may call other modules and connect them together by passing output values from one to input values of another." https://www.terraform.io/language/modules/develop

Latest TA-002-P Dumps Valid Version with 324 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Exit mobile version