DOP-C02 Configuration Management and IaC Practice Question
A company manages a large AWS CloudFormation template that defines a VPC, subnets, an Application Load Balancer, and an Auto Scaling group. The template has grown to over 2,000 lines and is difficult to maintain. The DevOps team wants to break the template into smaller, reusable components that can be versioned and shared across multiple teams. The components must be able to be included in other templates and must support parameters to customize values. Which CloudFormation feature should the team use?
⚠ Common exam trap
Candidates often confuse nested stacks with modules, because both enable reuse but nested stacks require deploying separate stacks and are not as easily shared across teams.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
CloudFormation modules
CloudFormation modules allow teams to package resource configurations into reusable, versioned components that can be included in multiple templates. They support parameters, enabling customization, and are ideal for breaking down monolithic templates. Unlike nested stacks, modules are lightweight and designed for sharing, making them the best fit for this scenario.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
CloudFormation nested stacks
Why it's wrong here
Nested stacks allow you to reference other stacks as resources within a parent stack, but they require deploying separate stacks and are not designed for simple reuse across templates. They also do not provide a straightforward way to pass parameters and retrieve outputs like modular components. This approach adds operational overhead and does not meet the requirement for lightweight, reusable components.
- ✓
CloudFormation modules
Why this is correct
CloudFormation modules are reusable building blocks that encapsulate resource definitions and can be included in templates via the AWS::CloudFormation::Module resource type. They support parameters and can be versioned and shared across teams, exactly matching the requirement. Modules simplify template maintenance by abstracting complexity and promoting consistency.
- ✗
CloudFormation change sets
Why it's wrong here
Change sets provide a preview of how changes will impact running resources before execution, but they do not help with template modularity or reuse. They are used for safe updates, not for breaking down large templates. This feature does not address the need to create smaller, reusable components that can be shared across teams.
- ✗
CloudFormation stack policies
Why it's wrong here
Stack policies are JSON documents that prevent accidental updates to specific resources during stack updates. They are a safety mechanism, not a modularization tool. They cannot split a template into reusable parts or support parameterization. This feature is unrelated to the requirement of creating maintainable, shareable template components.
Visual reference
Go deeper
Related to this question
About these practice questions
This DOP-C02 question is part of Courseiva's 1,298-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
JA
Written and reviewed by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
Last reviewed September 2026 · checked against the official Amazon Web Services exam blueprint
This DOP-C02 practice question is part of Courseiva's free Amazon Web Services certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the DOP-C02 exam.