HashiCorpHashiCorp
TA-002-P · Question #100
TA-002-P Question #100: Real Exam Question with Answer & Explanation
Sign in or unlock TA-002-P to reveal the answer and full explanation for question #100. The question stem and answer options stay visible for context.
Interact with Terraform modules
Question
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?
Options
- AAdd node_count = var.node_count
- BDeclare the variable in a terraform.tfvars file
- CDeclare a node_count input variable for child module
- DNothing, child modules inherit variables of parent module
Unlock TA-002-P to see the answer
You've previewed enough free TA-002-P questions. Unlock TA-002-P for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.
Topics
#Modules#Input Variables#Module Communication#Variables