What feature could ...
 
Notifications
Clear all

What feature could you use to iterate over a list of required tcp ports to add to the new security group?

1 Posts
1 Users
0 Likes
120 Views
(@salterslloyd)
Posts: 746
Noble Member
Topic starter
 

You have been given requirements to create a security group for a new application. Since your organization standardizes on Terraform, you want to add this new security group with the fewest number of lines of code.

What feature could you use to iterate over a list of required tcp ports to add to the new security group?

  • A . dynamic backend
    B. splat expression
    C. terraform import
    D. dynamic block

Show Answer Hide Answer

Suggested Answer: D

Explanation:

A dynamic block acts much like a for expression, but produces nested blocks instead of a complex typed value. It iterates over a given complex value and generates a nested block for each element of that complex value.

https://www.terraform.io/docs/configuration/expressions.html#dynamic-blocks
 
Posted : 11/02/2023 2:44 am

Latest TA-002-P V1 Dumps Valid Version

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Share: