AWS Certified Developer – Associate (DVA-C02) — Question 328

A company recently deployed a new serverless user portal. Users have reported that part of the portal is slow. The initial analysis found a single Amazon API Gateway endpoint that is responsible for the performance issues. The endpoint integrates with an AWS Lambda function. However, the Lambda function interacts with other APIs and AWS services.

How can a developer find the source of the increased response time by using operational best practices?

Answer options

Correct answer: B

Explanation

AWS X-Ray is specifically designed to analyze and debug distributed applications, making it the best tool for tracing requests across multiple APIs and AWS services. By instrumenting the Lambda function with the X-Ray SDK and enabling tracing, the developer can visualize the entire call chain and pinpoint the exact source of latency on the X-Ray service map. Other approaches, such as manually adding timestamps to logs or using basic CloudWatch metrics, do not provide the detailed downstream breakdown required for complex distributed tracing.