Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam AWS Certified DevOps Engineer - Professional DOP-C02 topic 1 question 168 discussion

A DevOps engineer is building a solution that uses Amazon Simple Queue Service (Amazon SQS) standard queues. The solution also includes an AWS Lambda function and an Amazon DynamoDB table. The Lambda function pulls content from an SQS queue event source and writes the content to the DynamoDB table.

The solution must maximize the scalability of Lambda and must prevent successfully processed SQS messages from being processed multiple times.

Which solution will meet these requirements?

  • A. Decrease the batch window to 1 second when configuring the Lambda function's event source mapping.
  • B. Decrease the batch size to 1 when configuring the Lambda function's event source mapping.
  • C. Include the ReportBatchItemFailures value in the FunctionResponseTypes list in the Lambda function's event source mapping.
  • D. Set the queue visibility timeout on the Lambda function's event source mapping to account for invocation throttling of the Lambda function.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
csG13
Highly Voted 4 months ago
Selected Answer: C
It's C, here is a reference: https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#services-sqs-batchfailurereporting
upvoted 5 times
...
c3518fc
Most Recent 1 week, 3 days ago
Selected Answer: C
To avoid reprocessing successfully processed messages in a failed batch, you can configure your event source mapping to make only the failed messages visible again. This is called a partial batch response. To turn on partial batch responses, specify ReportBatchItemFailures for the FunctionResponseTypes action when configuring your event source mapping. This lets your function return a partial success, which can help reduce the number of unnecessary retries on records. https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#services-sqs-batchfailurereporting
upvoted 2 times
...
dkp
2 weeks, 6 days ago
Selected Answer: C
answer C
upvoted 2 times
...
DanShone
1 month, 2 weeks ago
Selected Answer: C
https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#services-sqs-batchfailurereporting
upvoted 2 times
...
thanhnv142
2 months, 3 weeks ago
Selected Answer: C
C is correct. We need ReportBatchItemFailures to return only failed items A: batch window is the interval process time B: batch size is the size of the job D: queue visibility timeout is about re-process
upvoted 3 times
...
ozansenturk
4 months ago
Selected Answer: C
https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#services-sqs-batchfailurereporting
upvoted 2 times
...
d262e67
4 months ago
Selected Answer: C
Lambda process messages in batches. If one message in the batch fails the whole batch considered failed and all messages in the batch return to the queue. For example if batch has 10 messages and message 5 and 7 failed to get processed, all 10 messages will return to the queue. So, successfully processed messages can get processed again. Now to prevent this to happen you have two ways (used to be one) 1. Write your code in a way to identify processed messages and delete them manually from SQS. 2. Partial batch response that returns only the messages that were failed to be processed (supported since Dec 2021). References: https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#services-sqs-batchfailurereporting
upvoted 3 times
...
hisdlodskfe
4 months ago
C is correct.
upvoted 1 times
...
PrasannaBalaji
4 months ago
Selected Answer: B
B is correct
upvoted 1 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 ...