nerdexam
HashiCorpHashiCorp

TA-002-P · Question #57

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

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

Read, generate, and modify configuration

Question

How would you reference the "name" value of the second instance of this fictitious resource?

Options

  • Aelement(aws_instance.web, 2)
  • Baws_instance.web[1].name
  • Caws_instance.web[1]
  • Daws_instance.web[2].name
  • Eaws_instance.web.*.name

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 functions#element function#Resource referencing#List access
Full TA-002-P PracticeBrowse All TA-002-P Questions