Courseiva
Monitoring and Logging →easyMultiple Choice

DOP-C02 Monitoring and Logging Practice Question

A DevOps team is deploying a new web application on AWS Elastic Beanstalk. They want to monitor the application's health and receive notifications when the environment's health status changes to 'Degraded' or 'Severe'. What is the simplest way to achieve this?

⚠ Common exam trap

DOP-C02 often tests the difference between CloudWatch (metrics and alarms) and CloudTrail (API activity logging), so candidates may incorrectly choose CloudTrail for monitoring health status changes.

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

✓

Create a CloudWatch alarm on the 'EnvironmentHealth' metric published by the Elastic Beanstalk environment.

Elastic Beanstalk automatically publishes environment health metrics to Amazon CloudWatch, including the 'EnvironmentHealth' metric which reports values like 0 (Ok), 1 (Info), 5 (Unknown), 10 (NoData), 15 (Warning), 20 (Degraded), and 25 (Severe). Creating a CloudWatch alarm on this metric with a threshold of >= 20 (or specifically for Degraded/Severe) and configuring an SNS notification is the simplest, most direct, and fully managed solution. This requires no custom code, no polling infrastructure, and leverages native AWS integration.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Use the Elastic Beanstalk management console to manually check the health status twice a day.

    Why it's wrong here

    Manual checks require a human to log in to the Elastic Beanstalk console, navigate to the environment's Health page, and visually assess the status. This approach is not automated, so it cannot trigger immediate notifications when a deployment fails or the application becomes unhealthy. Scheduled manual checks twice a day also miss transient failures that resolve before the next login, and the process is error-prone and does not scale across multiple environments.

  • ✓

    Create a CloudWatch alarm on the 'EnvironmentHealth' metric published by the Elastic Beanstalk environment.

    Why this is correct

    Elastic Beanstalk with enhanced health reporting publishes the 'EnvironmentHealth' metric to CloudWatch, and creating an alarm on this metric allows you to react automatically when the environment transitions to states such as severe or degraded. The alarm can publish to an SNS topic to email or page the team, enabling real-time incident response without any custom code. This approach is the native, supported integration between Elastic Beanstalk health and CloudWatch observability.

  • ✗

    Write a custom script that polls the Elastic Beanstalk DescribeEnvironmentHealth API and sends an email using Amazon SES.

    Why it's wrong here

    A custom script polling the `DescribeEnvironmentHealth` API introduces unnecessary latency and operational overhead, whereas Elastic Beanstalk natively emits health state transitions as Amazon CloudWatch Events that can directly trigger an SNS notification. This approach is tempting because it offers fine-grained control over polling intervals and custom logic, and would be correct if the team needed to aggregate health data across multiple environments or apply custom transformation before alerting.

  • ✗

    Configure an AWS CloudTrail trail to monitor Elastic Beanstalk API calls and create a CloudWatch alarm on the trail.

    Why it's wrong here

    CloudTrail records API calls made by or on behalf of the Elastic Beanstalk environment, such as CreateEnvironment, UpdateEnvironment, or TerminateEnvironment, for auditing and security investigation. It does not ingest the environment's health state, because health metrics like EnvironmentHealth are not API events and therefore never appear as CloudTrail events. Even if you create a CloudWatch alarm based on a filter on CloudTrail logs, it would only capture administrative actions, not whether the application is responding or a deployment has degraded the service.

About these practice questions

Courseiva writes every DOP-C02 question from scratch — 1,298 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written and reviewed by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

Last reviewed September 2026 · checked against the official Amazon Web Services exam blueprint

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