DVA-C02 Troubleshooting and Optimization Practice Question
An application running on Amazon ECS Fargate is experiencing intermittent high latency and timeout errors. The application makes API calls to an external third-party service. The ECS service is configured with a target group using HTTP health checks. The ALB health check logs show occasional 503 responses. What is the MOST likely cause?
⚠ Common exam trap
DVA-C02 often tests the difference between infrastructure misconfigurations and application-level issues. Candidates may jump to security groups or CPU credits, but the intermittent nature and 503s on health checks point to application timeouts. Also, Fargate does not have CPU credits, which is a common distractor.
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
✓
The application is not properly handling timeouts to the third-party service, causing the health check endpoint to hang.
The application's health check endpoint is likely hanging because the application does not handle timeouts when calling the third-party service. This causes the ALB health check to time out and return 503, leading to tasks being marked unhealthy and potentially restarted, which increases latency and timeouts.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
The security group for the ECS tasks is blocking inbound traffic from the ALB.
Why it's wrong here
If the security group for the ECS tasks were blocking inbound traffic from the Application Load Balancer (ALB), the health checks would consistently fail for all tasks, not intermittently. This would manifest as all tasks being marked unhealthy or never becoming healthy, rather than sporadic 503 errors. Intermittent failures suggest an issue within the application's processing rather than a fundamental network blockage that would prevent any connection.
- ✗
The ECS tasks are running out of CPU credits, causing slow response times.
Why it's wrong here
Amazon ECS Fargate tasks utilize a CPU share model, where CPU is allocated as a fixed amount, rather than a CPU credit system found in burstable EC2 instances like T-types. Therefore, tasks cannot 'run out of CPU credits' in the same way. While insufficient CPU allocation can lead to general slow performance and increased latency, it typically results in application timeouts or slowness across all requests, not specifically intermittent 503 health check failures caused by a hanging endpoint.
- ✗
The ECS service is configured with a task placement strategy that is causing tasks to be stopped and restarted frequently.
Why it's wrong here
Frequent task restarts due to a misconfigured ECS service placement strategy would primarily cause temporary unavailability as old tasks are stopped and new ones launched. While this might lead to brief periods of service disruption, it would not directly cause *existing* healthy tasks to intermittently fail ALB health checks with 503 errors. The issue described points to a problem within the running application's responsiveness, not its lifecycle management or task replacement.
- ✓
The application is not properly handling timeouts to the third-party service, causing the health check endpoint to hang.
Why this is correct
When an application's health check endpoint makes a synchronous call to a third-party service without proper timeout handling, a slow or unresponsive external dependency can cause the health check to hang indefinitely. This prolonged unresponsiveness will eventually exceed the Application Load Balancer's configured health check timeout threshold. Consequently, the ALB will mark the task as unhealthy and return a 503 error for requests routed to it, leading to intermittent service disruptions as tasks are cycled.
Go deeper
Related to this question
About these practice questions
This DVA-C02 question is part of Courseiva's 1,135-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 →
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 DVA-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 DVA-C02 exam.