AWS Certified Developer – Associate — Question 82

A research company has a website that is used once each day to perform scientific calculations based on inputs that are submitted through a webpage. The calculations are CPU intensive. An AWS Lambda function performs the calculations once each day. Users occasionally receive errors because of Lambda function timeouts.

Which change will reduce the Lambda function's runtime duration?

Answer options

Correct answer: D

Explanation

Increasing the memory allocation for the Lambda function (Option D) directly impacts the amount of CPU power available to it, which can significantly decrease its execution time. Options A and B are not valid since they involve changing the execution environment to EC2, which is not applicable for Lambda functions. Option C, while related to concurrency, does not necessarily improve the runtime duration of a single execution.