DOP-C02 Question 287
Select 4Your team has been notified of a sudden increase in latency for an application hosted on Amazon ECS with an Application Load Balancer (ALB). Logs indicate an elevated number of 5xx errors, and the root cause is suspected to be related to a sudden spike in traffic. As the DevOps engineer, what actions should you take to mitigate this issue and minimize downtime?
- A
Enable Auto Scaling for the ECS service to handle the increased traffic
- B
Inspect the ALB access logs for details of the 5xx errors and identify any patterns
- C
Manually increase the number of desired tasks in the ECS service to handle the increased load
- D
Deploy the application to AWS Lambda instead of ECS to handle the traffic spike
- E
Configure ALB health checks to ensure tasks are properly routed only if they are healthy
Show answer and explanation
Correct answers: A, B, C, E
Explanation
When responding to incidents with increased traffic and elevated 5xx errors, enabling Auto Scaling and manually scaling ECS tasks can address immediate capacity needs. Inspecting ALB access logs is crucial for diagnosing the issue, and configuring health checks ensures traffic is routed appropriately. Switching to AWS Lambda is not practical in this scenario as it involves rearchitecting the application, which is not suitable for immediate incident response.
- A. Correct.
Correct. Enabling Auto Scaling for the ECS service ensures the system can dynamically adjust to increased traffic and maintain availability.
- B. Correct.
Correct. Analyzing ALB access logs helps identify the root cause of the 5xx errors and patterns in the traffic spike, which is critical for incident response.
- C. Correct.
Correct. Manually scaling the ECS service can provide an immediate, temporary solution to handle increased workload until Auto Scaling takes effect.
- D. Incorrect.
Incorrect. While AWS Lambda can handle high traffic, this option is not relevant in the context of mitigating the current ECS and ALB issue. It would require significant architectural changes.
- E. Correct.
Correct. Configuring health checks ensures that the ALB routes traffic only to healthy ECS tasks, preventing further 5xx errors caused by unhealthy tasks.