An API Gateway API sends requests to a Lambda function. The API is experiencing increased latency because the Lambda function has limited CPU available to handle requests. Before deploying to production, the developer must increase the Lambda function's CPU. Which action will accomplish this?
Choose an answer
Tap an option to check your answer.
Correct answer: Increase the memory allocation for the Lambda function..
Why this is the answer
Increasing the memory allocation for a Lambda function is the correct action because AWS Lambda allocates CPU proportionally to the amount of memory configured. By increasing the memory, you automatically increase the CPU available to the function, directly addressing the issue of limited CPU and improving performance. Increasing the Lambda function's virtual CPU (vCPU) core quota is incorrect because there is no direct setting to configure vCPU cores for a Lambda function; CPU is scaled with memory. Increasing ephemeral storage size is incorrect as this only affects the temporary disk space available to the function, not its computational power. Increasing the timeout setting is incorrect because this only allows the function to run for a longer duration before being terminated, but does not increase its processing speed or CPU.
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