HashiCorpHashiCorp
TA-002-P · Question #442
TA-002-P Question #442: Real Exam Question with Answer & Explanation
Sign in or unlock TA-002-P to reveal the answer and full explanation for question #442. The question stem and answer options stay visible for context.
Interact with Terraform modules
Question
You are using a networking module in your Terraform configuration with the name label my_network. In your main configuration you have the following code: When you run terraform validate, you get the following error: What must you do to successfully retrieve this value from your networking module?
Options
- ADefine the attribute vnet_id as a variable in the networking module
- BChange the referenced value to module.my_network.outputs.vnet_id
- CDefine the attribute vnet_id as an output in the networking module
- DChange the referenced value to my_network.outputs.vnet_id
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
#Terraform modules#Module outputs#Module interaction#Configuration syntax