Courseiva
Development with AWS ServicesmediumMultiple ChoiceObjective-mapped

DVA-C02 Development with AWS Services Practice Question

A developer is using AWS CodePipeline to automate deployments. The pipeline has a manual approval action that requires a developer to approve before deploying to production. The developer wants to receive an email notification when an approval action is pending. Which AWS service should be used to send the notification?

⚠ Common exam trap

Many exam-takers confuse Amazon SES with SNS because both can send emails, but SES is a dedicated email-sending service requiring manual integration, whereas SNS is the native event notification service that directly integrates with CodePipeline's approval actions.

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

Amazon Simple Notification Service (SNS)

Amazon Simple Notification Service (SNS) is the correct choice because it is a pub/sub messaging service designed to send notifications to subscribers via email, SMS, or other protocols. CodePipeline can publish events to an SNS topic when an approval action is pending, and the developer can subscribe an email endpoint to that topic to receive the notification directly.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Amazon Simple Email Service (SES)

    Why it's wrong here

    Amazon Simple Email Service (SES) is designed as a robust, scalable email sending service primarily used by applications to send transactional, marketing, or bulk emails directly. While it can send emails, CodePipeline does not offer a direct, native integration with SES for event-driven notifications without requiring an intermediary service like AWS Lambda to process pipeline events and invoke SES. This makes SES less suitable for straightforward CodePipeline state change notifications compared to services with direct integration.

  • AWS Lambda

    Why it's wrong here

    AWS Lambda, a serverless compute service, is not the direct solution for sending email notifications for CodePipeline approval actions. It requires custom code and integration with another service like Amazon SNS or SES to achieve this, introducing unnecessary complexity compared to a native integration. Lambda is tempting because it excels at custom automation and event-driven processing, such as performing complex data transformations or invoking external APIs in response to pipeline events, where standard notification services lack the required logic.

  • Amazon Simple Notification Service (SNS)

    Why this is correct

    Amazon Simple Notification Service (SNS) is a highly scalable, fully managed pub/sub messaging service that enables you to send messages to a large number of subscribers or endpoints. CodePipeline natively integrates with SNS, allowing developers to configure notifications for pipeline state changes, approval actions, or execution failures to an SNS topic. This topic can then reliably deliver these alerts via various protocols, including email, SMS, or to other AWS services, making it the direct and most efficient solution for email notifications.

  • Amazon CloudWatch Logs

    Why it's wrong here

    Amazon CloudWatch Logs is a monitoring service primarily focused on collecting, storing, and analyzing log files from various AWS services and custom applications. While CodePipeline generates logs that can be stored in CloudWatch Logs, this service itself does not provide a direct mechanism for sending real-time email notifications based on specific pipeline events or approval actions. To achieve notifications from log data, one would typically need to configure CloudWatch Alarms based on log patterns, which then trigger an SNS topic, adding unnecessary complexity for this specific use case.

About these practice questions

One of 724 original DVA-C02 practice questions on Courseiva, each with a full explanation and wrong-answer analysis — not exam dumps or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This DVA-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 DVA-C02 exam.