SAA-C03 Question 217
Single answerYou are designing a microservices-based application running on Amazon ECS. The application is experiencing intermittent latency issues when making API calls between services. You need to identify the root cause of the latency and visualize the flow of requests across the application. Which solution should you implement?
- A
Enable AWS X-Ray tracing in the ECS task definitions and use the X-Ray console to analyze traces.
- B
Use Amazon CloudWatch Logs Insights to analyze application logs for latency issues.
- C
Enable VPC Flow Logs to monitor network traffic patterns between ECS services.
- D
Configure an Application Load Balancer (ALB) to log request and response times using ALB access logs.
Show answer and explanation
Correct answer: A
Explanation
To diagnose latency in a microservices-based application, AWS X-Ray is the ideal tool as it provides end-to-end request tracing and allows you to visualize the flow of requests across services. This is particularly important for identifying bottlenecks or performance issues in distributed applications, which cannot be achieved using logs or network-level monitoring alone.
- A. Correct.
This is the correct answer. AWS X-Ray is specifically designed for tracing requests across distributed applications, such as microservices, and identifying latency or bottlenecks in the flow of requests.
- B. Incorrect.
While CloudWatch Logs Insights can help analyze logs, it does not provide end-to-end request tracing or detailed insights into the flow of requests across services, which is crucial for identifying latency issues.
- C. Incorrect.
VPC Flow Logs capture network traffic metadata, but they are not suitable for tracing application requests or diagnosing latency at the application layer.
- D. Incorrect.
ALB access logs provide information about incoming requests and responses at the load balancer level but do not provide detailed traces across multiple microservices.