Courseiva

DOP-C02 Incident and Event Response Practice Question

Which TWO metrics should be monitored in Amazon CloudWatch to detect a potential memory leak in an EC2 instance? (Choose two.)

⚠ Common exam trap

Many candidates assume EC2 provides memory metrics by default (like CPUUtilization), but they must be explicitly enabled via the CloudWatch Agent, and they overlook SwapUsage as a complementary indicator of memory pressure from a leak.

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

✓

MemoryUtilization (custom metric published via CloudWatch Agent).

MemoryUtilization is a custom metric that must be published via the CloudWatch Agent because EC2 does not expose memory metrics by default. Monitoring this metric over time can reveal a steady upward trend in memory usage that does not drop after processes complete, which is a classic symptom of a memory leak.

Answer analysis

Option-by-option breakdown

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

  • ✗

    DiskReadOps

    Why it's wrong here

    DiskReadOps tracks the number of read operations completed by a disk volume. A memory leak consumes RAM and, later, possibly swap space, but it does not inherently cause disk reads; disk read activity typically stems from file I/O or application data access. While heavy paging can eventually lead to swap I/O, DiskReadOps specifically measures block device requests, not memory-consumption trends, making it insensitive to a leak.

  • ✓

    MemoryUtilization (custom metric published via CloudWatch Agent).

    Why this is correct

    MemoryUtilization, published as a custom metric by the CloudWatch Agent, is calculated from /proc/meminfo or OS-level memory counters and represents the percentage of actual RAM in use. A memory leak causes this value to climb continuously over time as allocations are never freed, even when the workload is stable. Monitoring this metric reveals the leak as a monotonic upward trend, making it one of the most direct and essential signals for detection.

  • ✗

    NetworkIn

    Why it's wrong here

    NetworkIn measures the number of bytes received on the instance's network interfaces. This metric is driven by incoming traffic, which has no direct relationship with memory allocation or deallocation. A process with a memory leak may continue to use the same network patterns, and the leak itself will not alter NetworkIn unless the leak is triggered by specific network requests—making it an unreliable and indirect indicator.

  • ✓

    SwapUsage (custom metric published via CloudWatch Agent).

    Why this is correct

    SwapUsage, also published through the CloudWatch Agent, shows the amount of swap space currently used on the instance. As a memory leak progressively consumes RAM, the OS begins swapping idle or less-frequently accessed pages to disk, causing SwapUsage to rise. This metric is a strong, though lagging, indicator of memory pressure because it reflects the OS's response to dwindling free RAM, confirming that the leak is affecting the overall memory subsystem.

  • ✗

    CPUUtilization

    Why it's wrong here

    CPUUtilization is a default CloudWatch metric that represents the percentage of allocated compute capacity being used. While a memory leak can cause the OS or garbage collector to compensate over time, the leak itself is a passive failure—the allocated memory simply remains unreferenced, and CPU usage is not necessarily affected until the system starts swapping or becomes OOM-bound. Many other factors, such as active load, thread contention, or inefficient code, can cause high CPU, so this metric lacks specificity for diagnosing a memory leak.

About these practice questions

One of 1,298 original DOP-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 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.