Skip to main content
Advancedhow it works Verified ~7 min

An S3 event triggers a Lambda. How do you make sure a file is not processed twice?

Source: Amazon S3: data consistency model

Quick answerFree

Assume at least once: for asynchronous invocations, Lambda retries a function error two more times by default, and the docs tell you to handle duplicate events.

Detailed answer· ~240 words

Interview Prep

Unlock the full answer with Interview Prep

Get a ~240-word model answer, 5 key points, a visual explainer, 5 common mistakes and 5 follow-ups, plus 69 more AWS questions.

Also in Pro (₹499 / 90 days).

Key points· 5 points

Interview Prep
Unlock with Interview Prep

Visual explainer· animated, step by step

Interview Prep
Unlock with Interview Prep

Common mistakes· 5

Interview Prep
Locked

Best practices· 5

Interview Prep
Locked

Likely follow-ups· 5 questions

Interview Prep
Unlock with Interview Prep

+ 69 more AWS questions in Interview Prep, each with the full answer.

Discussion