nerdexam
HashiCorpHashiCorp

TA-002-P · Question #435

TA-002-P Question #435: Real Exam Question with Answer & Explanation

Sign in or unlock TA-002-P to reveal the answer and full explanation for question #435. The question stem and answer options stay visible for context.

Interact with Terraform modules

Question

You are writing a child Terraform module which provisions an AWS instance. You want to make use of the IP address returned in the root configuration. You name the instance resource "main". Which of these is the correct way to define the output value using HCL2?

Options

  • AOption A
  • BOption B

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 outputs#HCL2 syntax#Module development#Resource attributes
Full TA-002-P PracticeBrowse All TA-002-P Questions