Courseiva
Monitoring and LoggingeasyMultiple ChoiceObjective-mapped

DOP-C02 Monitoring and Logging Practice Question

A DevOps team wants to monitor the disk space utilization on their EC2 instances. What is the simplest way to achieve this?

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 the CloudWatch agent on the EC2 instances and configure the disk metric.

The CloudWatch agent can collect disk space metrics from EC2 instances, which is not available with default CloudWatch metrics. Option A is incorrect because AWS Systems Manager Inventory is used for software inventory and configuration, not real-time disk space monitoring. Option C is incorrect because EC2 detailed monitoring only provides more frequent metrics for standard EC2 metrics (CPU, network, etc.), not disk metrics. Option D is incorrect because EC2 basic monitoring also does not include disk metrics.

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 AWS Systems Manager Inventory to collect disk space data.

    Why it's wrong here

    AWS Systems Manager Inventory is a configuration auditing tool that captures snapshots of installed software, OS configuration, and file details on a schedule, storing them in Amazon S3 or a resource data sync. It does not publish continuous metrics to CloudWatch, nor does it calculate disk space utilization in real time, so you cannot use it to trigger CloudWatch alarms based on disk thresholds. It is useful for compliance and patch management, but it is not designed as a monitoring solution for evolving metrics like disk space.

  • Install the CloudWatch agent on the EC2 instances and configure the disk metric.

    Why this is correct

    The CloudWatch agent runs inside the guest OS and reads disk space metrics such as disk_used_percent, disk_free, and disk_used from the filesystem, then publishes them as custom metrics under the System/Linux namespace (or appropriate custom namespace) to CloudWatch. You configure the agent via the amazon-cloudwatch-agent-config.json file or AWS Systems Manager Parameter Store, and once installed it can deliver both default host metrics and in-guest disk metrics. This is the only option that actually exposes the guest-OS-level disk space data to CloudWatch, enabling you to create alarms and dashboards on values like available disk capacity.

  • Enable EC2 detailed monitoring in CloudWatch.

    Why it's wrong here

    EC2 detailed monitoring only changes the frequency of the hypervisor-level metrics that EC2 already generates, lowering the collection interval from 5 minutes to 1 minute at an additional per-instance cost. However, the metric set remains identical to basic monitoring—CPU utilization, network traffic, and disk I/O activity—none of which include the filesystem's free or used space. Disk space usage is a guest-OS concept, so unless an in-guest agent like the CloudWatch agent sends that data to CloudWatch, detailed monitoring cannot provide it.

  • Use EC2 basic monitoring in CloudWatch.

    Why it's wrong here

    EC2 basic monitoring is the default, providing a fixed set of host-level metrics at 5-minute intervals, including CPU utilization, network throughput, and disk read/write counts. These metrics are emitted from the hypervisor and do not include any logical disk space utilization, which exists only inside the operating system's filesystem. Because basic monitoring never looks into the guest OS, it cannot detect a full disk, leaving the team without the capacity monitoring they need.

About these practice questions

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