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?
Option B is correct, the only adjustable parameter (in terms of hardware) is lambda memory. Increasing lambda memory will result in automatic adjustment of CPU.
Lambda memory is adjustable from 128 MB upto 10 GB
==> discard A: can't directly increase lambda CPU
==> discard C: concurrecny for handling many tasks at same time capacibility, not increase speed response when CPU-bound
=> discard D: be not relevant, increase maximum time to wait function to finish
B: with lambda, you can increase memory, implicity CPU usage for lambda also up too
Quote 'If a function is CPU-, network- or memory-bound, then changing the memory setting can dramatically improve its performance.' at https://docs.aws.amazon.com/lambda/latest/operatorguide/computing-power.html
Lambda allocates CPU power in proportion to the amount of memory configured. You can read more here:
https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-memory-console
Increasing the function's CPU core count is not an option in AWS Lambda. AWS Lambda automatically manages the allocation of CPU power and only allows scaling of memory.
. Increase the function's memory.
The performance of an AWS Lambda function is primarily determined by the amount of allocated memory. When you increase the memory, you also increase the available CPU and network resources. This can result in faster execution times, especially for CPU-bound functions. Increasing the CPU core count, reserved concurrency, or timeout may not have as significant an impact on performance as increasing 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.
https://docs.aws.amazon.com/lambda/latest/operatorguide/computing-power.html
On this particular question the answer is A.
while increasing memory can indirectly improve CPU performance, it's not always the most effective solution for CPU-bound functions, and increasing the CPU core count is usually a better option for improving performance in such cases. Please note - CPU-Bound functions. This question is to trick you
In this particular question it is B. You are right that in normal question it might be A but for a Lambda function you are not able to change the CPU. Lambda allocates CPU power in proportion to the amount of memory configured. You can read more here:
https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-memory-console
B
https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-memory-console
upvoted 3 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
ihta_2031
Highly Voted 1 year, 8 months agoKashan6109
Highly Voted 1 year, 4 months agotrieudo
Most Recent 1 day, 5 hours agorue_
1 month, 2 weeks agotgood
4 months, 1 week ago65703c1
6 months, 3 weeks agoleonardoliveros
1 year agojames2033
1 year, 1 month agoMajong
1 year, 6 months agoDevon_Fazekas
1 year, 7 months agogeekdamsel
1 year, 7 months agoBibay
1 year, 7 months agoblathul
1 year, 7 months agoSyre
1 year, 8 months agoMajong
1 year, 6 months agoUntamables
1 year, 8 months ago