DOP-C02 · Question #183
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…
The correct answer is C. Include the ReportBatchItemFailures value in the FunctionResponseTypes list in the Lambda. https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#services-sqs-batchfailurereporting
Question
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?
Options
- ADecrease the batch window to 1 second when configuring the Lambda function's event source
- BDecrease the batch size to 1 when configuring the Lambda function's event source mapping.
- CInclude the ReportBatchItemFailures value in the FunctionResponseTypes list in the Lambda
- DSet the queue visibility timeout on the Lambda function's event source mapping to account for
How the community answered
(36 responses)- A8% (3)
- B6% (2)
- C69% (25)
- D17% (6)
Explanation
https://docs.aws.amazon.com/lambda/latest/dg/with-sqs.html#services-sqs-batchfailurereporting
Topics
Community Discussion
No community discussion yet for this question.