A deployed Lambda function is CPU-bound and needs faster response times. Which change will most improve the function's performance?
Choose an answer
Tap an option to check your answer.
Correct answer: Increase the function's memory allocation..
Why this is the answer
Increasing a Lambda function's memory allocation directly increases the proportional share of CPU, network bandwidth, and disk I/O available to the function. For CPU-bound functions, this means more processing power, leading to faster execution and improved response times. Increasing the function's number of CPU cores is not an option directly configurable in AWS Lambda; CPU allocation scales with memory. Increasing reserved concurrency prevents throttling but doesn't improve the performance of an individual invocation. Increasing the timeout duration only allows the function to run longer, it doesn't make it run faster.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed