TA-002-P · Question #111
TA-002-P Question #111: Real Exam Question with Answer & Explanation
The correct answer is C: Dynamic Blocks. Dynamic blocks are the most effective way to manage a large, repetitive set of similar configuration elements, such as numerous firewall rules, by generating them programmatically.
Question
ABC Enterprise has recently tied up with multiple small organizations for exchanging database information. Due to this, the firewall rules are increasing and are more than 100 rules. This is leading firewall configuration file that is difficult to manage. What is the way this type of configuration can be managed easily?
Options
- ATerraform Backends
- BTerraform Functions
- CDynamic Blocks
- DTerraform Expression
Explanation
Dynamic blocks are the most effective way to manage a large, repetitive set of similar configuration elements, such as numerous firewall rules, by generating them programmatically.
Common mistakes.
- A. Terraform Backends are used for storing state, which is unrelated to managing and generating repetitive configuration blocks.
- B. Terraform Functions perform operations on data and expressions but do not directly generate arbitrary configuration blocks for resources in a structured way to handle repetitive configurations.
- D. Terraform Expression is a general term for any value or calculation in Terraform, not a specific feature designed to manage or generate repetitive configuration blocks.
Concept tested. Dynamic blocks for repetitive configuration
Reference. https://developer.hashicorp.com/terraform/language/expressions/dynamic-blocks
Topics
Community Discussion
No community discussion yet for this question.