ExamGecko
Question list
Search
Search

Question 164 - Terraform Associate 003 discussion

Report
Export

You want to define multiple data disks as nested blocks inside the resource block for a virtual machine. What Terraform feature would help you define the blocks using the values in a variable?

A.
Local values
Answers
A.
Local values
B.
Count arguments
Answers
B.
Count arguments
C.
Collection functions
Answers
C.
Collection functions
D.
Dynamic blocks
Answers
D.
Dynamic blocks
Suggested answer: D

Explanation:

Dynamic blocks in Terraform allow you to define multiple nested blocks within a resource based on the values of a variable. This feature is particularly useful for scenarios where the number of nested blocks is not fixed and can change based on variable input.

asked 18/09/2024
Valerio Pietrantoni
44 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first