Courseiva
Monitoring and Logging →mediumMultiple Choice

DOP-C02 Monitoring and Logging Practice Question

A company uses Amazon CloudWatch to monitor its EC2 instances. A DevOps engineer notices that some metrics (e.g., memory utilization) are not available in the CloudWatch console. The engineer wants to collect these metrics. What should the engineer do?

⚠ Common exam trap

DOP-C02 often tests the misconception that enabling detailed monitoring adds memory metrics — detailed monitoring only increases frequency, not metric scope; the CloudWatch Agent is required for OS-level metrics.

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

✓

Install and configure the CloudWatch Agent on the EC2 instances.

Memory utilization and disk space metrics are not available by default in CloudWatch because they are OS-level metrics, not hypervisor-level. The CloudWatch Agent must be installed on EC2 instances to collect these custom metrics and publish them to CloudWatch.

Answer analysis

Option-by-option breakdown

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

  • ✗

    Enable VPC Flow Logs for the instance's subnet.

    Why it's wrong here

    VPC Flow Logs capture metadata about IP traffic flowing through the elastic network interfaces of your instance, including source/destination IPs, ports, protocol, and packet/byte counts. They are useful for security analysis and network troubleshooting, but they do not report guest-OS metrics such as memory utilization or disk space usage. Because flow logs operate at the network layer and never execute inside the instance, they cannot provide the memory utilization data the user is looking for.

  • ✓

    Install and configure the CloudWatch Agent on the EC2 instances.

    Why this is correct

    The Amazon CloudWatch Agent is a software component installed inside the EC2 instance that collects operational metrics such as memory utilization, disk space and inode usage, and per-disk I/O statistics from the guest operating system. It can also collect custom application metrics and logs, and it sends them to CloudWatch via the PutMetricData API. This is the standard solution for monitoring metrics that are not exposed by the hypervisor, like memory usage, and it is the correct approach here.

  • ✗

    Send the metrics to CloudWatch Logs and create a metric filter.

    Why it's wrong here

    Creating a metric filter requires you to first send log events to CloudWatch Logs, and then the filter parses those events to extract numeric values and emit them as CloudWatch metrics. However, this mechanism does not itself collect system performance data; it only transforms log output. To use it for memory monitoring, you would need a separate logging agent to emit memory readings, which is redundant and less reliable than using the CloudWatch Agent. The metric filter approach works exclusively with log data, not with system metrics directly.

  • ✗

    Enable detailed monitoring on the EC2 instances.

    Why it's wrong here

    Enabling detailed monitoring on an EC2 instance changes the delivery frequency of the existing CloudWatch metrics from five minutes to one minute, such as CPU utilization, network throughput, and disk read/write bytes. These metrics are gathered by the hypervisor and do not include memory usage, because the hypervisor cannot see the guest OS's memory allocation. Detailed monitoring therefore only gives you more granular data for the metrics that already exist; it does not introduce new metrics like memory utilization.

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.