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
- A. Configure Lambda to run the function on an Amazon EC2 burstable instance type.
- B. Configure Lambda to run the function on an Amazon EC2 instance type that is recommended for high performance computing (HPC) workloads.
- C. Configure Lambda to run the function with a larger reserved concurrency value.
- D. Configure Lambda to run the function with a larger memory value.
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.