AWS Certified Developer – Associate (DVA-C02) — Question 354

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?

Answer options

Correct answer: C

Explanation

AWS Lambda allocates CPU power proportionally to the amount of memory configured for the function, meaning that increasing memory will also increase processing power. Since image processing is a CPU-intensive task, allocating more memory is the most effective way to speed up execution. Other options like changing instance types do not apply to serverless Lambda functions, and adjusting reserved concurrency only controls scaling rather than individual execution performance.