A company has a monolithic desktop-based application that processes images. A developer is converting the application into an AWS Lambda function by using Python. Currently, the desktop application runs every 5 minutes to process the latest image from an Amazon S3 bucket. The desktop application completes the image processing task within 1 minute. During testing on AWS, the developer notices that the Lambda function runs at the specified 5-minute interval. However, the Lambda function takes more than 2 minutes to complete the image processing task. The developer needs a solution that will improve the Lambda function's performance. Which solution will meet this requirement?
- AUpdate the instance type of the Lambda function to a compute optimized instance with at least eight virtual CPU (vCPU).
- BUpdate the configuration of the Lambda function to use the latest Python runtime.
- CIncrease the memory that is allocated to the Lambda function. (correct answer)
- DConfigure a reserved concurrency on the Lambda function.
Reveal answer & explanationHide answer
The correct answer is C. Option C: Increase the memory that is allocated to the Lambda function.
Explanation
AWS Lambda runs code without provisioning servers and scales automatically, which minimizes operational overhead.