nerdexam
HashiCorpHashiCorp

TA-002-P · Question #191

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

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

Understand Terraform basics

Question

Refer to the following terraform variable definition: variable "track_tag" { type = list default = ["data_ec2","integration_ec2","digital_ec2"]} track_tag = { Name = element(var.track_tag,count.index)} If count.index is set to 2, which of the following values will be assigned to the name attribute of track_tag variable?

Options

  • Aintegration_ec2
  • Bdigital_ec2
  • Ctrack_tag
  • Ddata_ec2

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 variables#List data type#element() function#count.index
Full TA-002-P PracticeBrowse All TA-002-P Questions