
Answer-first summary for fast verification
Answer: Raise the Lambda function's memory allocation.
Increasing the memory configuration of the Lambda function can help because AWS Lambda allocates CPU power linearly in proportion to the amount of memory configured. By increasing the memory, you also get a higher CPU allocation, which can result in faster processing and potentially avoid timeout issues for longer video files. This approach does not require any additional code changes, making it the most appropriate solution in this scenario.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
An Amazon SQS queue triggers a Lambda function to convert video files to lower resolutions. The function times out with lengthy videos, despite the maximum timeout setting. How can a developer prevent timeouts without altering the code?
A
Raise the Lambda function's memory allocation.
B
Extend the SQS queue's visibility timeout.
C
Augment the host's instance size for the Lambda function.
D
Implement multi-threading in the conversion process.