DOP-C02 Monitoring and Logging Practice Question
A DevOps engineer manages a production environment with EC2 instances behind an Application Load Balancer (ALB). The application logs show intermittent 5xx errors from the ALB. The engineer needs to identify whether the errors originate from the targets or the ALB itself. Which CloudWatch metric should be examined to differentiate between these two sources?
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
✓
HTTPCode_Target_5XX_Count
HTTPCode_Target_5XX_Count, is the correct metric to identify 5xx errors originating from the targets (EC2 instances). The ALB has separate metrics for target errors (HTTPCode_Target_5XX_Count) and ALB errors (HTTPCode_ELB_5XX_Count). Option A (TargetResponseTime) measures latency, not error codes. Option B (UnhealthyHostCount) counts unhealthy targets based on health checks, not specific HTTP errors. Option D (RequestCount) is total requests, not error codes.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
TargetResponseTime
Why it's wrong here
TargetResponseTime is a latency metric that measures the time elapsed from when the load balancer sends a request to a target until it receives the complete response header/body, typically reported as average or percentile. It does not capture status codes or error counts, so it cannot tell you how many requests returned 5xx errors from the origin. Even if response times spike, this metric alone gives no visibility into error frequency or error categories.
- ✗
UnhealthyHostCount
Why it's wrong here
UnhealthyHostCount reports the number of targets that have failed the configured health check thresholds (e.g., consecutive failed ping requests), indicating hosts that are currently out of rotation. While an unhealthy target may generate failed requests, this metric is a count of hosts based on health-check signals, not a sum of HTTP 5xx responses received by the ALB. A target can return 5xx errors during its lifetime while still being marked healthy, so UnhealthyHostCount is not a valid proxy for HTTP error counts.
- ✓
HTTPCode_Target_5XX_Count
Why this is correct
HTTPCode_Target_5XX_Count is the correct choice because it represents the number of HTTP responses with a 5xx status code that were returned by registered targets (e.g., EC2 instances) to the Application Load Balancer. This metric excludes 5xx errors generated by the ALB itself, such as 502 Bad Gateway or 503 Service Unavailable from the load balancer when no healthy targets exist. By checking this metric with a Sum statistic, the engineer can directly quantify application-level server errors and distinguish them from load-balancer-level failures.
- ✗
RequestCount
Why it's wrong here
RequestCount simply increments for every request processed by the ALB regardless of the HTTP status code returned, so it includes successful 2xx, client errors 4xx, and server errors 5xx alike. It is a volume metric useful for understanding traffic load or calculating an error rate when paired with error-specific metrics, but it cannot by itself identify how many 5xx errors occurred. A sudden increase in RequestCount might correlate with an increase in absolute error count, but without a status-code filter it provides no definitive error information.
Go deeper
Related to this question
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 →
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.