
Answer-first summary for fast verification
Answer: Increase the function's memory
Increase the function's memory Memory is the principal lever available to Lambda developers for controlling the performance of a function. You can configure the amount of memory allocated to a Lambda function, between 128 MB and 10,240 MB. The Lambda console defaults new functions to the smallest setting and many developers also choose 128 MB for their functions. The amount of memory also determines the amount of virtual CPU available to a function. Adding more memory proportionally increases the amount of CPU, increasing the overall computational power available. If a function is CPU-, network- or memory-bound, then changing the memory setting can dramatically improve its performance.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
As an AWS Certified Developer Associate focusing on optimizing serverless applications, you are tasked with enhancing the performance of a CPU-bound AWS Lambda function. Considering its reliance on CPU resources, what specific steps can a developer take to optimize its performance and ensure fast response time?
A
Increase the function's provisioned concurrency
B
Increase the function's memory
C
Increase the function's timeout
D
Increase the function's CPU
No comments yet.