[{"data":1,"prerenderedAt":348},["ShallowReactive",2],{"practiceExams":3,"studies":186,"free-lesson-\u002Fcourses\u002Faws-certified-developer-associate\u002Flessons\u002Faws-step-functions-workflow-error-handling-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":214,"steps":243,"dateModified":343,"course":344,"nextLesson":345},"aws-step-functions-workflow-error-handling-dva-c03","AWS Step Functions: workflow error handling","Trace how Step Functions matches errors, including wildcard exceptions, to retry states with backoff or route failures and timeouts to a fallback, and identify which failures must be handled at the execution level.",[192,198,202,206,210],{"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-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":194,"name":212,"icon":213,"provider":197},"aws-step-functions","AWS Step Functions","\u002Fimages\u002Fprovider-services\u002Faws-step-functions\u002Fcovers\u002FArch_AWS-Step-Functions_64.png",[215],{"key":216,"cards":217,"groups":233,"lines":234},"workflow-recovery",[218,221,224,227,230],{"key":219,"component":211,"label":220},"workflow","Standard workflow",{"key":222,"component":207,"label":223},"primary","Fetch inventory",{"key":225,"component":207,"label":226},"fallback","Return unknown availability",{"key":228,"component":193,"label":229},"events","Execution status routing",{"key":231,"component":207,"label":232},"handler","Handle failed execution",[],[235,237,239,241],{"from":219,"to":222,"label":236},"task attempts",{"from":219,"to":225,"label":238},"wildcard-caught errors",{"from":219,"to":228,"label":240},"execution status events",{"from":228,"to":231,"label":242},"failure events",[244,275,288,291,301,304,322,325,330],{"kind":245,"title":246,"body":247,"diagram":216,"walkthrough":248},"explanation","Recover inside or outside the workflow","\u003Cp>By default, an error reported by a state fails the \u003Cstrong>entire execution\u003C\u002Fstrong>. A Step Functions workflow can instead handle a task error inside the current run: retry the work or move to a fallback that returns a useful result with less information.\u003C\u002Fp>\u003Cp>This \u003Cstrong>Standard workflow\u003C\u002Fstrong> tries to fetch inventory. If it cannot, it can return “availability unknown” rather than report that an item is out of stock. The diagram shows outbound calls and events, not task responses. It also shows a separate handler for failures that end the run.\u003C\u002Fp>",[249,252,257,262,267,272],{"text":250,"cards":251},"The Standard workflow runs the inventory lookup and owns the decisions about retries and fallback.",[219],{"text":253,"cards":254,"lines":255},"The inventory function receives the initial task invocation and any new attempts allowed by the task's retry policy.",[222],[256],{"from":219,"to":222},{"text":258,"cards":259,"lines":260},"If the task's wildcard catcher matches the error after retries are done, the workflow passes the error details to the fallback function, which returns “availability unknown.”",[225],[261],{"from":219,"to":225},{"text":263,"cards":264,"lines":265},"The Standard workflow sends execution status events directly to Amazon EventBridge.",[228],[266],{"from":219,"to":228},{"text":268,"cards":269,"lines":270},"An EventBridge rule forwards failed and timed-out execution events to a separate handler, which can alert an operator.",[231],[271],{"from":228,"to":231},{"text":273,"cards":274},"Retries and fallback can keep the current run going; the separate event path handles a run that has already ended unsuccessfully.",[],{"kind":276,"title":277,"exercise":278},"exercise","Place the execution-status router",{"type":279,"diagram":216,"question":280,"hidden":281,"tray":282},"palette","Fill the empty slot with the service that directly receives the Standard workflow's execution status events and routes them by status.",[228],[283,284,286],{"component":193},{"component":199,"reason":285},"An SNS topic can receive events forwarded by a rule, but it is not the direct destination for these Step Functions status events.",{"component":203,"reason":287},"An SQS queue can buffer events forwarded by a rule, but it is not the direct destination for these Step Functions status events.",{"kind":245,"title":289,"body":290},"Retry first, then look for a catcher","\u003Cp>When a Task reports an error, Step Functions checks its \u003Cstrong>Retry\u003C\u002Fstrong> rules in order. Each rule uses \u003Ccode>ErrorEquals\u003C\u002Fcode> to match the reported error name. A matching rule can run the same Task again: \u003Ccode>IntervalSeconds\u003C\u002Fcode> sets the first wait, \u003Ccode>BackoffRate\u003C\u002Fcode> multiplies the delay for each subsequent retry, and \u003Ccode>MaxAttempts\u003C\u002Fcode> caps the number of retries. A rate greater than one gives a struggling dependency more time to recover.\u003C\u002Fp>\u003Cp>If no retry matches or the matching policy is exhausted, Step Functions checks \u003Cstrong>Catch\u003C\u002Fstrong> rules in order. The first matching catcher uses its \u003Ccode>Next\u003C\u002Fcode> field to move to a recovery state. In this example, the lookup retries \u003Ccode>States.Timeout\u003C\u002Fcode>. If the task still times out, its wildcard catcher matches the timeout and passes the error details to the fallback. If nothing catches the error, the execution fails.\u003C\u002Fp>",{"kind":276,"title":292,"exercise":293},"Follow a task timeout after retries",{"type":294,"diagram":216,"scenario":295,"path":296},"trace","The inventory Task reports States.Timeout again after using all its retries; trace where the workflow sends the caught error details.",[297,299],{"card":219,"note":298},"The retry policy is exhausted, so the workflow checks Catch and matches the task timeout.",{"card":225,"note":300},"The recovery Task invokes this function to return “availability unknown” in the same execution.",{"kind":245,"title":302,"body":303},"Know what the wildcard leaves out","\u003Cp>\u003Cstrong>States.ALL\u003C\u002Fstrong> must appear alone in a catcher's \u003Ccode>ErrorEquals\u003C\u002Fcode> list. It matches ordinary errors such as an integration's \u003Ccode>Inventory.Busy\u003C\u002Fcode> or a task's \u003Ccode>States.Timeout\u003C\u002Fcode>. Do not confuse it with \u003Cstrong>States.TaskFailed\u003C\u002Fstrong>, a narrower wildcard that does not match \u003Ccode>States.Timeout\u003C\u002Fcode>.\u003C\u002Fp>\u003Cp>Two exceptions matter. \u003Cstrong>States.DataLimitExceeded\u003C\u002Fstrong> is not caught by \u003Ccode>States.ALL\u003C\u002Fcode>, but you can catch or retry it by naming it explicitly in \u003Ccode>ErrorEquals\u003C\u002Fcode>. Fixing the oversized payload is preferable to retrying it unchanged. \u003Cstrong>States.Runtime\u003C\u002Fstrong> is not caught by \u003Ccode>States.ALL\u003C\u002Fcode>, is not retryable, and always fails the execution.\u003C\u002Fp>",{"kind":276,"title":305,"exercise":306},"Sort errors by wildcard coverage",{"type":307,"question":308,"groups":309,"statements":312},"versus","Sort these errors by whether a catcher with States.ALL matches them when it is evaluated.",[310,311],"Matches States.ALL","Does not match States.ALL",[313,316,318,320],{"text":314,"group":315},"States.Timeout from the inventory Task",0,{"text":317,"group":12},"States.DataLimitExceeded from an oversized task output",{"text":319,"group":315},"Inventory.Busy returned by the integration",{"text":321,"group":12},"States.Runtime during workflow processing",{"kind":245,"title":323,"body":324},"Handle a failed run outside that run","\u003Cp>A \u003Cstrong>task timeout\u003C\u002Fstrong> can reach that task's catcher. A \u003Cstrong>whole-execution timeout\u003C\u002Fstrong> ends the run and cannot be routed to a fallback inside it. There is no top-level \u003Ccode>Catch\u003C\u002Fcode> for the execution itself. An uncaught state error and a \u003Ccode>States.Runtime\u003C\u002Fcode> failure also need a response outside the failed run.\u003C\u002Fp>\u003Cp>For the Standard workflow shown here, an \u003Cstrong>EventBridge rule\u003C\u002Fstrong> selects execution status events marked \u003Ccode>FAILED\u003C\u002Fcode> or \u003Ccode>TIMED_OUT\u003C\u002Fcode> and sends them to a separate Lambda handler. That handler can report the failure, but it is not a fallback state and cannot continue the ended run. Step Functions delivers these events on a best-effort basis, so use execution status reconciliation if you must account for every failed run.\u003C\u002Fp>",{"kind":276,"title":326,"exercise":327},"Build both recovery paths",{"type":328,"diagram":216,"question":329},"build","Draw the outbound flows for the inventory workflow, including lookup attempts, the in-run fallback for a caught task error, and the separate response when an execution fails or times out.",{"kind":245,"title":331,"body":332,"takeaways":333},"What to remember","\u003Cp>Decide first whether the \u003Cstrong>current run can recover\u003C\u002Fstrong> or whether the failure needs a response outside it.\u003C\u002Fp>",[334,337,340],{"title":335,"text":336},"Retry before Catch","A matching retrier repeats the same state, with backoff if configured. If retries are exhausted or none match, a matching catcher moves the run to a fallback.",{"title":338,"text":339},"Wildcards have exceptions","States.ALL stands alone in a catcher and misses States.DataLimitExceeded and States.Runtime. Name States.DataLimitExceeded explicitly to catch or retry it; States.Runtime always fails the run.",{"title":341,"text":342},"Handle ended runs separately","A task timeout can be caught inside the workflow, but a whole-execution timeout cannot. For Standard workflows, EventBridge can route failed and timed-out execution events to an external handler.","2026-12-02T21:32:15.748Z",{"pageSlug":15,"code":19,"certification":13,"certificationSlug":15},{"slug":346,"title":347},"request-validation-api-gateway-request-validators-dva-c03","Request Validation: API Gateway request validators",1796288614266]