DVA-C02 · Question #640
A company has an application that uses an AWS Lambda function to process customer orders. The company notices that the application processes some orders more than once. A developer needs to update the
The correct answer is A. Implement a de-duplication mechanism that uses Amazon DynamoDB as the control database.. The simplest and most effective way to prevent duplicate processing is to implement idempotency by using a deduplication mechanism. Storing unique identifiers of processed events in Amazon DynamoDB allows the Lambda function to check whether an event has already been processed, e
Question
A company has an application that uses an AWS Lambda function to process customer orders. The company notices that the application processes some orders more than once. A developer needs to update the application to prevent duplicate processing. Which solution will meet this requirement with the LEAST implementation effort?
Options
- AImplement a de-duplication mechanism that uses Amazon DynamoDB as the control database.
- BCreate a custom Amazon ECS task to perform idempotency checks. Use AWS Step Functions to
- CConfigure the Lambda function to retry failed invocations. Implement a retry mechanism that has
- DUse Amazon Athena to query processed events to identify duplicate records. Add processing
How the community answered
(47 responses)- A79% (37)
- B13% (6)
- C2% (1)
- D6% (3)
Explanation
The simplest and most effective way to prevent duplicate processing is to implement idempotency by using a deduplication mechanism. Storing unique identifiers of processed events in Amazon DynamoDB allows the Lambda function to check whether an event has already been processed, ensuring at-most-once processing with the least implementation effort among reliable solutions.
Community Discussion
No community discussion yet for this question.