DVA-C02 Question 366
Single answerYou are developing a microservices application deployed on Amazon ECS. The application consists of multiple services communicating with each other using HTTP. To debug performance issues and monitor end-to-end requests across these services, you decide to implement distributed tracing. Which AWS service or feature should you use to achieve this?
- A
Amazon X-Ray
- B
Amazon CloudWatch Logs
- C
AWS CloudTrail
- D
Amazon EventBridge
Show answer and explanation
Correct answer: A
Explanation
Distributed tracing requires a service capable of tracking requests as they pass through multiple components of an application. Amazon X-Ray is purpose-built for this use case, enabling you to visualize and debug the interactions between services in a microservices architecture. Other AWS services like CloudWatch Logs, CloudTrail, and EventBridge serve different purposes and do not provide the detailed tracing capabilities required for this scenario.
- A. Correct.
Amazon X-Ray is specifically designed for distributed tracing. It helps developers analyze and debug production applications by providing insights into service interactions, request latencies, and errors.
- B. Incorrect.
Amazon CloudWatch Logs is a logging service that helps monitor and troubleshoot application logs. However, it does not provide distributed tracing capabilities to monitor end-to-end request flows across multiple services.
- C. Incorrect.
AWS CloudTrail is used for auditing API calls and tracking changes in your AWS account. It is not designed for distributed tracing of application requests.
- D. Incorrect.
Amazon EventBridge is a serverless event bus for managing events across AWS services and applications. While it helps with event-driven architectures, it is not used for tracing requests across services.