DOP-C02 Question 334
Select 3Your organization has a distributed microservices-based application running on Amazon ECS with an Application Load Balancer (ALB) in front. Users are reporting intermittent latency issues. You need to identify the root cause of the latency and ensure proper monitoring is in place to prevent such issues in the future. Which combination of actions would best help you achieve this?
- A
Enable AWS X-Ray tracing on the ECS service and ALB to analyze latency across the application.
- B
Configure Amazon CloudWatch Alarms to alert on high latency metrics for the ALB's Target Group.
- C
Use Amazon CloudWatch Logs Insights to query and analyze detailed logs from the ECS containers.
- D
Enable VPC Flow Logs to monitor network traffic between ECS tasks and the ALB.
- E
Set up AWS Trusted Advisor to inspect the ECS service for latency-related issues.
Show answer and explanation
Correct answers: A, B, C
Explanation
To identify and resolve latency issues in a distributed microservices setup, you need tools that provide end-to-end tracing, detailed log analysis, and actionable monitoring. AWS X-Ray can trace requests across services, CloudWatch Alarms can proactively alert on latency metrics, and CloudWatch Logs Insights can help analyze logs for deeper insights into potential problems. VPC Flow Logs and AWS Trusted Advisor, while useful in other contexts, are not directly relevant for diagnosing latency issues in this scenario.
- A. Correct.
Enabling AWS X-Ray tracing on the ECS service and ALB allows you to trace requests end-to-end across the application, providing insights into where latency occurs.
- B. Correct.
Configuring CloudWatch Alarms on ALB latency metrics helps monitor and alert when latency exceeds a threshold, enabling quicker responses to issues.
- C. Correct.
Using CloudWatch Logs Insights enables you to query ECS container logs for specific patterns or errors, which can assist in diagnosing the root cause of latency.
- D. Incorrect.
VPC Flow Logs capture network-level traffic but do not provide detailed latency insights or application-level monitoring, making it less relevant for this scenario.
- E. Incorrect.
AWS Trusted Advisor is a best-practices recommendation tool and does not provide specific monitoring or tracing capabilities to diagnose latency issues.