[{"data":1,"prerenderedAt":399},["ShallowReactive",2],{"practiceExams":3,"studies":186,"free-lesson-\u002Fcourses\u002Faws-certified-developer-associate\u002Flessons\u002Fasynchronous-communication-the-background-job-lifecycle-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":219,"steps":276,"dateModified":394,"course":395,"nextLesson":396},"asynchronous-communication-the-background-job-lifecycle-dva-c03","Asynchronous Communication: the background job lifecycle","How a job moves from acceptance through queued processing to a result or failure that the caller discovers by polling or notification, even when delivery is retried.",[192,198,202,206,210,215],{"key":193,"kind":194,"name":195,"icon":196,"provider":197},"amazon-api-gateway","service","Amazon API Gateway","\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-simple-notification-service-(amazon-sns)","Amazon Simple Notification Service (Amazon SNS)","\u002Fimages\u002Fprovider-services\u002Famazon-simple-notification-service-(amazon-sns)\u002Fcovers\u002FArch_Amazon-Simple-Notification-Service_64.png",{"key":203,"kind":194,"name":204,"icon":205,"provider":197},"amazon-simple-queue-service-(amazon-sqs)","Amazon Simple Queue Service (Amazon SQS)","\u002Fimages\u002Fprovider-services\u002Famazon-simple-queue-service-(amazon-sqs)\u002Fcovers\u002FArch_Amazon-Simple-Queue-Service_64.png",{"key":207,"kind":194,"name":208,"icon":209,"provider":197},"aws-lambda","AWS Lambda","\u002Fimages\u002Fprovider-services\u002Faws-lambda\u002Fcovers\u002FArch_AWS-Lambda_64.png",{"key":211,"kind":212,"name":213,"icon":214,"provider":197},"amazon-dynamodb-table","part","Amazon DynamoDB table","\u002Fimages\u002Fprovider-services\u002Famazon-dynamodb\u002Fcovers\u002FRes_Amazon-DynamoDB_Table_48.png",{"key":216,"kind":217,"name":218,"icon":20,"provider":20},"users","generic","Users",[220],{"key":221,"cards":222,"groups":250,"lines":251},"job-lifecycle",[223,226,229,232,235,238,241,244,247],{"key":224,"component":216,"label":225},"caller","Report caller",{"key":227,"component":193,"label":228},"gateway","Report API endpoint",{"key":230,"component":207,"label":231},"job-api","Job API function",{"key":233,"component":211,"label":234},"jobs","Job states and outcomes",{"key":236,"component":203,"label":237},"queue","Standard work queue",{"key":239,"component":207,"label":240},"worker","Report worker function",{"key":242,"component":203,"label":243},"dlq","Dead-letter queue",{"key":245,"component":207,"label":246},"reconciler","Failure reconciliation function",{"key":248,"component":199,"label":249},"topic","Completion topic",[],[252,254,256,258,260,262,264,266,268,270,272,274],{"from":224,"to":227,"label":253},"submit or poll",{"from":227,"to":230,"label":255},"API request",{"from":230,"to":233,"label":257},"create or read",{"from":230,"to":236,"label":259},"job ID",{"from":236,"to":239,"label":261},"work message",{"from":239,"to":233,"label":263},"job state access",{"from":236,"to":242,"label":265},"redriven message",{"from":242,"to":245,"label":267},"exhausted work message",{"from":245,"to":233,"label":269},"conditional failure update",{"from":239,"to":248,"label":271},"completion notice",{"from":245,"to":248,"label":273},"failure notice",{"from":248,"to":224,"label":275},"subscription email",[277,324,337,340,352,355,373,376,381],{"kind":278,"title":279,"body":280,"diagram":221,"walkthrough":281},"explanation","Accept the job without waiting for the result","\u003Cp>A \u003Cstrong>background job\u003C\u002Fstrong> separates submitting work from finishing it. This report API returns \u003Ccode>202 Accepted\u003C\u002Fcode> with a job ID and status URL after it creates a job record and queues the work. Acceptance means the work was handed off, not that a report exists.\u003C\u002Fp>\u003Cp>The \u003Cstrong>job ID\u003C\u002Fstrong> ties the queued message to the saved outcome, even if the message is delivered again. The diagram shows requests, deliveries, and data access. Ordinary HTTP responses return along the request path and aren't drawn separately.\u003C\u002Fp>",[282,285,290,295,301,308,314,321],{"text":283,"cards":284},"The caller submits a report job and keeps the returned job ID and status URL.",[224],{"text":286,"cards":287,"lines":288},"API Gateway receives job submissions and later requests to the status URL.",[227],[289],{"from":224,"to":227},{"text":291,"cards":292,"lines":293},"API Gateway invokes the Job API function to handle either kind of request.",[230],[294],{"from":227,"to":230},{"text":296,"cards":297,"lines":298},"On submission, the function creates the job record in DynamoDB and sends the job ID to the SQS work queue. On a status request, it reads the existing record without sending another work message.",[233,236],[299,300],{"from":230,"to":233},{"from":230,"to":236},{"text":302,"cards":303,"lines":304},"Lambda polls the work queue and invokes the worker, which checks the job record and saves a result or a final error. If processing keeps failing and the message reaches the work queue's redrive limit, SQS moves it to the dead-letter queue.",[239,242],[305,306,307],{"from":236,"to":239},{"from":239,"to":233},{"from":236,"to":242},{"text":309,"cards":310,"lines":311},"Lambda polls the dead-letter queue and invokes the reconciliation function with the message. Using the job ID, the function records a retry-exhausted failure only if the job has no final outcome.",[245],[312,313],{"from":242,"to":245},{"from":245,"to":233},{"text":315,"cards":316,"lines":317},"After saving a final outcome, the worker or reconciliation function publishes a notice to SNS. SNS emails the notice to the caller's confirmed subscription.",[248],[318,319,320],{"from":239,"to":248},{"from":245,"to":248},{"from":248,"to":224},{"text":322,"cards":323},"The queue carries the work, the job record holds the outcome, and the caller discovers it by polling or receiving a notification.",[],{"kind":325,"title":326,"exercise":327},"exercise","Place the job record",{"type":328,"diagram":221,"question":329,"hidden":330,"tray":331},"palette","Fill the empty slot with the component that stores the outcome the status API looks up by job ID.",[233],[332,333,335],{"component":211},{"component":203,"reason":334},"SQS holds messages for processing, not a job record the status API can look up by ID.",{"component":199,"reason":336},"SNS delivers notices to subscribers rather than storing an outcome for the status API.",{"kind":278,"title":338,"body":339},"Make a second delivery safe","\u003Cp>An SQS standard queue provides \u003Cstrong>at-least-once delivery\u003C\u002Fstrong>, so the worker can receive the same message more than once. For example, the worker can save a result and then stop before reporting success. If Lambda doesn't delete the message, it can be delivered again after the visibility timeout.\u003C\u002Fp>\u003Cp>Use the \u003Cstrong>job ID\u003C\u002Fstrong> as an idempotency key. If the record already has a final outcome, the worker skips the work and reports successful handling so Lambda can delete the message. If the job is not final, the worker uses a conditional update to claim it for a limited time. Only the worker with a valid claim can write its outcome, and only while the record is still nonfinal. This prevents a late attempt from overwriting a final result.\u003C\u002Fp>",{"kind":325,"title":341,"exercise":342},"Follow a duplicate message",{"type":343,"diagram":221,"scenario":344,"path":345},"trace","Trace a second delivery of a job message whose result is already saved.",[346,348,350],{"card":236,"note":347},"The queue supplies another delivery with the same job ID.",{"card":239,"note":349},"The worker uses the job ID to check the record before running the report again.",{"card":233,"note":351},"The saved result tells the worker to skip the work and report successful handling.",{"kind":278,"title":353,"body":354},"Let the caller discover the outcome","\u003Cp>With \u003Cstrong>polling\u003C\u002Fstrong>, the caller sends a request to the status URL. A queued or running state means there is no final outcome yet. A succeeded or failed state lets the caller read the saved result or error. Checking more often can shorten the wait to discover completion, but adds API requests.\u003C\u002Fp>\u003Cp>With \u003Cstrong>notification\u003C\u002Fstrong>, a function publishes the job ID and final state after saving the outcome, and SNS delivers the notice to the subscribed caller. The caller can then fetch the details without repeatedly checking. Saving the outcome and publishing the notice are separate actions: if publishing is missed, the status URL can still return the saved outcome.\u003C\u002Fp>",{"kind":325,"title":356,"exercise":357},"Sort the two ways to discover completion",{"type":358,"question":359,"groups":360,"statements":363},"versus","Sort each statement into Polling or Notification.",[361,362],"Polling","Notification",[364,367,369,371],{"text":365,"group":366},"The caller asks the status URL whether the job is still running.",0,{"text":368,"group":12},"SNS sends a completion notice to a confirmed subscriber.",{"text":370,"group":366},"Checking more often adds status API requests.",{"text":372,"group":12},"The completion message can arrive without the caller first asking for status.",{"kind":278,"title":374,"body":375},"Turn exhausted retries into a visible failure","\u003Cp>A \u003Cstrong>final job failure\u003C\u002Fstrong> is an outcome the worker can save, such as an error saying the report type is unsupported. Once it records that outcome, the message has been handled even though the job failed. A temporary dependency outage is different: the worker reports a processing error so the message can be retried.\u003C\u002Fp>\u003Cp>A \u003Cstrong>dead-letter queue\u003C\u002Fstrong> isolates messages that exhaust the work queue's retries, but moving a message there doesn't change the job's status. The reconciliation function uses the job ID to set \u003Ccode>FAILED\u003C\u002Fcode> with a retry-exhausted error only if no final outcome exists. If it makes that change, it publishes a failure notice. If the worker already saved an outcome, the function leaves it alone; if reconciliation writes first, the worker's guarded update can't overwrite it.\u003C\u002Fp>",{"kind":325,"title":377,"exercise":378},"Build the background job lifecycle",{"type":379,"diagram":221,"question":380},"build","Draw the report job lifecycle from acceptance through queued processing and retry exhaustion, showing how the final outcome is preserved and how the caller discovers it.",{"kind":278,"title":382,"body":383,"takeaways":384},"What to remember","\u003Cp>The \u003Cstrong>job record\u003C\u002Fstrong> tells the caller how the work ended; neither acceptance nor queue delivery does.\u003C\u002Fp>",[385,388,391],{"title":386,"text":387},"Acceptance is a handoff","Return a job ID and status URL after recording and queueing the work. A 202 response does not mean the job succeeded.",{"title":389,"text":390},"Protect the final outcome","Use the job ID to handle duplicates and save outcomes before acknowledging work. Reconcile dead-letter messages so exhausted retries don't leave jobs stuck in a nonfinal state.",{"title":392,"text":393},"Make completion discoverable","Polling reads the saved state; notification tells the caller when to look. The saved result or error remains available through the status API even if a notice is missed.","2026-12-02T21:40:01.522Z",{"pageSlug":15,"code":19,"certification":13,"certificationSlug":15},{"slug":397,"title":398},"asynchronous-communication-vs-event-driven-architecture-dva-c03","Asynchronous Communication vs. Event-Driven Architecture",1796288613741]