HashiCorp Certified: Terraform Associate — Question 26
What is one disadvantage of using dynamic blocks in Terraform?
Answer options
- A. They cannot be used to loop through a list of values
- B. Dynamic blocks can construct repeatable nested blocks
- C. They make configuration harder to read and understand
- D. Terraform will run more slowly
Correct answer: C
Explanation
The correct answer is C because dynamic blocks can indeed make the configuration more complex and difficult to interpret, especially for users unfamiliar with them. Option A is incorrect as dynamic blocks can loop through lists. Option B is not a disadvantage, as it highlights a feature of dynamic blocks. Option D is misleading; dynamic blocks do not inherently slow down Terraform's execution.