nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-003 · Question #11

How would you reference the volume IDs associated with the ebs_block_device blocks in this configuration?

The correct answer is D. aws_instance.example-ebs_block_device.*.volume_id. This is the correct way to reference the volume IDs associated with the ebs_block_device blocks in this configuration, using the splat expression syntax. The other options are either invalid or

Tools for Test Analysts

Question

How would you reference the volume IDs associated with the ebs_block_device blocks in this configuration?

Exhibit

TERRAFORM-ASSOCIATE-003 question #11 exhibit

Options

  • Aaws_instance.example.ebs_block_device[sda2,sda3).volume_id
  • Baws_lnstance.example.ebs_block_device.[*].volume_id
  • Caws_lnstance.example.ebs_block_device.volume_ids
  • Daws_instance.example-ebs_block_device.*.volume_id

How the community answered

(64 responses)
  • A
    5% (3)
  • B
    3% (2)
  • C
    13% (8)
  • D
    80% (51)

Explanation

This is the correct way to reference the volume IDs associated with the ebs_block_device blocks in this configuration, using the splat expression syntax. The other options are either invalid or

Topics

#Terraform#splat expression#AWS instance#ebs_block_device

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-003 Practice