DVA-C02 Question 364
Single answerYou are developing a microservices-based application hosted on AWS, and you need to analyze the latency and performance of requests as they traverse multiple services. The application uses Amazon API Gateway, AWS Lambda functions, and Amazon DynamoDB. Which AWS service or feature should you use to enable distributed tracing and visualize the end-to-end flow of requests?
- A
Amazon X-Ray
- B
Amazon CloudWatch Logs
- C
AWS CloudTrail
- D
Amazon DynamoDB Streams
Show answer and explanation
Correct answer: A
Explanation
Distributed tracing requires a service that can follow the flow of requests across multiple components of your application and provide insights into latency, errors, and performance. Amazon X-Ray is purpose-built for this use case, enabling developers to trace requests end-to-end and pinpoint issues in microservices architectures. Other services like CloudWatch Logs and CloudTrail have specific use cases that do not include distributed tracing.
- A. Correct.
Amazon X-Ray is specifically designed for distributed tracing, allowing you to analyze and debug the flow of requests through your microservices architecture.
- B. Incorrect.
Amazon CloudWatch Logs is a logging service that collects and monitors log data, but it does not provide end-to-end request tracing or visualization of distributed systems.
- C. Incorrect.
AWS CloudTrail is used for auditing API calls and tracking changes in your AWS environment, but it is not a tool for distributed tracing or analyzing request flows.
- D. Incorrect.
Amazon DynamoDB Streams is used to capture changes in DynamoDB tables and trigger downstream processes, but it is unrelated to distributed tracing.