Courseiva

DVA-C02 Troubleshooting and Optimization Practice Question

A developer is using AWS CodePipeline to automate a multi-stage pipeline. The pipeline includes a manual approval step before deploying to production. The developer wants to receive an email notification when the pipeline reaches the approval step. Which service should the developer use?

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

✓

Use Amazon CloudWatch Events to detect the pipeline state change and trigger an SNS notification

CloudWatch Events (now part of Amazon EventBridge) can detect pipeline state changes such as a manual approval step entering a 'waiting' state. You can create a rule that matches this event and targets an Amazon SNS topic to send an email notification. Option A is incorrect because CodePipeline does not have an 'Email' action built-in. Option B is incorrect because CloudWatch Logs is used for monitoring log data, not for triggering notifications directly. Option C is incorrect because while Amazon SES can send emails, it is not directly integrated with CodePipeline; the recommended approach is to use CloudWatch Events with SNS for notifications.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Configure CodePipeline to send an email using the 'Email' action

    Why it's wrong here

    CodePipeline's architecture relies on predefined action types within stages, such as Source, Build, Deploy, Test, and Approval. There is no native "Email" action type directly available for configuration within a CodePipeline stage. To send emails, a developer would need to integrate a custom solution, typically involving an AWS Lambda function invoked by a CloudWatch Event rule that monitors pipeline state changes, or by configuring an SNS topic as a target for a CloudWatch Event rule.

  • ✗

    Use Amazon CloudWatch Logs to monitor the pipeline logs and trigger an alarm

    Why it's wrong here

    Amazon CloudWatch Logs is primarily designed for collecting, monitoring, and storing log files generated by various AWS services and applications. While it's possible to create metric filters and alarms based on specific log patterns, it is not the intended or most efficient service for directly monitoring and reacting to real-time state changes of an AWS CodePipeline. CloudWatch Events (EventBridge) is purpose-built for detecting and responding to service events and state transitions.

  • ✗

    Use Amazon Simple Email Service (SES) to send an email from the pipeline

    Why it's wrong here

    Amazon SES is a service for sending bulk or transactional emails, but it has no native integration with CodePipeline to trigger an email automatically when a pipeline reaches an approval step. The developer would need to write custom logic (e.g., a Lambda function invoked by a CloudWatch event) to call SES, which is not a built-in pipeline action. This option is tempting because SES is the obvious AWS service for sending emails, and it would be correct if the developer were building a custom notification system outside of CodePipeline’s native approval workflow.

  • ✓

    Use Amazon CloudWatch Events to detect the pipeline state change and trigger an SNS notification

    Why this is correct

    Amazon CloudWatch Events (now EventBridge) provides a robust mechanism for monitoring and reacting to state changes across AWS services, including CodePipeline. CodePipeline emits events for various execution states, such as pipeline execution, stage execution, and action execution. A CloudWatch Event rule can be configured to specifically detect a CodePipeline stage entering a `WAITING_FOR_APPROVAL` state, and then trigger an Amazon SNS topic to send immediate notifications to subscribed users or systems. This approach leverages the native eventing capabilities of AWS services for efficient, real-time communication.

About these practice questions

One of 1,135 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.