AWS Certified Developer – Associate (DVA-C02) — Question 280

A company wants to test its web application more frequently. The company deploys the application by using a separate AWS CloudFormation stack for each environment. The company deploys the same CloudFormation template to each stack as the application progresses through the development lifecycle.

A developer needs to build in notifications for the quality assurance (QA) team. The developer wants the notifications to occur for new deployments in the final preproduction environment.

Which solution will meet these requirements?

Answer options

Correct answer: A

Explanation

AWS CloudFormation allows users to configure NotificationOptions (SNS topics) directly within the stack settings, which triggers notifications for all stack events. By applying this configuration solely to the pre-production stack, only deployments in that environment will notify the QA team without requiring any modifications to the shared CloudFormation template. Other options either involve unnecessary architectural complexity or rely on unsupported configurations, such as directly mapping CloudFormation as an event source for Lambda.