SAA-C03 Question 215
Single answerA company is running a microservices-based application on Amazon ECS using AWS Fargate. The application has multiple services interacting with each other, and the development team is facing difficulties identifying bottlenecks and debugging issues in the application workflow. Which solution will provide end-to-end visibility into the requests as they flow through the application?
- A
Enable AWS X-Ray tracing for the ECS tasks and instrument the application code to send trace data to AWS X-Ray.
- B
Use Amazon CloudWatch Logs to collect and analyze application logs for each ECS service.
- C
Enable VPC Flow Logs to monitor network traffic between microservices.
- D
Use AWS CloudTrail to track API calls between the ECS services for request tracing.
Show answer and explanation
Correct answer: A
Explanation
AWS X-Ray is the correct choice because it is specifically designed to provide distributed tracing for applications. X-Ray enables developers to trace requests as they travel through the application and build a detailed service map to debug issues, identify bottlenecks, and optimize performance. Other options like CloudWatch Logs, VPC Flow Logs, and CloudTrail are useful for logging and monitoring but do not offer the same level of visibility into request flows as X-Ray does.
- A. Correct.
Correct: AWS X-Ray is specifically designed for distributed tracing and provides end-to-end visibility into requests as they flow through a microservices-based application. By enabling X-Ray tracing in ECS tasks and instrumenting the application code, the development team can visualize service maps and identify bottlenecks or errors.
- B. Incorrect.
Incorrect: While Amazon CloudWatch Logs can help collect logs for debugging purposes, it does not provide end-to-end tracing or a service map of the application workflow. It is not designed for distributed tracing.
- C. Incorrect.
Incorrect: VPC Flow Logs capture network traffic information for network interfaces but do not provide application-level visibility or request tracing capabilities.
- D. Incorrect.
Incorrect: AWS CloudTrail tracks API activity on the AWS account level but does not provide request tracing or insights into the internal interactions between microservices.