AWS Certified Solutions Architect – Professional — Question 850
The Solutions Architect manages a serverless application that consists of multiple API gateways, AWS Lambda functions, Amazon S3 buckets, and Amazon
DynamoDB tables. Customers say that a few application components slow while loading dynamic images, and some are timing out with the `504 Gateway
Timeout` error. While troubleshooting the scenario, the Solutions Architect confirms that DynamoDB monitoring metrics are at acceptable levels.
Which of the following steps would be optimal for debugging these application issues? (Choose two.)
Answer options
- A. Parse HTTP logs in Amazon API Gateway for HTTP errors to determine the root cause of the errors.
- B. Parse Amazon CloudWatch Logs to determine processing times for requested images at specified intervals.
- C. Parse VPC Flow Logs to determine if there is packet loss between the Lambda function and S3.
- D. Parse AWS X-Ray traces and analyze HTTP methods to determine the root cause of the HTTP errors.
- E. Parse S3 access logs to determine if objects being accessed are from specific IP addresses to narrow the scope to geographic latency issues.
Correct answer: B, D
Explanation
AWS X-Ray is designed for end-to-end tracing in serverless architectures, making it the most effective tool to pinpoint where bottlenecks and 504 errors originate across API Gateway and Lambda. Parsing Amazon CloudWatch Logs allows the architect to analyze specific execution and processing times for the Lambda functions handling the dynamic images. Other options like VPC Flow Logs or S3 access logs do not provide the application-level execution and latency details required to resolve these timeout issues.