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

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

A developer has an application that asynchronously invokes an AWS Lambda function. The developer wants to store messages that resulted in failed invocations of the Lambda function so that the application can retry the call later.
What should the developer do to accomplish this goal with the LEAST operational overhead?

  • A. Set up Amazon CloudWatch Logs log groups to filter and store the messages in an Amazon S3 bucket. Import the messages in Lambda. Run the Lambda function again.
  • B. Configure Amazon EventBridge (Amazon CloudWatch Events) to send the messages to Amazon Simple Notification Service (Amazon SNS) to initiate the Lambda function again.
  • C. Implement a dead-letter queue for discarded messages. Set the dead-letter queue as an event source for the Lambda function.
  • D. Send Amazon EventBridge (Amazon CloudWatch Events) events to an Amazon Simple Queue Service (Amazon SQS) queue. Configure the Lambda function to pull messages from the SQS queue. Run the Lambda function again.
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
SD_CS
1 year, 5 months ago
Selected Answer: C
Use the SQS DLQ as a lambda destination for failed async messages
upvoted 1 times
...
rcaliandro
2 years ago
Selected Answer: C
The correct answer is C. even if the call is asynchronous, we can anyway create an SQS queue to be configured as DLQ (Dead-Letter Queue). Then we can set the queue as an event source for the lambda function in order to retry and reprocess the events
upvoted 1 times
...
pancman
2 years, 4 months ago
This question was on the exam today (Feb 2023)
upvoted 2 times
...
aarti_k
2 years, 4 months ago
Selected Answer: C
Asynchronous invocation allow you to configure SQS queue, park all error in DLQ
upvoted 1 times
...
Phinx
2 years, 5 months ago
Selected Answer: C
C is the way to go.
upvoted 2 times
...
sichilam
2 years, 5 months ago
DLQ is the answer C
upvoted 1 times
...
jv_
2 years, 6 months ago
C answer
upvoted 1 times
jv_
2 years, 6 months ago
DLQ for Lambda is for async invocations.
upvoted 1 times
...
...
michaldavid
2 years, 7 months ago
Selected Answer: C
CCCCCCCCC
upvoted 2 times
...
RyanDDD
2 years, 7 months ago
Selected Answer: C
Asynchronous invocation – You can configure a dead-letter queue on the function to capture events that weren't successfully processed. Event source mappings – Event source mappings that read from streams retry the entire batch of items. For event source mappings that read from a queue, you determine the length of time between retries and destination for failed events by configuring the visibility timeout and redrive policy on the source queue. https://docs.aws.amazon.com/lambda/latest/dg/invocation-retries.html
upvoted 1 times
...
robbyboss
2 years, 9 months ago
Selected Answer: C
Implement a dead-letter queue for discarded messages.
upvoted 2 times
...
m_t_kd
2 years, 10 months ago
Selected Answer: C
Answer is C, SIMPLEST form https://docs.aws.amazon.com/sns/latest/dg/sns-dead-letter-queues.html
upvoted 4 times
Danbraga
2 years, 10 months ago
Why not B?
upvoted 1 times
habros
2 years, 9 months ago
Keyword “retry the call later” SNS is perfect for fanout situations (multiple invocations) but in this case it does not apply
upvoted 1 times
...
...
...
Chhotu_DBA
2 years, 10 months ago
Selected Answer: A
I think its A
upvoted 2 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 ...