
Answer-first summary for fast verification
Answer: By increasing the memory allocation for the function.
The correct answer is B. In AWS Lambda, increasing the memory allocation also increases the CPU allocation proportionally. Since the function is CPU-bound, increasing the memory will provide more CPU power, which can significantly improve the function's performance and reduce response times. This is because Lambda allocates CPU power linearly in proportion to the amount of memory configured.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
No comments yet.
How can a developer improve the performance of a CPU-bound AWS Lambda function to ensure faster response times?
A
By increasing the CPU core count allocated to the function.
B
By increasing the memory allocation for the function.
C
By increasing the reserved concurrency for the function.
D
By extending the function's timeout setting.