exam questions

Exam AWS Certified Developer - Associate DVA-C02 All Questions

View all questions & answers for the AWS Certified Developer - Associate DVA-C02 exam

Exam AWS Certified Developer - Associate DVA-C02 topic 1 question 16 discussion

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?

  • A. Increase the function's CPU core count.
  • B. Increase the function's memory.
  • C. Increase the function's reserved concurrency.
  • D. Increase the function's timeout.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
ihta_2031
Highly Voted 1 year, 8 months ago
Selected Answer: B
Cpu utilisation => increase memory
upvoted 15 times
...
Kashan6109
Highly Voted 1 year, 4 months ago
Selected Answer: B
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
upvoted 9 times
...
trieudo
Most Recent 1 day, 5 hours ago
Selected Answer: B
==> 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
upvoted 1 times
...
rue_
1 month, 2 weeks ago
Selected Answer: B
the only way to adjust the vCPU assigned to your function, is through an increase in memory
upvoted 1 times
...
tgood
4 months, 1 week ago
Selected Answer: B
B is correct
upvoted 1 times
...
65703c1
6 months, 3 weeks ago
Selected Answer: B
B is the correct answer.
upvoted 1 times
...
leonardoliveros
1 year ago
Selected Answer: B
If you increase the memory on a Lambda Function hence your vCPU also increased
upvoted 1 times
...
james2033
1 year, 1 month ago
Selected Answer: B
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
upvoted 3 times
...
Majong
1 year, 6 months ago
Selected Answer: B
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
upvoted 5 times
...
Devon_Fazekas
1 year, 7 months ago
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.
upvoted 2 times
...
geekdamsel
1 year, 7 months ago
Correct answer is B.
upvoted 3 times
...
Bibay
1 year, 7 months ago
Selected Answer: B
. 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.
upvoted 1 times
...
blathul
1 year, 7 months ago
Selected Answer: B
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
upvoted 1 times
...
Syre
1 year, 8 months ago
Selected Answer: A
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
upvoted 1 times
Majong
1 year, 6 months ago
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
upvoted 4 times
...
...
Untamables
1 year, 8 months ago
Selected Answer: B
B https://docs.aws.amazon.com/lambda/latest/dg/configuration-function-common.html#configuration-memory-console
upvoted 3 times
...
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago