DOP-C02 Question 290
Select 3Your team manages a distributed application running on AWS with Auto Scaling Groups, an ALB (Application Load Balancer), and RDS for database operations. Recently, you noticed intermittent HTTP 5xx errors during peak traffic periods. You need to quickly identify the root cause and implement a solution while ensuring minimal disruption to the application. Which actions should you take to diagnose and resolve the issue?
- A
Analyze the ALB access logs in Amazon S3 to identify patterns or specific backend instance failures.
- B
Use AWS CloudTrail to trace any recent configuration changes to the Auto Scaling Group or ALB.
- C
Enable Enhanced Monitoring on the RDS instance to capture database-level metrics during the incidents.
- D
Increase the Auto Scaling Group's maximum instance count to handle more traffic during peak periods.
- E
Inspect CloudWatch metrics for the ALB's Target Group to check the health status and latency of backend instances.
Show answer and explanation
Correct answers: A, C, E
Explanation
To diagnose and resolve the issue effectively, you need to analyze the logs and metrics that can pinpoint the root cause of the 5xx errors. ALB access logs and CloudWatch metrics provide insights into backend instance health and performance, while Enhanced Monitoring for RDS can reveal database-level issues. Increasing capacity without understanding the root cause is not a sustainable approach to resolving the issue.
- A. Correct.
Analyzing the ALB access logs is a valid step to identify patterns or backend instance failures causing the 5xx errors.
- B. Incorrect.
While AWS CloudTrail can provide information on configuration changes, it does not directly help identify runtime issues causing HTTP 5xx errors.
- C. Correct.
Enabling Enhanced Monitoring on the RDS instance helps capture detailed database metrics, which can reveal bottlenecks or failures during peak traffic.
- D. Incorrect.
Simply increasing the Auto Scaling Group's capacity might temporarily mitigate the issue but does not address the root cause of the HTTP 5xx errors.
- E. Correct.
Inspecting CloudWatch metrics for the ALB Target Group can help identify whether backend instances are unhealthy or experiencing increased latency, contributing to the 5xx errors.