HashiCorp Terraform Associate 003 Practice Test 2
Question 1 / 40
What type of block is used to construct a collection of nested configuration blocks?
Dynamic
For_each
Nesting
repeated.
Comment (0)
Suggested answer: A
Explanation:
This is the type of block that is used to construct a collection of nested configuration blocks, by using afor_eachargument 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 group resource.