Exam Terraform-Associate-004 Topic 5 Question 315 Discussion
Actual exam question for HashiCorp's Terraform-Associate-004 exam
Question #: 315
Topic #: 5
Question #: 315
Topic #: 5
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?
Suggested Answer: D Vote an answer
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.
by Sandy at Jul 30, 2026, 01:47 PM
0
0
0
10
Comments
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Report Comment
Commenting
You can sign-up / login (it's free).