ExamGecko
Question list
Search
Search

Question 105 - Terraform Associate 003 discussion

Report
Export

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

A.
aws_instance.example.ebs_block_device[sda2,sda3).volume_id
Answers
A.
aws_instance.example.ebs_block_device[sda2,sda3).volume_id
B.
aws_lnstance.example.ebs_block_device.[*].volume_id
Answers
B.
aws_lnstance.example.ebs_block_device.[*].volume_id
C.
aws_lnstance.example.ebs_block_device.volume_ids
Answers
C.
aws_lnstance.example.ebs_block_device.volume_ids
D.
aws_instance.example-ebs_block_device.*.volume_id
Answers
D.
aws_instance.example-ebs_block_device.*.volume_id
Suggested answer: D

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 incomplete.

asked 18/09/2024
Renata Maria DA SILVA
46 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first