[{"data":1,"prerenderedAt":327},["ShallowReactive",2],{"practiceExams":3,"studies":186,"free-lesson-\u002Fcourses\u002Faws-certified-developer-associate\u002Flessons\u002Fidempotency-vs-retry-policies-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":211,"steps":230,"dateModified":322,"course":323,"nextLesson":324},"idempotency-vs-retry-policies-dva-c03","Idempotency vs. retry policies","Why a retry policy controls when and how often Lambda processing is reattempted, but idempotency determines whether those attempts repeat a side effect.",[192,198,202,206],{"key":193,"kind":194,"name":195,"icon":196,"provider":197},"amazon-eventbridge","service","Amazon EventBridge","\u002Fimages\u002Fprovider-services\u002Famazon-eventbridge\u002Fcovers\u002FArch_Amazon-EventBridge_64.png","AWS",{"key":199,"kind":194,"name":200,"icon":201,"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":203,"kind":194,"name":204,"icon":205,"provider":197},"aws-lambda","AWS Lambda","\u002Fimages\u002Fprovider-services\u002Faws-lambda\u002Fcovers\u002FArch_AWS-Lambda_64.png",{"key":207,"kind":208,"name":209,"icon":210,"provider":197},"amazon-dynamodb-table","part","Amazon DynamoDB table","\u002Fimages\u002Fprovider-services\u002Famazon-dynamodb\u002Fcovers\u002FRes_Amazon-DynamoDB_Table_48.png",[212],{"key":213,"cards":214,"groups":224,"lines":225},"async-lambda-retry",[215,218,221],{"key":216,"component":203,"label":217},"event-queue","Lambda asynchronous event queue",{"key":219,"component":203,"label":220},"handler","Mark job complete",{"key":222,"component":207,"label":223},"jobs","Jobs table",[],[226,228],{"from":216,"to":219,"label":227},"Policy-governed attempts",{"from":219,"to":222,"label":229},"Set status COMPLETE",[231,252,265,268,286,289,301,304,309],{"kind":232,"title":233,"body":234,"diagram":213,"walkthrough":235},"explanation","One event can lead to more than one attempt","\u003Cp>When you invoke \u003Cstrong>AWS Lambda asynchronously\u003C\u002Fstrong>, Lambda accepts the event into its own queue without waiting for the function to finish. Lambda processes the queued event separately. If the function fails, Lambda can invoke it again with the same event.\u003C\u002Fp>\u003Cp>Here, a job-completion event carries the job ID. Each attempt uses that ID to set the same \u003Cstrong>Amazon DynamoDB item\u003C\u002Fstrong> to \u003Ccode>COMPLETE\u003C\u002Fcode>. The diagram shows two distinct jobs: Lambda manages the attempts, and the handler decides what each attempt writes.\u003C\u002Fp>",[236,239,244,249],{"text":237,"cards":238},"Lambda holds the accepted event in its own asynchronous event queue.",[216],{"text":240,"cards":241,"lines":242},"Lambda invokes the handler with the queued event and can invoke it again with that same event under its retry policy.",[219],[243],{"from":216,"to":219},{"text":245,"cards":246,"lines":247},"The handler uses the event's job ID to update one item in the Jobs table, setting its status to COMPLETE.",[222],[248],{"from":219,"to":222},{"text":250,"cards":251},"The same event can run the handler more than once without changing the job's status beyond COMPLETE.",[],{"kind":253,"title":254,"exercise":255},"exercise","Find the event queue",{"type":256,"diagram":213,"question":257,"hidden":258,"tray":259},"palette","Fill the empty slot with the component that holds an event accepted by a direct asynchronous Lambda invocation.",[216],[260,261,263],{"component":203},{"component":199,"reason":262},"An SQS queue can be a separate event source, but it is not the internal queue used by a direct asynchronous Lambda invocation.",{"component":193,"reason":264},"EventBridge can route events to Lambda, but Lambda itself holds an event accepted for asynchronous invocation.",{"kind":232,"title":266,"body":267},"The policy governs attempts; the handler governs effects","\u003Cp>A \u003Cstrong>retry policy\u003C\u002Fstrong> determines whether another attempt is eligible, when it can run, and when to stop. For asynchronous Lambda invocations, the retry schedule depends on the failure type. You can configure how many retries Lambda allows after a function error and how old a queued event can be before Lambda drops it from the queue.\u003C\u002Fp>\u003Cp>\u003Cstrong>Idempotency\u003C\u002Fstrong> means repeating the same logical request leaves the intended effect unchanged. Setting the job's status to \u003Ccode>COMPLETE\u003C\u002Fcode> again leaves it complete. Incrementing a completion counter on every invocation does not: each attempt adds to the count. The retry policy cannot make that increment safe.\u003C\u002Fp>",{"kind":253,"title":269,"exercise":270},"Separate attempts from effects",{"type":271,"question":272,"groups":273,"statements":276},"versus","Sort each statement by what it describes: the retry policy or the operation's idempotency.",[274,275],"Retry policy","Idempotency",[277,280,282,284],{"text":278,"group":279},"Limits how many retries follow a function error.",0,{"text":281,"group":12},"Keeps the job's status unchanged when the same completion request is applied again.",{"text":283,"group":279},"Governs the delay before an eligible retry.",{"text":285,"group":12},"Is lost if setting a fixed status is replaced by incrementing a counter on every invocation.",{"kind":232,"title":287,"body":288},"An invocation can fail after its write succeeds","\u003Cp>A \u003Cstrong>function timeout\u003C\u002Fstrong> tells Lambda that the invocation failed. It does not tell Lambda whether the handler's write succeeded. If DynamoDB saved \u003Ccode>COMPLETE\u003C\u002Fcode> just before the timeout, the failed invocation still left the job complete.\u003C\u002Fp>\u003Cp>On an eligible retry, the \u003Cstrong>same event\u003C\u002Fstrong> carries the same job ID. The handler can issue the update again without knowing how far the earlier attempt got. DynamoDB can receive two writes, but the intended effect is the same: that job's status is \u003Ccode>COMPLETE\u003C\u002Fcode>.\u003C\u002Fp>",{"kind":253,"title":290,"exercise":291},"Follow a retry after a successful write",{"type":292,"diagram":213,"scenario":293,"path":294},"trace","DynamoDB saves the status, then the function times out; trace the eligible retry.",[295,297,299],{"card":216,"note":296},"Lambda retries the same event because the timeout counts as a function error and the retry is still eligible.",{"card":219,"note":298},"The handler reads the same job ID and requests the same fixed status.",{"card":222,"note":300},"The write leaves the job at COMPLETE; it does not add a second completion to a counter.",{"kind":232,"title":302,"body":303},"Use both controls together","\u003Cp>Use the \u003Cstrong>retry policy\u003C\u002Fstrong> to give a failed invocation another chance to finish without retrying indefinitely. Reducing the retry limit reduces configured retries after function errors, but it does not guarantee a single delivery: asynchronous Lambda can deliver the same event more than once even without a function error.\u003C\u002Fp>\u003Cp>Make the \u003Cstrong>write safe to repeat\u003C\u002Fstrong> regardless of why the event came back. In this diagram, the event's job ID selects the same item and the handler sets a fixed status, so replay is safe for that status update. That guarantee does not automatically extend to other effects the handler adds, such as sending a notification.\u003C\u002Fp>",{"kind":253,"title":305,"exercise":306},"Build the retry-safe completion flow",{"type":307,"diagram":213,"question":308},"build","Draw the asynchronous job-completion flow so Lambda can retry a failed attempt without a repeated write changing the intended result.",{"kind":232,"title":310,"body":311,"takeaways":312},"What to remember","\u003Cp>A \u003Cstrong>retry policy\u003C\u002Fstrong> governs another attempt; \u003Cstrong>idempotency\u003C\u002Fstrong> governs what repeating the operation does.\u003C\u002Fp>",[313,316,319],{"title":314,"text":315},"Bound the attempts","Lambda's asynchronous retry behavior controls when processing is reattempted and when it stops.",{"title":317,"text":318},"An error can follow success","A timeout can mark an invocation as failed after its write has already succeeded.",{"title":320,"text":321},"Protect the effect","Setting the same item to a fixed status is safe to repeat for that status update; incrementing a counter on each attempt is not.","2026-12-02T21:32:16.258Z",{"pageSlug":15,"code":19,"certification":13,"certificationSlug":15},{"slug":325,"title":326},"retry-policies-bounded-retries-dva-c03","Retry Policies: bounded retries",1796288614771]