[{"data":1,"prerenderedAt":341},["ShallowReactive",2],{"practiceExams":3,"studies":186,"free-lesson-\u002Fcourses\u002Faws-certified-developer-associate\u002Flessons\u002Faws-lambda-sqs-event-source-mappings-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":210,"steps":236,"dateModified":336,"course":337,"nextLesson":338},"aws-lambda-sqs-event-source-mappings-dva-c03","AWS Lambda: SQS event source mappings","How a Lambda event source mapping polls SQS instead of receiving a direct invocation, and how visibility timeouts and partial batch responses determine which messages are retried.",[192,198,202,206],{"key":193,"kind":194,"name":195,"icon":196,"provider":197},"amazon-simple-queue-service-amazon-sqs-dead-letter-queue","part","Dead-letter queue","\u002Fimages\u002Fprovider-services\u002Famazon-simple-queue-service-(amazon-sqs)\u002Fcovers\u002FArch_Amazon-Simple-Queue-Service_64.png","AWS",{"key":199,"kind":194,"name":200,"icon":201,"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":203,"kind":194,"name":204,"icon":205,"provider":197},"aws-lambda-event-source-mapping","Event source mapping","\u002Fimages\u002Fprovider-services\u002Faws-lambda\u002Fcovers\u002FArch_AWS-Lambda_64.png",{"key":207,"kind":194,"name":208,"icon":209,"provider":197},"aws-lambda-function","Lambda function","\u002Fimages\u002Fprovider-services\u002Faws-lambda\u002Fcovers\u002FRes_AWS-Lambda_Lambda-Function_48.png",[211],{"key":212,"cards":213,"groups":226,"lines":227},"sqs-lambda-flow",[214,217,220,223],{"key":215,"component":199,"label":216},"source","Source queue",{"key":218,"component":203,"label":219},"mapping","SQS event source mapping",{"key":221,"component":207,"label":222},"handler","Batch handler",{"key":224,"component":193,"label":225},"dlq","Source queue’s dead-letter queue",[],[228,230,232,234],{"from":215,"to":218,"label":229},"polled messages",{"from":218,"to":221,"label":231},"batch invocation",{"from":221,"to":218,"label":233},"failed message IDs",{"from":215,"to":224,"label":235},"redriven messages",[237,241,259,285,297,300,315,318,323],{"kind":238,"title":239,"body":240},"explanation","Find out who starts the invocation","\u003Cp>With a \u003Cstrong>direct trigger\u003C\u002Fstrong>, the service that produces the event stores and manages the trigger and pushes the event to Lambda. For example, Amazon S3 can invoke a function directly when an object is created or deleted. Even if you set up the trigger in the Lambda console, the trigger is managed by S3.\u003C\u002Fp>\u003Cp>With an \u003Cstrong>event source mapping\u003C\u002Fstrong>, Lambda owns the resource that makes the connection. Its pollers actively read from a queue or stream and invoke the function with a batch of records. For SQS, that means the queue holds messages for Lambda to fetch rather than calling the function itself.\u003C\u002Fp>",{"kind":242,"title":243,"exercise":244},"exercise","Tell push from pull",{"type":245,"question":246,"groups":247,"statements":249},"versus","Sort each statement under Direct trigger or Event source mapping.",[248,204],"Direct trigger",[250,253,255,257],{"text":251,"group":252},"The event-producing service stores and manages the trigger.",0,{"text":254,"group":12},"A Lambda resource actively polls a queue or stream.",{"text":256,"group":252},"S3 pushes an object-created event to Lambda.",{"text":258,"group":12},"Lambda fetches messages from SQS and invokes a function with a batch.",{"kind":238,"title":260,"body":261,"diagram":212,"walkthrough":262},"Follow an SQS batch into the handler","\u003Cp>Connect the \u003Cstrong>source queue\u003C\u002Fstrong> to the function through an \u003Cstrong>event source mapping\u003C\u002Fstrong>. The mapping does the polling and invokes the function; the handler processes the records it receives instead of polling the queue itself.\u003C\u002Fp>\u003Cp>This diagram follows the messages and the handler’s result. It also shows where the source queue sends messages that reach its redrive threshold. The return arrow represents a \u003Cstrong>partial batch response\u003C\u002Fstrong>, which lets the handler report failures by message ID.\u003C\u002Fp>",[263,266,271,277,282],{"text":264,"cards":265},"The source queue holds messages until they are received.",[215],{"text":267,"cards":268,"lines":269},"The event source mapping polls the source queue and collects messages into a batch. The arrow shows the messages coming back from the poll, not the queue pushing an invocation.",[218],[270],{"from":215,"to":218},{"text":272,"cards":273,"lines":274},"The mapping invokes the function with the batch. With partial batch reporting enabled, the handler returns the IDs of failed messages rather than failing the entire invocation.",[221],[275,276],{"from":218,"to":221},{"from":221,"to":218},{"text":278,"cards":279,"lines":280},"The source queue’s redrive policy moves messages to its dead-letter queue when they reach the configured receive threshold.",[224],[281],{"from":215,"to":224},{"text":283,"cards":284},"The mapping handles delivery to the function and interprets the batch result, while the source queue controls redrive.",[],{"kind":242,"title":286,"exercise":287},"Trace a delivery from SQS",{"type":288,"diagram":212,"scenario":289,"path":290},"trace","A message is waiting in SQS; follow it until the handler receives it.",[291,293,295],{"card":215,"note":292},"The source queue holds the message; it does not invoke the function.",{"card":218,"note":294},"The mapping reads the message by polling the queue.",{"card":221,"note":296},"The function receives the message as a record in a batch invocation.",{"kind":238,"title":298,"body":299},"Separate retry timing from failure routing","\u003Cp>When SQS delivers a message to a poller, the queue’s \u003Cstrong>visibility timeout\u003C\u002Fstrong> temporarily hides it from other receives. If processing fails and the message is not deleted, it becomes eligible to be received again when that timeout expires. That is when a retry can happen, not a guarantee that the next poll happens at that instant.\u003C\u002Fp>\u003Cp>If Lambda is \u003Cstrong>throttled\u003C\u002Fstrong>, it backs off by reducing the concurrency allocated to the mapping. Lambda keeps retrying the throttled delivery within the visibility window, then drops that delivery attempt when the window expires. Dropping the attempt is not the same as deleting the message from SQS.\u003C\u002Fp>\u003Cp>The source queue’s \u003Cstrong>redrive policy\u003C\u002Fstrong> controls where repeatedly received messages go. Configure the dead-letter queue on the source queue so that SQS handles redrive when the configured receive threshold is reached.\u003C\u002Fp>",{"kind":242,"title":301,"exercise":302},"Fix the redrive target",{"type":303,"diagram":212,"requirement":304,"change":305,"tray":306,"hint":313,"explanation":314},"flaw","The source queue must retain repeatedly failed messages in a separate queue through its own redrive policy.",{"card":224,"component":207},[307,309,311],{"component":193,"reason":308},"An SQS dead-letter queue can receive messages moved by the source queue’s redrive policy.",{"component":207,"reason":310},"The function processes the batch; it is not a queue that stores redriven messages.",{"component":203,"reason":312},"The mapping polls and invokes; it is not a queue that stores redriven messages.","Look for the SQS resource that holds messages after redrive, not the resource that invokes or runs the handler.","SQS moves the messages from the source queue to its dead-letter queue according to the source queue’s redrive policy.",{"kind":238,"title":316,"body":317},"Report failed messages without failing the batch","\u003Cp>\u003Cstrong>By default, a failed batch is retried as a whole.\u003C\u002Fstrong> If the handler processes one message successfully and then fails on another, both messages can become visible again. Lambda does not infer which records finished from the work the handler did before it failed.\u003C\u002Fp>\u003Cp>To retry only the failed messages, enable \u003Cstrong>partial batch responses\u003C\u002Fstrong> on the mapping with \u003Ccode>ReportBatchItemFailures\u003C\u002Fcode>. In the handler, catch record-processing exceptions and return a \u003Ccode>batchItemFailures\u003C\u002Fcode> list with each failed SQS message ID as an \u003Ccode>itemIdentifier\u003C\u002Fcode>. If an exception escapes the handler, Lambda treats the entire batch as failed rather than getting that list.\u003C\u002Fp>\u003Cp>For example, if message A succeeds and message B fails, return \u003Ccode>{\"batchItemFailures\":[{\"itemIdentifier\":\"B\"}]}\u003C\u002Fcode>, assuming \u003Ccode>B\u003C\u002Fcode> is the actual message ID. Only B is left for retry after the visibility timeout. If B keeps coming back and reaches the receive threshold, the source queue’s redrive policy still applies.\u003C\u002Fp>",{"kind":242,"title":319,"exercise":320},"Build the delivery and retry flow",{"type":321,"diagram":212,"question":322},"build","Draw the SQS-to-Lambda design that processes batches, retries only reported failures, and retains repeatedly failed messages for inspection.",{"kind":238,"title":324,"body":325,"takeaways":326},"What to remember","\u003Cp>With SQS, \u003Cstrong>Lambda pulls the work\u003C\u002Fstrong>, the handler can identify which messages need another try, and the source queue governs when they become available again and where they go after repeated receives.\u003C\u002Fp>",[327,330,333],{"title":328,"text":329},"The mapping pulls","Lambda’s event source mapping polls SQS and invokes the function with a batch. A direct trigger instead pushes from the event-producing service.",{"title":331,"text":332},"The queue governs retries","Visibility timeout controls when an undeleted message can be received again. The source queue’s redrive policy controls when it moves to a dead-letter queue.",{"title":334,"text":335},"Report failures by ID","A failed invocation makes the whole batch eligible for retry by default. Enable partial batch responses and return failed message IDs so successful records are not retried with them.","2026-12-02T21:52:12.020Z",{"pageSlug":15,"code":19,"certification":13,"certificationSlug":15},{"slug":339,"title":340},"message-queuing-vs-publish-subscribe-messaging-dva-c03","Message Queuing vs. Publish-Subscribe Messaging",1796288613905]