nerdexam
HashiCorp

TERRAFORM-ASSOCIATE-003 · Question #59

What type of block is used to construct a collection of nested configuration blocks?

The correct answer is A. Dynamic. This is the type of block that is used to construct a collection of nested configuration blocks, by using a for_each argument to iterate over a collection value and generate a nested block for each element. For example, you can use a dynamic block to create multiple ingress…

Read, Generate, and Modify Configuration

Question

What type of block is used to construct a collection of nested configuration blocks?

Options

  • ADynamic
  • BFor_each
  • CNesting
  • Drepeated.

How the community answered

(41 responses)
  • A
    83% (34)
  • B
    5% (2)
  • C
    2% (1)
  • D
    10% (4)

Explanation

This is the type of block that is used to construct a collection of nested configuration blocks, by using a for_each argument to iterate over a collection value and generate a nested block for each element. For example, you can use a dynamic block to create multiple ingress rules for a security

Topics

#dynamic blocks#HCL syntax#nested blocks#configuration language

Community Discussion

No community discussion yet for this question.

Full TERRAFORM-ASSOCIATE-003 Practice