BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

HashiCorp Exam VA-002-P Topic 3 Question 59 Discussion

Actual exam question for HashiCorp's VA-002-P exam
Question #: 59
Topic #: 3
[All VA-002-P Questions]

What Terraform feature is shown in the example below?

1. resource "aws_security_group" "example" {

2. name = "sg-app-web-01"

3. dynamic "ingress" {

4. for_each = var.service_ports

5. content {

6. from_port = ingress.value

7. to_port = ingress.value

8. protocol = "tcp"

9. }

10. }

11. }

Show Suggested Answer Hide Answer
Suggested Answer: B

You can dynamically construct repeatable nested blocks like ingress using a special dynamic block type, which is supported inside resource, data, provider, and provisioner blocks


Contribute your Thoughts:

Currently there are no comments in this discussion, be the first to comment!


Save Cancel