[{"data":1,"prerenderedAt":347},["ShallowReactive",2],{"practiceExams":3,"studies":186,"free-lesson-\u002Fcourses\u002Faws-certified-developer-associate\u002Flessons\u002Faws-lambda-direct-invocation-and-event-delivery-dva-c03":187},[4,22,37,51,63,75,87,98,111,123,134,144,155,168,177],{"id":5,"slug":6,"description":7,"questionCount":8,"isActive":9,"datePublicModified":10,"difficulty":11,"examVersion":18},23,"aws-certified-developer-associate-dva-c03","Prepare for the AWS Certified Developer - Associate (DVA-C03) exam with realistic practice questions on developing, securing, testing, deploying and troubleshooting applications on AWS, AI-assisted development included, with detailed explanations.",655,true,"2026-12-03T00:00:00.000Z",{"providerId":12,"title":13,"subtitle":14,"slug":15,"coverImageUrl":16,"level":17},1,"AWS Certified Developer - Associate","DVA-C02","aws-certified-developer-associate","\u002Fimages\u002Fdifficulties\u002Faws-certified-developer-associatedva-c02\u002Fcovers\u002Faws-DVA-C02.png","associate",{"slug":6,"code":19,"dateBetaStart":20,"dateReleased":21,"pageSlug":15},"DVA-C03",null,"2026-12-01",{"id":23,"slug":24,"description":25,"questionCount":26,"isActive":9,"datePublicModified":27,"difficulty":28,"examVersion":34},22,"aws-certified-solutions-architect-professional-sap-c03","Prepare for the AWS Certified Solutions Architect - Professional (SAP-C03) exam with realistic practice questions on architecture, security, cost, resilience and automation, with detailed explanations.",767,"2026-11-15T00:00:00.000Z",{"providerId":12,"title":29,"subtitle":30,"slug":31,"coverImageUrl":32,"level":33},"AWS Certified Solutions Architect - Professional","SAP-C02","aws-certified-solutions-architect-professional","\u002Fimages\u002Fdifficulties\u002Faws-certified-solutions-architect-professionalsap-c02\u002Fcovers\u002Faws-SAP-C02.png","advanced",{"slug":24,"code":35,"dateBetaStart":20,"dateReleased":36,"pageSlug":31},"SAP-C03","2026-11-17",{"id":38,"slug":39,"description":40,"questionCount":41,"isActive":9,"datePublicModified":42,"difficulty":43,"examVersion":49},5,"aws-certified-cloud-practitioner-clf-c02","Master your AWS Certified Cloud Practitioner exam with our Practice Exam Simulator. Prepare effectively and assess your readiness with realistic practice exams designed to mirror the most popular official AWS exam.",937,"2026-10-30T00:00:00.000Z",{"providerId":12,"title":44,"subtitle":45,"slug":46,"coverImageUrl":47,"level":48},"AWS Certified Cloud Practitioner","CLF-C02","aws-certified-cloud-practitioner","\u002Fimages\u002Fdifficulties\u002Faws-certified-cloud-practitionerclf-c02\u002Fcovers\u002Faws-CLF-C02.png","foundational",{"slug":39,"code":45,"dateBetaStart":20,"dateReleased":50,"pageSlug":46},"2023-09-19",{"id":52,"slug":53,"description":54,"questionCount":55,"isActive":9,"datePublicModified":42,"difficulty":56,"examVersion":61},8,"aws-certified-devops-engineer-professional-dop-c02","Boost your readiness for the AWS Certified DevOps Engineer - Professional (DOP-C02) exam with our practice exam simulator. Featuring realistic questions and detailed explanations, it helps you identify knowledge gaps and improve your skills.",1040,{"providerId":12,"title":57,"subtitle":58,"slug":59,"coverImageUrl":60,"level":33},"AWS Certified DevOps Engineer - Professional","DOP-C02","aws-certified-devops-engineer-professional","",{"slug":53,"code":58,"dateBetaStart":20,"dateReleased":62,"pageSlug":59},"2023-03-07",{"id":64,"slug":65,"description":66,"questionCount":67,"isActive":9,"datePublicModified":42,"difficulty":68,"examVersion":72},11,"aws-certified-ai-practitioner-aif-c01","Prepare for the AWS Certified AI Practitioner exam with our practice exam simulator. Realistic questions on AI, machine learning and generative AI fundamentals, with detailed explanations, help you find your knowledge gaps and assess your readiness.",928,{"providerId":12,"title":69,"subtitle":70,"slug":71,"coverImageUrl":60,"level":48},"AWS Certified AI Practitioner","AIF-C01","aws-certified-ai-practitioner",{"slug":65,"code":70,"dateBetaStart":73,"dateReleased":74,"pageSlug":71},"2024-08-13","2024-10-22",{"id":76,"slug":77,"description":78,"questionCount":79,"isActive":9,"datePublicModified":42,"difficulty":80,"examVersion":84},9,"aws-certified-data-engineer-associate-dea-c01","Prepare for your AWS Certified Data Engineer - Associate exam with our practice exam simulator. Featuring real exam scenarios, detailed explanations, and instant feedback to boost your confidence and success rate.",891,{"providerId":12,"title":81,"subtitle":82,"slug":83,"coverImageUrl":60,"level":17},"AWS Certified Data Engineer - Associate","DEA-C01","aws-certified-data-engineer-associate",{"slug":77,"code":82,"dateBetaStart":85,"dateReleased":86,"pageSlug":83},"2023-11-27","2024-03-12",{"id":12,"slug":88,"description":89,"questionCount":90,"isActive":9,"datePublicModified":42,"difficulty":91,"examVersion":96},"aws-certified-solutions-architect-associate-saa-c03","Unlock your potential with the AWS Certified Solutions Architect - Associate Practice Exam Simulator. This comprehensive tool is designed to prepare you thoroughly and assess your readiness for the most sought-after AWS associate certification.",1203,{"providerId":12,"title":92,"subtitle":93,"slug":94,"coverImageUrl":95,"level":17},"AWS Certified Solutions Architect - Associate","SAA-C03","aws-certified-solutions-architect-associate","\u002Fimages\u002Fdifficulties\u002Faws-certified-solutions-architect-associatesaa-c03\u002Fcovers\u002Faws-SAA-C03.png",{"slug":88,"code":93,"dateBetaStart":20,"dateReleased":97,"pageSlug":94},"2022-08-30",{"id":99,"slug":100,"description":101,"questionCount":102,"isActive":9,"datePublicModified":103,"difficulty":104,"examVersion":108},17,"aws-certified-generative-ai-developer-professional-aip-c01","Get ready for the AWS Certified Generative AI Developer - Professional exam with our practice exam simulator. Realistic scenario-based questions with detailed explanations help you assess your readiness to build generative AI solutions on AWS.",982,"2026-10-29T00:00:00.000Z",{"providerId":12,"title":105,"subtitle":106,"slug":107,"coverImageUrl":60,"level":33},"AWS Certified Generative AI Developer - Professional","AIP-C01","aws-certified-generative-ai-developer-professional",{"slug":100,"code":106,"dateBetaStart":109,"dateReleased":110,"pageSlug":107},"2025-11-28","2026-03-17",{"id":112,"slug":113,"description":114,"questionCount":115,"isActive":9,"datePublicModified":103,"difficulty":116,"examVersion":121},13,"aws-certified-security-specialty-scs-c03","Advance your career in cloud security with the AWS Certified Security - Specialty (SCS-C03) Exam Simulator. Realistic, scenario-based practice exams mirror the official exam, with detailed explanations to close your knowledge gaps.",864,{"providerId":12,"title":117,"subtitle":118,"slug":119,"coverImageUrl":120,"level":33},"AWS Certified Security - Specialty","SCS-C03","aws-certified-security-specialty","\u002Fimages\u002Fdifficulties\u002Faws-certified-security-specialtyscs-c02\u002Fcovers\u002Faws_SCS_c02.png",{"slug":113,"code":118,"dateBetaStart":20,"dateReleased":122,"pageSlug":119},"2025-12-01",{"id":124,"slug":125,"description":126,"questionCount":127,"isActive":9,"datePublicModified":103,"difficulty":128,"examVersion":132},19,"aws-certified-machine-learning-engineer-associate-mla-c02","Prepare for the AWS Certified Machine Learning Engineer - Associate exam with our practice exam simulator. Realistic questions with detailed explanations help you find your knowledge gaps and assess your readiness to build and run ML workloads on AWS.",861,{"providerId":12,"title":129,"subtitle":130,"slug":131,"coverImageUrl":60,"level":17},"AWS Certified Machine Learning Engineer - Associate","MLA-C02","aws-certified-machine-learning-engineer-associate",{"slug":125,"code":130,"dateBetaStart":133,"dateReleased":20,"pageSlug":131},"2026-09-29",{"id":135,"slug":136,"description":137,"questionCount":138,"isActive":9,"datePublicModified":103,"difficulty":139,"examVersion":143},15,"aws-certified-ai-business-strategist-aib-c01","Prepare for the AWS Certified AI Business Strategist exam with our practice exam simulator. Realistic, scenario-based questions with detailed explanations help you assess your readiness to lead AI adoption on AWS and close your knowledge gaps.",848,{"providerId":12,"title":140,"subtitle":141,"slug":142,"coverImageUrl":60,"level":48},"AWS Certified AI Business Strategist","AIB-C01","aws-certified-ai-business-strategist",{"slug":136,"code":141,"dateBetaStart":133,"dateReleased":20,"pageSlug":142},{"id":145,"slug":146,"description":147,"questionCount":148,"isActive":9,"datePublicModified":103,"difficulty":149,"examVersion":153},21,"aws-certified-cloudops-engineer-associate-soa-c03","Prepare for the AWS Certified CloudOps Engineer - Associate exam with our practice exam simulator. Realistic questions with detailed explanations help you assess your readiness to deploy, operate and troubleshoot workloads on AWS.",862,{"providerId":12,"title":150,"subtitle":151,"slug":152,"coverImageUrl":60,"level":17},"AWS Certified CloudOps Engineer - Associate","SOA-C03","aws-certified-cloudops-engineer-associate",{"slug":146,"code":151,"dateBetaStart":20,"dateReleased":154,"pageSlug":152},"2025-09-30",{"id":156,"slug":157,"description":158,"questionCount":159,"isActive":9,"datePublicModified":160,"difficulty":161,"examVersion":165},10,"aws-certified-advanced-networking-specialty-ans-c01","The AWS Certified Advanced Networking - Specialty practice exam simulates the real test, offering scenario-based questions that assess your ability to design, implement, and troubleshoot complex AWS networking solutions. ",681,"2024-11-13T00:00:00.000Z",{"providerId":12,"title":162,"subtitle":163,"slug":164,"coverImageUrl":60,"level":33},"AWS Certified Advanced Networking - Specialty","ANS-C01","aws-certified-advanced-networking-specialty",{"slug":157,"code":163,"dateBetaStart":166,"dateReleased":167,"pageSlug":164},"2022-01-01","2022-07-12",{"id":169,"slug":170,"description":171,"questionCount":172,"isActive":9,"datePublicModified":173,"difficulty":174,"examVersion":175},6,"aws-certified-solutions-architect-professional-sap-c02","Elevate your career with the AWS Certified Solutions Architect - Professional Exam Simulator. Get ready to ace the most popular Professional AWS exam with our realistic practice exams. Assess your readiness, boost your confidence, and ensure your success.",789,"2024-06-06T00:00:00.000Z",{"providerId":12,"title":29,"subtitle":30,"slug":31,"coverImageUrl":32,"level":33},{"slug":170,"code":30,"dateBetaStart":20,"dateReleased":176,"pageSlug":20},"2022-11-15",{"id":178,"slug":179,"description":180,"questionCount":181,"isActive":9,"datePublicModified":173,"difficulty":182,"examVersion":183},7,"aws-certified-security-specialty-scs-c02","Advance your career in cloud cybersecurity with the AWS Certified Security - Specialty Exam Simulator! Tailored for professionals, this tool offers realistic practice exams to mirror the official exam.",5431,{"providerId":12,"title":117,"subtitle":118,"slug":119,"coverImageUrl":120,"level":33},{"slug":179,"code":184,"dateBetaStart":20,"dateReleased":185,"pageSlug":20},"SCS-C02","2023-07-11",[],{"slug":188,"title":189,"focus":190,"level":17,"components":191,"diagrams":217,"steps":246,"dateModified":342,"course":343,"nextLesson":344},"aws-lambda-direct-invocation-and-event-delivery-dva-c03","AWS Lambda: direct invocation and event delivery","How direct triggers pass service-specific events to a handler, and how synchronous and asynchronous invocation differ in responses, retry ownership, duplicate delivery, and failure routing.",[192,198,202,206,210,213],{"key":193,"kind":194,"name":195,"icon":196,"provider":197},"amazon-api-gateway-rest-api","part","Amazon API Gateway REST API","\u002Fimages\u002Fprovider-services\u002Famazon-api-gateway\u002Fcovers\u002FArch_Amazon-API-Gateway_64.png","AWS",{"key":199,"kind":194,"name":200,"icon":201,"provider":197},"amazon-s3-bucket","Amazon S3 bucket","\u002Fimages\u002Fprovider-services\u002Famazon-s3\u002Fcovers\u002FRes_Amazon-Simple-Storage-Service_Bucket_48.png",{"key":203,"kind":194,"name":204,"icon":205,"provider":197},"amazon-simple-queue-service-amazon-sqs-queue","Amazon SQS queue","\u002Fimages\u002Fprovider-services\u002Famazon-simple-queue-service-(amazon-sqs)\u002Fcovers\u002FRes_Amazon-Simple-Queue-Service_Queue_48.png",{"key":207,"kind":194,"name":208,"icon":209,"provider":197},"aws-lambda-event-queue","Lambda event queue","\u002Fimages\u002Fprovider-services\u002Faws-lambda\u002Fcovers\u002FArch_AWS-Lambda_64.png",{"key":211,"kind":194,"name":212,"icon":209,"provider":197},"aws-lambda-event-source-mapping","Event source mapping",{"key":214,"kind":194,"name":215,"icon":216,"provider":197},"aws-lambda-function","Lambda function","\u002Fimages\u002Fprovider-services\u002Faws-lambda\u002Fcovers\u002FRes_AWS-Lambda_Lambda-Function_48.png",[218],{"key":219,"cards":220,"groups":236,"lines":237},"direct-delivery",[221,224,227,230,233],{"key":222,"component":193,"label":223},"api","REST API with Lambda proxy integration",{"key":225,"component":199,"label":226},"bucket","Object upload bucket",{"key":228,"component":207,"label":229},"pending","Lambda-managed asynchronous queue",{"key":231,"component":214,"label":232},"function","Shared event handler",{"key":234,"component":203,"label":235},"failures","On-failure destination",[],[238,240,242,244],{"from":222,"to":231,"label":239},"synchronous request event",{"from":225,"to":228,"label":241},"object creation event",{"from":228,"to":231,"label":243},"queued event",{"from":231,"to":234,"label":245},"failure record",[247,274,287,290,308,311,321,324,329],{"kind":248,"title":249,"body":250,"diagram":219,"walkthrough":251},"explanation","Two triggers, one handler","\u003Cp>A \u003Cstrong>direct trigger\u003C\u002Fstrong> invokes a Lambda function rather than relying on Lambda to poll a source. Here, an API Gateway REST API and an S3 bucket invoke the same function independently. Lambda turns each JSON event into an object and passes it to the \u003Cstrong>handler\u003C\u002Fstrong>, the code that receives the event.\u003C\u002Fp>\u003Cp>Each invocation contains data from \u003Cstrong>one trigger\u003C\u002Fstrong>, not a blend of both. An API Gateway REST proxy event has fields such as \u003Ccode>httpMethod\u003C\u002Fcode> and \u003Ccode>path\u003C\u002Fcode>; an S3 notification has a \u003Ccode>Records\u003C\u002Fcode> array with bucket and object details. A shared handler must recognize the event shape before reading source-specific fields.\u003C\u002Fp>\u003Cp>The diagram tracks incoming events and terminal failures, not response traffic. S3 invokes Lambda directly; you don't create an SQS queue for incoming events. In contrast, a \u003Cstrong>DynamoDB stream\u003C\u002Fstrong> uses a Lambda event source mapping to poll for records.\u003C\u002Fp>",[252,255,260,266,271],{"text":253,"cards":254},"API Gateway turns an HTTP request into a REST proxy event. An S3 object creation notification produces a different event with bucket and object details.",[222,225],{"text":256,"cards":257,"lines":258},"Lambda accepts the asynchronous S3 invocation into its own managed event queue before running the handler.",[228],[259],{"from":225,"to":228},{"text":261,"cards":262,"lines":263},"The function receives the API Gateway event synchronously or the S3 notification from the asynchronous queue. The handler sees only the event for that invocation.",[231],[264,265],{"from":222,"to":231},{"from":228,"to":231},{"text":267,"cards":268,"lines":269},"When Lambda stops trying to deliver an asynchronous event, it can send a failure record to the configured SQS destination. Lambda does the sending; the handler doesn't have to run to report the failure.",[234],[270],{"from":231,"to":234},{"text":272,"cards":273},"Two direct triggers reach the same handler in different ways, and the asynchronous path has a separate outlet for failed delivery.",[],{"kind":275,"title":276,"exercise":277},"exercise","Find the asynchronous buffer",{"type":278,"diagram":219,"question":279,"hidden":280,"tray":281},"palette","Fill the empty slot with the component that holds S3 notifications after Lambda accepts them but before the handler runs.",[228],[282,283,285],{"component":207},{"component":203,"reason":284},"The SQS queue in this design receives terminal failures, not incoming S3 notifications.",{"component":211,"reason":286},"An event source mapping polls sources such as DynamoDB Streams; S3 invokes Lambda directly in this design.",{"kind":248,"title":288,"body":289},"What the caller gets back","\u003Cp>With \u003Cstrong>synchronous invocation\u003C\u002Fstrong>, the caller waits for the function result or an error. If your application calls Lambda directly, it decides what to do about a function-code error; Lambda does not automatically retry it. If an AWS service invokes synchronously, that service decides whether to retry. API Gateway relays an error response back to the requester instead of retrying the invocation.\u003C\u002Fp>\u003Cp>With \u003Cstrong>asynchronous invocation\u003C\u002Fstrong>, the caller gets an acknowledgment that Lambda accepted the event, not proof that the handler ran successfully. After acceptance, Lambda manages delivery and retries. That's why the API Gateway request in the diagram can return a result based on the handler's response, but the S3 invocation can't.\u003C\u002Fp>",{"kind":275,"title":291,"exercise":292},"Match the response and retry owner",{"type":293,"question":294,"groups":295,"statements":298},"versus","Sort each statement into synchronous or asynchronous invocation.",[296,297],"Synchronous invocation","Asynchronous invocation",[299,302,304,306],{"text":300,"group":301},"The caller waits for the function result or an error.",0,{"text":303,"group":12},"The caller gets an acknowledgment of acceptance, not the handler result.",{"text":305,"group":301},"API Gateway relays an error response to the requester rather than retrying the invocation.",{"text":307,"group":12},"After accepting the event into its queue, Lambda owns delivery retries.",{"kind":248,"title":309,"body":310},"Retries and repeat delivery","\u003Cp>For an asynchronous \u003Cstrong>function error\u003C\u002Fstrong>, including an error from the code or a runtime timeout, Lambda makes two more attempts by default. It waits one minute before the first retry and two minutes before the second. For \u003Cstrong>throttling or system errors\u003C\u002Fstrong>, Lambda returns the event to its queue and retries for up to six hours by default. The retry interval grows exponentially from one second after the first attempt to a maximum of five minutes.\u003C\u002Fp>\u003Cp>A failure is not the only reason an event can show up again. Lambda's \u003Cstrong>eventually consistent asynchronous queue\u003C\u002Fstrong> can deliver the same event more than once, even if the handler succeeds. On the synchronous path, a direct caller that chooses to retry may not know whether the first attempt ran completely, partially, or not at all.\u003C\u002Fp>\u003Cp>Make the handler \u003Cstrong>idempotent\u003C\u002Fstrong>: processing the same event again should not repeat an unwanted effect. For example, use a stable operation ID as the key for an insert that succeeds only if that key doesn't already exist. If the first attempt created the record before timing out, the retry won't create a second one.\u003C\u002Fp>",{"kind":275,"title":312,"exercise":313},"Trace a timeout retry",{"type":314,"diagram":219,"scenario":315,"path":316},"trace","The handler times out on its first attempt to process an S3 notification; trace the first retry starting at the component that manages asynchronous delivery.",[317,319],{"card":228,"note":318},"Lambda manages the retry from its own queue; S3 doesn't have to send a new notification.",{"card":231,"note":320},"By default, Lambda gives the handler the same event again after a one-minute wait.",{"kind":248,"title":322,"body":323},"Keep events that Lambda can't deliver","\u003Cp>When an asynchronous event \u003Cstrong>expires\u003C\u002Fstrong> or Lambda exhausts its attempts, configure a place to capture the failure. An \u003Cstrong>on-failure destination\u003C\u002Fstrong>, such as the SQS queue shown here, receives a record with the original request and invocation outcome details. A Lambda \u003Cstrong>dead-letter queue\u003C\u002Fstrong> retains the original event with basic error attributes rather than a full invocation record. Use the destination when you want that extra context for investigation.\u003C\u002Fp>\u003Cp>\u003Cstrong>Reserved concurrency set to zero\u003C\u002Fstrong> is a special case: Lambda sends new asynchronous events to the configured dead-letter queue or on-failure destination without retrying them. The line to the destination shows Lambda's routing on behalf of the function, not a call made by the handler. To process the diverted events later, consume them from the configured target; restoring concurrency doesn't replay them.\u003C\u002Fp>",{"kind":275,"title":325,"exercise":326},"Build both delivery paths",{"type":327,"diagram":219,"question":328},"build","Draw how API requests and S3 object creation events reach the shared handler, including how Lambda preserves terminal asynchronous failures.",{"kind":248,"title":330,"body":331,"takeaways":332},"What to remember","\u003Cp>The \u003Cstrong>trigger\u003C\u002Fstrong> determines what the handler receives, and the \u003Cstrong>invocation mode\u003C\u002Fstrong> determines who waits, who retries, and where failures go.\u003C\u002Fp>",[333,336,339],{"title":334,"text":335},"One source per event","A shared handler receives one trigger's JSON event at a time. Read it according to that source's event structure.",{"title":337,"text":338},"Know who retries","The synchronous caller owns its error response and retry decision. Lambda manages retries after accepting an asynchronous event, and handlers should tolerate repeat delivery.",{"title":340,"text":341},"Capture failed delivery","Use a dead-letter queue for the original event or an on-failure destination for a fuller record. If reserved concurrency is zero, recover diverted events from the configured target.","2026-12-02T22:04:26.216Z",{"pageSlug":15,"code":19,"certification":13,"certificationSlug":15},{"slug":345,"title":346},"message-queuing-vs-publish-subscribe-messaging-dva-c03","Message Queuing vs. Publish-Subscribe Messaging",1796288614153]