HashiCorp Certified: Terraform Associate — Question 62

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

Answer options

Correct answer: D

Explanation

The 'dynamic' block is specifically designed for creating nested configuration blocks, allowing for more flexible and complex configurations. The 'for_each' block is used for iterating over collections, while 'repeated' and 'nesting' are not standard block types in this context, making them incorrect choices.