nerdexam
HashiCorp

TA-002-P · Question #422

You need to write some Terraform code that adds 42 firewall rules to a security group as shown in the example. What can you use to avoid writing 42 different nested ingress config blocks by hand?

Sign in or unlock TA-002-P to reveal the answer and full explanation for question #422. The question stem and answer options stay visible for context.

Read, generate, and modify configuration

Question

You need to write some Terraform code that adds 42 firewall rules to a security group as shown in the example. What can you use to avoid writing 42 different nested ingress config blocks by hand?

Options

  • AA count loop
  • BA for block
  • CA for each block
  • DA dynamic block

Unlock TA-002-P to see the answer

You've previewed enough free TA-002-P questions. Unlock TA-002-P 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

#Dynamic blocks#Terraform configuration#Nested blocks#Iteration
Full TA-002-P Practice