DOP-C02 Question 216
Select 4You are managing a high-traffic e-commerce application hosted on AWS. The application consists of EC2 instances behind an Application Load Balancer (ALB), and a backend database hosted on Amazon RDS. The operations team has reported intermittent latency spikes and occasional 5xx errors from the application. Which combination of monitoring strategies should you implement to identify and troubleshoot the root cause of these issues?
- A
Enable ALB access logs and analyze them for patterns related to 5xx errors.
- B
Set up CloudWatch Alarms to monitor CPU utilization on the EC2 instances and trigger notifications when thresholds are breached.
- C
Deploy AWS X-Ray to trace requests as they flow through the application to identify performance bottlenecks.
- D
Use RDS Performance Insights to analyze slow-running queries and database load.
- E
Enable S3 Server Access Logging to monitor the bucket storing application assets.
Show answer and explanation
Correct answers: A, B, C, D
Explanation
To effectively monitor and troubleshoot the reported latency spikes and 5xx errors in the application, you need a combination of tools and strategies. ALB access logs help analyze traffic patterns and error responses, CloudWatch Alarms on EC2 CPU utilization detect resource issues, AWS X-Ray traces requests to identify bottlenecks, and RDS Performance Insights helps optimize database performance. S3 Server Access Logging is not applicable as it does not address the application's reported issues.
- A. Correct.
Analyzing ALB access logs can provide valuable insights into 5xx errors, client request patterns, and traffic flows, helping to identify the root cause of latency and errors.
- B. Correct.
Monitoring CPU utilization on EC2 instances can help detect resource exhaustion or under-provisioning that may be contributing to latency or errors.
- C. Correct.
AWS X-Ray provides end-to-end tracing, enabling you to pinpoint performance bottlenecks and latency issues across the application stack.
- D. Correct.
RDS Performance Insights is a powerful tool for identifying slow-running queries and understanding database load, which could be contributing to application latency.
- E. Incorrect.
S3 Server Access Logging is not relevant in this scenario as it focuses on logging access patterns to S3 buckets, which is unrelated to the reported latency and 5xx errors in the application.