DOP-C02 · Question #126
DOP-C02 Question #126: Real Exam Question with Answer & Explanation
The correct answer is D: Leverage CloudFormation nested stacks and stack sets for deployments. Use Amazon SNS to notify. Explanation Option D is correct because CloudFormation nested stacks allow you to break complex infrastructure into modular, reusable templates that are deployed in a controlled, hierarchical order, while stack sets enable consistent multi-Region deployments from a single operati
Question
A company uses a series of individual Amazon CloudFormation templates to deploy its multi- Region applications. These templates must be deployed in a specific order. The company is making more changes to the templates than previously expected and wants to deploy new templates more efficiently. Additionally, the data engineering team must be notified of all changes to the templates. What should the company do to accomplish these goals?
Options
- ACreate an AWS Lambda function to deploy the CloudFormation templates in the required order. Use
- BHost the CloudFormation templates in Amazon S3. Use Amazon S3 events to directly trigger
- CImplement CloudFormation StackSets and use drift detection to trigger update alerts to the data
- DLeverage CloudFormation nested stacks and stack sets for deployments. Use Amazon SNS to notify
Explanation
Explanation
Option D is correct because CloudFormation nested stacks allow you to break complex infrastructure into modular, reusable templates that are deployed in a controlled, hierarchical order, while stack sets enable consistent multi-Region deployments from a single operation - directly addressing both the ordering and efficiency requirements. Amazon SNS is the purpose-built AWS service for sending notifications to teams, making it the ideal choice for alerting the data engineering team of template changes.
Why the distractors are wrong:
- Option A (Lambda to deploy templates) introduces unnecessary custom code complexity when native CloudFormation features already handle ordered deployments more efficiently and reliably.
- Option B (S3 events to trigger deployments) is an anti-pattern for this use case - S3 events aren't designed to orchestrate ordered, dependent CloudFormation deployments across multiple Regions.
- Option C (Drift detection for alerts) is incorrect because drift detection identifies unauthorized manual changes to existing infrastructure, not template update notifications - it's the wrong tool for change alerting.
Memory Tip 🧠
Think "Nest, Set, Notify" - Nested stacks for ordered dependencies, Stack Sets for multi-Region efficiency, and SNS for notifications. Whenever you see multi-Region CloudFormation + team notifications, SNS is almost always the notification answer on the AWS exam.
Topics
Community Discussion
No community discussion yet for this question.