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

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

A company is using an AWS Lambda function to process records from an Amazon Kinesis data stream. The company recently observed slow processing of the records. A developer notices that the iterator age metric for the function is increasing and that the Lambda run duration is constantly above normal.
Which actions should the developer take to increase the processing speed? (Choose two.)

  • A. Increase the number of shards of the Kinesis data stream.
  • B. Decrease the timeout of the Lambda function.
  • C. Increase the memory that is allocated to the Lambda function.
  • D. Decrease the number of shards of the Kinesis data stream.
  • E. Increase the timeout of the Lambda function.
Show Suggested Answer Hide Answer
Suggested Answer: AC 🗳️

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
CHRIS12722222
Highly Voted 3 years, 1 month ago
AC is correct. Visit the link in the solution https://aws.amazon.com/premiumsupport/knowledge-center/lambda-iterator-age/
upvoted 16 times
dimon_millioner
1 year, 4 months ago
Increase your stream's shard count A low number of shards in a stream increases a function's iterator age. Increasing the number of shards in a stream increases the number of concurrent Lambda functions consuming from your stream, which decreases a function's iterator age.
upvoted 1 times
...
Arnaud92
2 years, 4 months ago
true : « To increase the speed at which your function processes records, add shards to your data stream. Lambda processes records in each shard in order. It stops processing additional records in a shard if your function returns an error. With more shards, there are more batches being processed at once, which lowers the impact of errors on concurrency. »
upvoted 3 times
...
...
sumanshu
Most Recent 2 months ago
Selected Answer: AC
Iterator age metric is increasing: This means the Lambda function is not processing records as quickly as they arrive in the Kinesis data stream. Run duration is above normal: This suggests the Lambda function is taking longer to process each batch of records. Each Lambda function invocation processes records from a single shard. By increasing the number of shards, you can achieve more parallelism in record processing, which increases the overall throughput. Increasing the memory also increases the allocated CPU power.
upvoted 1 times
...
rcaliandro
1 year, 7 months ago
Selected Answer: AC
To increase the performances of our lambda function we can add shards to the Kinesis data stream and also increase the memory (so the CPU as well) of the function. I will go for A and C
upvoted 1 times
...
mamila
1 year, 8 months ago
Selected Answer: CD
Seriously nobody sees that the answer is C and D? Lambda is not coping with the current amount of shards so they need to be reduced, not increased!
upvoted 1 times
shasankperiwal
1 year, 8 months ago
You are not even listening to what you're saying If Lambda isn't coping then a decrease in number of shards will result in more data So we would need to increase the number of shards
upvoted 1 times
...
...
peterpain
1 year, 9 months ago
Selected Answer: AC
A: Increase the number of shards for the better performance for Kinesis C: Increasing memory allocation of lambda also increases the vCPU of it
upvoted 1 times
...
Syre
1 year, 10 months ago
Selected Answer: CE
Increasing the number of shards of the Kinesis data stream may not improve processing speed, and decreasing the number of shards can potentially reduce the parallel processing capability of the Lambda function, resulting in slower processing. Decreasing the timeout of the Lambda function is not recommended, as it may cause the function to terminate before completing the processing of all records.
upvoted 1 times
...
sichilam
2 years, 1 month ago
A and C
upvoted 1 times
...
KT_Yu
2 years, 1 month ago
The Answer is A and C https://aws.amazon.com/premiumsupport/knowledge-center/lambda-iterator-age/
upvoted 1 times
...
haazybanj
2 years, 4 months ago
Selected Answer: AC
A and C is the right answer
upvoted 1 times
...
arun00028
2 years, 4 months ago
Selected Answer: AC
A an C
upvoted 1 times
...
Prem21
2 years, 7 months ago
Selected Answer: AC
I vote for AC
upvoted 1 times
...
AulaitQM
2 years, 8 months ago
Selected Answer: AC
I vote for AC
upvoted 1 times
...
IsraLev
3 years ago
Selected Answer: AC
Answer: AC
upvoted 1 times
...
JohnPi
3 years ago
Selected Answer: AC
A&C is correct
upvoted 1 times
...
JP_PA
3 years ago
Selected Answer: AC
ANS: A&C
upvoted 1 times
...
Janakiram_Madurai
3 years ago
It is AC. Resolution from the below url. https://aws.amazon.com/premiumsupport/knowledge-center/lambda-iterator-age/ 1.Decrease your function's runtime duration Achievable by: Increase the amount of memory allocated to the function. Optimize your function code . 2.Increase your stream's shard count
upvoted 2 times
...
denccc
3 years, 1 month ago
It's AC
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago