StudyToCert

All certifications / Developer Associate / Lessons

AWS Certified Developer – Associate DVA-C02 · Domain 1: Development with AWS Services

Lambda invocation models: synchronous, asynchronous (retries, destinations, DLQs) and event source mappings (SQS, Kinesis, DynamoDB Streams, partial batch responses)

▶ Watch the overview video

Last reviewed October 6, 2026 · Leer en español

Explain it simpler

A Lambda function can be started in three ways. Synchronous is like a phone call: the caller waits for an answer and decides whether to call back if it fails. Asynchronous is like leaving a voicemail: Lambda takes the message, says got it, and tries a few more times on its own if the function fails, then can put the failed message somewhere for review. The third way is polling: Lambda itself keeps checking a queue or a stream for new items and hands them to your function in bundles. If a bundle partly fails, your function can say exactly which items failed so only those get retried, instead of redoing the whole bundle.

On Monday morning Femi, a developer at Cobalt Print Shop, finds three puzzles waiting. Corrupt uploads to S3 failed overnight, but the dead-letter queue he attached to the function is empty. An SQS-triggered order function has a DLQ configured on the function too, yet failed orders are looping back again and again. And the Kinesis-fed analytics function has not processed anything new for six hours because one malformed record keeps failing. All three use the same Lambda function settings page, so why does each behave so differently? The answer depends on one question nobody on the team asked: how is each function being invoked?

How a Lambda function is invoked decides who retries on failure and where errors end up. There are three models: synchronous, asynchronous and event source mappings. Many AWS Certified Developer – Associate (DVA-C02) questions quietly depend on which one is in play, so the first step in any Lambda error-handling question is to identify the event source and its invocation model.

Free account

Keep reading for free

Create a free StudyToCert account to read the rest of this lesson: 8 more sections, 7 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.

Sign up free Log in

Study Developer Associate for free
A week-by-week plan with every lesson, quizzes, checkpoint tests, a practice exam and hands-on labs.
Open the Developer Associate study plan