Courseiva
Monitoring and Logging →hardMultiple Choice

DOP-C02 Monitoring and Logging Practice Question

An e-commerce application runs on Amazon ECS with Fargate. The operations team notices that the application's latency increases during peak hours. The engineer needs to correlate high CPU usage with increased request latency to identify the root cause. Which approach should be used?

⚠ Common exam trap

DOP-C02 often tests whether candidates confuse monitoring tools that collect metrics (Container Insights) with those that trace requests (X-Ray/ServiceLens) or measure external latency (Synthetics), missing the need for correlation.

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

✓

Enable Container Insights and ServiceLens to correlate metrics and traces

Amazon CloudWatch Container Insights collects, aggregates, and summarizes metrics and logs from containerized applications on ECS/Fargate, including CPU utilization. ServiceLens integrates CloudWatch with AWS X-Ray traces, allowing you to correlate metrics with request traces and latency. Together they provide the end-to-end visibility needed to link high CPU usage with increased request latency.

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 CloudWatch Logs Insights to query container logs

    Why it's wrong here

    CloudWatch Logs Insights is a query engine for searching and analyzing log event payloads, so it can reveal application errors or response codes, but it does not natively ingest or correlate numeric time-series metrics like ECS CPU utilization, nor can it join those logs to X-Ray trace segments. To triangulate a problem you would need to manually export timestamps, metric data, and trace IDs, which misses the point of a unified observability correlation. This makes it a poor choice for directly linking a container's CPU spike to a specific request trace.

  • ✓

    Enable Container Insights and ServiceLens to correlate metrics and traces

    Why this is correct

    For Fargate, Container Insights must be enabled to collect infrastructure telemetry such as CPU and memory utilization at the cluster, service, task, and container levels; AWS then ships these metrics to CloudWatch automatically. ServiceLens builds on that by combining CloudWatch metrics, logs, and X-Ray traces into a single service map and console, allowing you to select a trace and see the corresponding CPU/memory metric trends for that underlying container. This native integration is exactly what is required to prove whether a CPU saturation event is causing an observed latency increase in a traced request.

  • ✗

    Configure CloudWatch Synthetics canaries to measure latency

    Why it's wrong here

    CloudWatch Synthetics canaries are scheduled Node.js or Python scripts that simulate end-user requests against public or internal HTTP endpoints, measuring availability, latency, and screenshot capture; they do not expose container-level CPU or memory metrics at all. Even if a canary runs inside a VPC and hits an internal load balancer, the result is a black-box external measurement of response time, not a host or task-level CPU telemetry feed. Therefore, while it can detect a slowdown, it cannot identify that the cause is the ECS container's CPU saturation, and it cannot associate a trace with that metric.

  • ✗

    Set up a Prometheus server on an EC2 instance to scrape container metrics

    Why it's wrong here

    Standing up a Prometheus server on an EC2 instance means self-managing service discovery, scrape targets, persistent storage, retention policies, and alerting infrastructure, which is far more operational overhead than the AWS-native Container Insights and ServiceLens combination. Additionally, Prometheus metrics are just one part of observability; you would still need a separate tracing solution like AWS X-Ray and build your own correlation mechanism between the Prometheus CPU gauge and trace IDs. AWS offers a managed Prometheus-compatible service, but for this scenario the native CloudWatch and X-Ray integration yields correlated metrics and traces without additional servers.

About these practice questions

This DOP-C02 question is part of Courseiva's 1,298-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam 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.