nerdexam
Amazon

DVA-C02 · Question #276

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…

The correct answer is A. Create an Amazon Simple Notification Service (Amazon SNS) topic. Subscribe the QA team to. Configuring an SNS topic as a notification endpoint on the specific preproduction CloudFormation stack ensures the QA team receives notifications directly from CloudFormation events on that stack without additional custom logic.

Submitted by klara.se· Mar 5, 2026Deployment

Question

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?

Options

  • ACreate an Amazon Simple Notification Service (Amazon SNS) topic. Subscribe the QA team to
  • BCreate an AWS Lambda function that notifies the QA team. Create an Amazon EventBridge rule
  • CCreate an Amazon CloudWatch alarm that monitors the metrics from CloudFormation. Filter the
  • DCreate an AWS Lambda function that notifies the QA team. Configure the event source mapping

How the community answered

(52 responses)
  • A
    77% (40)
  • B
    12% (6)
  • C
    8% (4)
  • D
    4% (2)

Why each option

Configuring an SNS topic as a notification endpoint on the specific preproduction CloudFormation stack ensures the QA team receives notifications directly from CloudFormation events on that stack without additional custom logic.

ACreate an Amazon Simple Notification Service (Amazon SNS) topic. Subscribe the QA team toCorrect

CloudFormation stacks support SNS topic notifications natively; when a stack is created or updated, CloudFormation publishes stack events to the configured SNS topic. By subscribing the QA team to the SNS topic and associating the topic only with the preproduction stack, the team receives targeted notifications for each new deployment to that environment.

BCreate an AWS Lambda function that notifies the QA team. Create an Amazon EventBridge rule

While an EventBridge rule can capture CloudFormation events, it requires identifying the preproduction stack by name or ARN in the rule pattern and adds unnecessary complexity when the native SNS notification feature on the stack itself achieves the same result more directly.

CCreate an Amazon CloudWatch alarm that monitors the metrics from CloudFormation. Filter the

CloudWatch alarms monitor numeric metrics with thresholds; CloudFormation does not emit metrics that can be filtered by environment or stack name in a way that would reliably trigger QA notifications for deployments.

DCreate an AWS Lambda function that notifies the QA team. Configure the event source mapping

Event source mapping connects Lambda to streaming sources like Kinesis or SQS; it is not a mechanism for triggering Lambda from CloudFormation deployment events, which are better captured through SNS or EventBridge.

Concept tested: CloudFormation stack SNS notification configuration

Source: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/cfn-console-add-tags.html

Community Discussion

No community discussion yet for this question.

Full DVA-C02 Practice