nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-004 · Question #177

A resource block is shown in the Exhibit space of this page. How would you reference the "name'' value of the second instance of this resource?

Sign in or unlock TERRAFORM-ASSOCIATE-004 to reveal the answer and full explanation for question #177. The question stem and answer options stay visible for context.

Submitted by neha2k· Apr 18, 2026Work with Terraform Configurations

Question

A resource block is shown in the Exhibit space of this page. How would you reference the "name'' value of the second instance of this resource?

Exhibit

TERRAFORM-ASSOCIATE-004 question #177 exhibit

Options

  • Aaws_instance.web(2),name
  • Belement(aws_instance.web, 2)
  • Caws_instance-web(1)
  • Daws_instance_web(1),name
  • EAws_instance,web,* , name

Unlock TERRAFORM-ASSOCIATE-004 to see the answer

You've previewed enough free TERRAFORM-ASSOCIATE-004 questions. Unlock TERRAFORM-ASSOCIATE-004 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

#Resource Referencing#Resource Instances#HCL Attributes#Terraform Expressions
Full TERRAFORM-ASSOCIATE-004 Practice