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 159 discussion

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

A research company has a website that is used once each day to perform scientific calculations based on inputs that are submitted through a webpage. The calculations are CPU intensive. An AWS Lambda function performs the calculations once each day. Users occasionally receive errors because of Lambda function timeouts.

Which change will reduce the Lambda function's runtime duration?

  • A. Configure Lambda to run the function on an Amazon EC2 burstable instance type.
  • B. Configure Lambda to run the function on an Amazon EC2 instance type that is recommended for high performance computing (HPC) workloads.
  • C. Configure Lambda to run the function with a larger reserved concurrency value.
  • D. Configure Lambda to run the function with a larger memory value.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

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
nmc12
1 year, 10 months ago
Selected Answer: D
B not good cause high cost. run only once in a day should use serverless for down cost. so i go with D. Increasing the memory value for the function will also increase the CPU power available to it
upvoted 1 times
...
rcaliandro
2 years, 1 month ago
Selected Answer: D
I will go to D, we can increase the lambda function memory to also increase the CPU
upvoted 1 times
...
Rk9855
2 years, 3 months ago
The lambda function is run only once in a day. So it should be B
upvoted 1 times
nmc12
1 year, 10 months ago
B not good cause high cost. run only once in a day should use serverless for down cost. so i go with D. Increasing the memory value for the function will also increase the CPU power available to it
upvoted 1 times
...
...
MrTee
2 years, 3 months ago
AWS Lambda automatically scales compute capacity by creating new instances of the function to process events in parallel. The amount of CPU power allocated to a function is proportional to the amount of memory configured for the function. Therefore, increasing the memory value for the function will also increase the CPU power available to it. This can help reduce the runtime duration of CPU-intensive calculations. Based on this information, the correct answer would be D. Configure Lambda to run the function with a larger memory value.
upvoted 1 times
...
pancman
2 years, 5 months ago
This question was on the exam today (Feb 2023)
upvoted 1 times
...
ShriniW
2 years, 6 months ago
Why A is highlighted? correct answer is D
upvoted 1 times
ShriniW
2 years, 6 months ago
sry I mean to say why B is highlighted
upvoted 1 times
Dipak25
1 year, 8 months ago
ExamTopics don't have a human expert to answer the questions. It is decided based on BOT's answer. And almost always the BOT is incorrect. ExamTopics should change the way they show the answer to address confusion generated in people mind. Please go with the most voted answer. Most of the time it is correct.
upvoted 1 times
...
...
...
ayoubmk
2 years, 7 months ago
Selected Answer: D
https://docs.aws.amazon.com/lambda/latest/operatorguide/configurations.html#cpu-bound-config
upvoted 2 times
...
aws_leo
2 years, 8 months ago
Selected Answer: D
There are similar questions like this one, the keyword here is CPU intensive -> increase Lamba RAM
upvoted 2 times
...
michaldavid
2 years, 8 months ago
Selected Answer: D
dddddddd
upvoted 2 times
...
k1kavi1
2 years, 8 months ago
D https://docs.aws.amazon.com/lambda/latest/operatorguide/configurations.html#cpu-bound-config
upvoted 2 times
...
saysamsuf
2 years, 9 months ago
I will go with D as memory increment in lambda helps with performance.
upvoted 2 times
...
sionita
2 years, 9 months ago
D The amount of memory also determines the amount of virtual CPU available to a function. Adding more memory proportionally increases the amount of CPU, increasing the overall computational power available.
upvoted 4 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 ...