Ultimate access to all questions.
Upgrade Now 🚀
Sign in to unlock AI tutor
In a serverless user portal with performance issues traced to an Amazon API Gateway endpoint connected to a Lambda function, how should a developer identify the cause of increased response time using best practices?
A
Add high-precision timestamps in the Lambda function's logs before and after external requests, then analyze the CloudWatch logs to find the source of the delay.
B
Use AWS X-Ray SDK for the Lambda function, including HTTP/HTTPS interceptors and SDK client handlers, and analyze the service map after enabling X-Ray tracing to identify the issue.
C
Examine the Lambda function's CloudWatch metrics, particularly Duration and Throttles, using anomaly detection to pinpoint the likely sources of increased response time.
D
Deploy a CloudWatch Synthetics canary with X-Ray tracing to scan the portal, then review the canary's metrics on the dashboard to determine the performance bottlenecks.