AWS Certified Solutions Architect – Professional — Question 805

A company would like to implement a serverless application by using Amazon API Gateway, AWS Lambda, and Amazon DynamoDB. They deployed a proof of concept and stated that the average response time is greater than what their upstream services can accept. Amazon CloudWatch metrics did not indicate any issues with DynamoDB but showed that some Lambda functions were hitting their timeout.
Which of the following actions should the Solutions Architect consider to improve performance? (Choose two.)

Answer options

Correct answer: B, D

Explanation

Increasing the memory allocation for AWS Lambda proportionally scales the CPU power available, which helps resolve execution timeouts and reduces overall execution latency. Implementing API Gateway caching reduces the overall latency and the number of invocations to Lambda by serving cached responses for repeated requests. Note that CPU cannot be configured independently of memory in Lambda, and container reuse is managed automatically by AWS rather than via user configuration.