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

A developer is building an image-processing application that includes an AWS Lambda function. The Lambda function moves images from one AWS service to another AWS service for image processing. For images that are larger than 2 MB, the Lambda function returns the following error: “Task timed out after 3.01 seconds.”

The developer needs to resolve the error without modifying the Lambda function code.

Which solution will meet these requirements?

Answer options

Correct answer: A

Explanation

The "Task timed out after 3.01 seconds" error indicates that the Lambda function's execution duration exceeded its configured timeout limit, which is set near the default of 3 seconds. Increasing the timeout value allows the function more time to complete the transfer of larger images without needing any code changes. Modifying concurrency settings or limiting image sizes does not address the core issue of execution duration limits for larger payloads.