exam questions

Exam AWS Certified Developer Associate All Questions

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

Exam AWS Certified Developer Associate topic 1 question 80 discussion

Exam question from Amazon's AWS Certified Developer Associate
Question #: 80
Topic #: 1
[All AWS Certified Developer Associate Questions]

A developer has created on AWS Lambda function tool uses 15 MB of memory. When the developer runs the code natively on a laptop that has 4 cores, the function runs within 100 ms. When the developer deploys the code as a Lambda function with 128 MB of memory, the first run takes 3 seconds. Subsequent runs take more than 500 ms to finish.
The developer needs to improve the performance of the Lambda function so that the function runs consistently in less than 100 ms, excluding the initial startup time.
Which solution will meet this requirement?

  • A. Increase the reserved concurrency of the Lambda function.
  • B. Increase the provisioned concurrency of the Lambda function.
  • C. Increase the memory of the Lambda function.
  • D. Repackage the Lambda function as a container. Redeploy the function.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
[Removed]
Highly Voted 2 years, 7 months ago
Selected Answer: C
I think C. provisioned concurrency help the startup time, cold start. But the Question says "excluding the initial startup time".
upvoted 11 times
...
JOL86
Highly Voted 2 years, 7 months ago
I think the answer should be C? It mentions locally using 4 cores, and by increasing memory of a lambda, you can increase CPU. Plus provisioned concurrency would only help on a cold start, and it's still taking too long on subsequent runs
upvoted 10 times
...
sumanshu
Most Recent 4 months, 1 week ago
Selected Answer: C
Lambda functions are allocated more CPU power when given more memory While provisioned concurrency is excellent for minimizing cold start times, increasing memory allocation is the most direct and effective way to improve the execution speed of the Lambda function itself, excluding the initial startup time, as per the specific requirement.
upvoted 1 times
...
rcaliandro
1 year, 10 months ago
Selected Answer: C
C for sure because if we increase the memory, also the CPU will be increased. In this way we improve the lambda performance
upvoted 1 times
...
MrTee
2 years ago
Selected Answer: C
C. Increase the memory of the Lambda function. Increasing the memory allocated to a Lambda function also increases its CPU power and network bandwidth proportionally. This can help improve the performance of the function and reduce its execution time.
upvoted 1 times
...
Dr_Chomp
2 years ago
very deceptive question - throwing in the 4-cores makes it sound like it needs the vCPU - thus the need to scale the memory answer. Maybe tho the multi-threading of the 4-core CPU suggests concurrency is an issue... they must have theirs turned right down tho... feels like its more vertical scaling and thus the memory = cpu's!
upvoted 1 times
...
captainpike
2 years, 1 month ago
C. https://docs.aws.amazon.com/lambda/latest/operatorguide/computing-power.html
upvoted 1 times
...
MMaquis
2 years, 2 months ago
Selected Answer: C
Increasing the memory of the func
upvoted 1 times
...
gaddour_med
2 years, 2 months ago
he says that the first run of aws lambda with 128 RAM is 3ms. so there is no problem in RAM nor in processor because it takes less then 100ms of laptop. it takes 500ms after that because of concurrency. new request wait new functions to run. i think B is correct.
upvoted 2 times
...
thensanity
2 years, 3 months ago
just increase the memory and you will be good to go
upvoted 1 times
...
fabriciollf
2 years, 4 months ago
Selected Answer: C
C is the correct answer
upvoted 1 times
...
gpit
2 years, 5 months ago
Selected Answer: B
As the Provisioned Concurrency is the recommended way to reduce lambda function cold start duration.
upvoted 2 times
Dipak25
1 year, 4 months ago
Need to increaes the memory of the Lambda function. That way it will provision more CPU and the function will complete sooner. Please explain why you are selecting B Provisioned Concurrency.
upvoted 1 times
...
...
G4Exams
2 years, 5 months ago
Selected Answer: C
It is C.
upvoted 2 times
...
dark_cherrymon
2 years, 5 months ago
it's C and not B because "excluding the initial startup time"
upvoted 3 times
humble_developer
2 years, 4 months ago
overlooking this one so I go for B....should be C instead
upvoted 2 times
...
...
CloudHandsOn
2 years, 5 months ago
Its C. Increasing memory on the lambda will help with performance, because it's like increasing the CPU of the function. Adding provisioned concurrency will help eliminate the init time, but the question says to ignore that.
upvoted 2 times
...
david00
2 years, 7 months ago
Selected Answer: C
C: you need to increase memory allocation for lambda functions to improve performance
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