DVA-C02 · Question #1
A developer has written an AWS Lambda function. The function is CPU-bound. The developer wants to ensure that the function returns responses quickly. How can the developer improve the function's…
The correct answer is B. Increase the function's memory. 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…
Question
A developer has written an AWS Lambda function. The function is CPU-bound. The developer wants to ensure that the function returns responses quickly. How can the developer improve the function's performance?
Options
- AIncrease the function's CPU core count.
- BIncrease the function's memory.
- CIncrease the function's reserved concurrency.
- DIncrease the function's timeout.
How the community answered
(40 responses)- A3% (1)
- B83% (33)
- C5% (2)
- D10% (4)
Explanation
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. https://docs.aws.amazon.com/lambda/latest/operatorguide/computing-power.html https://docs.aws.amazon.com/lambda/latest/dg/configuration-function- common.html#configuration-memory-console
Community Discussion
No community discussion yet for this question.