AWS Certified DevOps Engineer – ProfessionalIncident and Event ResponseEasy

A global e-commerce company uses AWS Lambda functions for its serverless backend. During peak sales events, the company experiences intermittent performance degradation that is difficult to trace. They need to implement a solution to monitor the performance of individual Lambda invocations, identify bottlenecks, and visualize the entire request flow across multiple services. Which AWS service is BEST suited for this requirement?

  1. AAmazon S3 Access Logs
  2. BAWS X-Ray
  3. CAmazon CloudWatch Metrics
  4. DAWS Trusted Advisor
Show answer & explanation

Correct answer: B. AWS X-Ray

AWS X-Ray provides end-to-end visibility into request flows, showing how requests travel through various services, identifying performance bottlenecks, and providing detailed trace data for individual invocations, which is crucial for troubleshooting serverless applications.

Why the other options are wrong

  • A. S3 Access Logs record requests made to S3 buckets. While useful for S3 activity, they are irrelevant for tracing Lambda function performance or visualizing end-to-end request flows across multiple services.
  • C. CloudWatch Metrics provides aggregated data (e.g., invocation counts, error rates, durations) but does not offer distributed tracing or a detailed view of individual request paths.
  • D. AWS Trusted Advisor provides recommendations for cost optimization, security, performance, service limits, and fault tolerance. It is not a monitoring or tracing service for application performance.

AWS X-Ray for Performance Monitoring

AWS X-Ray is a service that helps developers analyze and debug distributed applications by providing end-to-end visibility into request flows.

  • Traces requests across multiple services.
  • Identifies performance bottlenecks and latency.
  • Visualizes service maps and individual trace details.
  • Supports various AWS services and custom applications.

Memory trick: X-Ray sees through the layers to find the problem.

More Incident and Event Response questions