[{"data":1,"prerenderedAt":391},["ShallowReactive",2],{"practiceExams":3,"studies":184,"free-lesson-\u002Fcourses\u002Faws-certified-generative-ai-developer-professional\u002Flessons\u002Faws-step-functions-failure-recovery-and-circuit-breakers-aip-c01":185},[4,22,36,48,60,72,84,97,109,120,130,141,154,163,175],{"id":5,"slug":6,"description":7,"questionCount":8,"isActive":9,"datePublicModified":10,"difficulty":11,"examVersion":18},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,true,"2026-11-15T00:00:00.000Z",{"providerId":12,"title":13,"subtitle":14,"slug":15,"coverImageUrl":16,"level":17},1,"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":6,"code":19,"dateBetaStart":20,"dateReleased":21,"pageSlug":15},"SAP-C03",null,"2026-11-17",{"id":23,"slug":24,"description":25,"questionCount":26,"isActive":9,"datePublicModified":27,"difficulty":28,"examVersion":34},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":29,"subtitle":30,"slug":31,"coverImageUrl":32,"level":33},"AWS Certified Cloud Practitioner","CLF-C02","aws-certified-cloud-practitioner","\u002Fimages\u002Fdifficulties\u002Faws-certified-cloud-practitionerclf-c02\u002Fcovers\u002Faws-CLF-C02.png","foundational",{"slug":24,"code":30,"dateBetaStart":20,"dateReleased":35,"pageSlug":31},"2023-09-19",{"id":37,"slug":38,"description":39,"questionCount":40,"isActive":9,"datePublicModified":27,"difficulty":41,"examVersion":46},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":42,"subtitle":43,"slug":44,"coverImageUrl":45,"level":17},"AWS Certified DevOps Engineer - Professional","DOP-C02","aws-certified-devops-engineer-professional","",{"slug":38,"code":43,"dateBetaStart":20,"dateReleased":47,"pageSlug":44},"2023-03-07",{"id":49,"slug":50,"description":51,"questionCount":52,"isActive":9,"datePublicModified":27,"difficulty":53,"examVersion":57},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":54,"subtitle":55,"slug":56,"coverImageUrl":45,"level":33},"AWS Certified AI Practitioner","AIF-C01","aws-certified-ai-practitioner",{"slug":50,"code":55,"dateBetaStart":58,"dateReleased":59,"pageSlug":56},"2024-08-13","2024-10-22",{"id":12,"slug":61,"description":62,"questionCount":63,"isActive":9,"datePublicModified":27,"difficulty":64,"examVersion":70},"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":65,"subtitle":66,"slug":67,"coverImageUrl":68,"level":69},"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","associate",{"slug":61,"code":66,"dateBetaStart":20,"dateReleased":71,"pageSlug":67},"2022-08-30",{"id":73,"slug":74,"description":75,"questionCount":76,"isActive":9,"datePublicModified":27,"difficulty":77,"examVersion":81},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":78,"subtitle":79,"slug":80,"coverImageUrl":45,"level":69},"AWS Certified Data Engineer - Associate","DEA-C01","aws-certified-data-engineer-associate",{"slug":74,"code":79,"dateBetaStart":82,"dateReleased":83,"pageSlug":80},"2023-11-27","2024-03-12",{"id":85,"slug":86,"description":87,"questionCount":88,"isActive":9,"datePublicModified":89,"difficulty":90,"examVersion":94},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":91,"subtitle":92,"slug":93,"coverImageUrl":45,"level":17},"AWS Certified Generative AI Developer - Professional","AIP-C01","aws-certified-generative-ai-developer-professional",{"slug":86,"code":92,"dateBetaStart":95,"dateReleased":96,"pageSlug":93},"2025-11-28","2026-03-17",{"id":98,"slug":99,"description":100,"questionCount":101,"isActive":9,"datePublicModified":89,"difficulty":102,"examVersion":107},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":103,"subtitle":104,"slug":105,"coverImageUrl":106,"level":17},"AWS Certified Security - Specialty","SCS-C03","aws-certified-security-specialty","\u002Fimages\u002Fdifficulties\u002Faws-certified-security-specialtyscs-c02\u002Fcovers\u002Faws_SCS_c02.png",{"slug":99,"code":104,"dateBetaStart":20,"dateReleased":108,"pageSlug":105},"2025-12-01",{"id":110,"slug":111,"description":112,"questionCount":113,"isActive":9,"datePublicModified":89,"difficulty":114,"examVersion":118},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":115,"subtitle":116,"slug":117,"coverImageUrl":45,"level":69},"AWS Certified Machine Learning Engineer - Associate","MLA-C02","aws-certified-machine-learning-engineer-associate",{"slug":111,"code":116,"dateBetaStart":119,"dateReleased":20,"pageSlug":117},"2026-09-29",{"id":121,"slug":122,"description":123,"questionCount":124,"isActive":9,"datePublicModified":89,"difficulty":125,"examVersion":129},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":126,"subtitle":127,"slug":128,"coverImageUrl":45,"level":33},"AWS Certified AI Business Strategist","AIB-C01","aws-certified-ai-business-strategist",{"slug":122,"code":127,"dateBetaStart":119,"dateReleased":20,"pageSlug":128},{"id":131,"slug":132,"description":133,"questionCount":134,"isActive":9,"datePublicModified":89,"difficulty":135,"examVersion":139},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":136,"subtitle":137,"slug":138,"coverImageUrl":45,"level":69},"AWS Certified CloudOps Engineer - Associate","SOA-C03","aws-certified-cloudops-engineer-associate",{"slug":132,"code":137,"dateBetaStart":20,"dateReleased":140,"pageSlug":138},"2025-09-30",{"id":142,"slug":143,"description":144,"questionCount":145,"isActive":9,"datePublicModified":146,"difficulty":147,"examVersion":151},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":148,"subtitle":149,"slug":150,"coverImageUrl":45,"level":17},"AWS Certified Advanced Networking - Specialty","ANS-C01","aws-certified-advanced-networking-specialty",{"slug":143,"code":149,"dateBetaStart":152,"dateReleased":153,"pageSlug":150},"2022-01-01","2022-07-12",{"id":155,"slug":156,"description":157,"questionCount":158,"isActive":9,"datePublicModified":159,"difficulty":160,"examVersion":161},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":13,"subtitle":14,"slug":15,"coverImageUrl":16,"level":17},{"slug":156,"code":14,"dateBetaStart":20,"dateReleased":162,"pageSlug":20},"2022-11-15",{"id":164,"slug":165,"description":166,"questionCount":167,"isActive":9,"datePublicModified":159,"difficulty":168,"examVersion":173},4,"aws-certified-developer-associate-dva-c02","Unlock your potential as a software developer with the AWS Certified Developer - Associate Exam Simulator! Prepare thoroughly with realistic practice exams designed to mirror the official exam.",399,{"providerId":12,"title":169,"subtitle":170,"slug":171,"coverImageUrl":172,"level":69},"AWS Certified Developer - Associate","DVA-C02","aws-certified-developer-associate","\u002Fimages\u002Fdifficulties\u002Faws-certified-developer-associatedva-c02\u002Fcovers\u002Faws-DVA-C02.png",{"slug":165,"code":170,"dateBetaStart":20,"dateReleased":174,"pageSlug":171},"2023-02-28",{"id":176,"slug":177,"description":178,"questionCount":179,"isActive":9,"datePublicModified":159,"difficulty":180,"examVersion":181},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":103,"subtitle":104,"slug":105,"coverImageUrl":106,"level":17},{"slug":177,"code":182,"dateBetaStart":20,"dateReleased":183,"pageSlug":20},"SCS-C02","2023-07-11",[],{"slug":186,"title":187,"focus":188,"level":17,"components":189,"diagrams":228,"steps":257,"dateModified":386,"course":387,"nextLesson":388},"aws-step-functions-failure-recovery-and-circuit-breakers-aip-c01","AWS Step Functions: failure recovery and circuit breakers","How retry policies, error handlers, timeouts, and externally persisted circuit-breaker state prevent cascading failures and select fallback paths.",[190,195,199,203,207,211,215,219,224],{"key":191,"kind":192,"name":193,"icon":20,"provider":194},"amazon-bedrock","service","Amazon Bedrock","AWS",{"key":196,"kind":192,"name":197,"icon":198,"provider":194},"amazon-cloudwatch","Amazon CloudWatch","\u002Fimages\u002Fprovider-services\u002Famazon-cloudwatch\u002Fcovers\u002FArch_Amazon-CloudWatch_64.png",{"key":200,"kind":192,"name":201,"icon":202,"provider":194},"amazon-comprehend","Amazon Comprehend","\u002Fimages\u002Fprovider-services\u002Famazon-comprehend\u002Fcovers\u002FArch_Amazon-Comprehend_64.png",{"key":204,"kind":192,"name":205,"icon":206,"provider":194},"amazon-sagemaker","Amazon SageMaker","\u002Fimages\u002Fprovider-services\u002Famazon-sagemaker\u002Fcovers\u002FArch_Amazon-SageMaker_64.png",{"key":208,"kind":192,"name":209,"icon":210,"provider":194},"aws-appconfig","AWS AppConfig","\u002Fimages\u002Fprovider-services\u002Faws-appconfig\u002Fcovers\u002FArch_AWS-AppConfig_64.png",{"key":212,"kind":192,"name":213,"icon":214,"provider":194},"aws-lambda","AWS Lambda","\u002Fimages\u002Fprovider-services\u002Faws-lambda\u002Fcovers\u002FArch_AWS-Lambda_64.png",{"key":216,"kind":192,"name":217,"icon":218,"provider":194},"aws-step-functions","AWS Step Functions","\u002Fimages\u002Fprovider-services\u002Faws-step-functions\u002Fcovers\u002FArch_AWS-Step-Functions_64.png",{"key":220,"kind":221,"name":222,"icon":223,"provider":194},"amazon-dynamodb-table","part","Amazon DynamoDB table","\u002Fimages\u002Fprovider-services\u002Famazon-dynamodb\u002Fcovers\u002FRes_Amazon-DynamoDB_Table_48.png",{"key":225,"kind":221,"name":226,"icon":227,"provider":194},"amazon-s3-bucket","Amazon S3 bucket","\u002Fimages\u002Fprovider-services\u002Famazon-s3\u002Fcovers\u002FRes_Amazon-Simple-Storage-Service_Bucket_48.png",[229],{"key":230,"cards":231,"groups":247,"lines":248},"guarded-inference",[232,235,238,241,244],{"key":233,"component":216,"label":234},"workflow","Bounded retries, handlers, fallback routing",{"key":236,"component":212,"label":237},"guard","Circuit guard and inference wrapper",{"key":239,"component":220,"label":240},"breaker","Shared breaker state and probe lease",{"key":242,"component":191,"label":243},"primary","Primary InvokeModel endpoint",{"key":245,"component":225,"label":246},"fallback","Approved, precomputed fallback",[],[249,251,253,255],{"from":233,"to":236,"label":250},"guarded request",{"from":236,"to":239,"label":252},"breaker operations",{"from":236,"to":242,"label":254},"admitted inference",{"from":233,"to":245,"label":256},"fallback read",[258,284,295,325,342,345,360,363,373],{"kind":259,"title":260,"body":261,"table":262},"explanation","Bound recovery before adding retries","\u003Cp>A failed Task first goes through its matching \u003Cstrong>Retry\u003C\u002Fstrong> policy. Step Functions scans retriers in order and uses the first matching one. Only when retries are unavailable or exhausted does it scan \u003Cstrong>Catch\u003C\u002Fstrong> handlers in order. Put specific errors before broad matches; \u003Ccode>States.ALL\u003C\u002Fcode> must appear alone and last in its array. Retry transient failures, not invalid requests or authorization failures.\u003C\u002Fp>\u003Cp>\u003Cstrong>MaxAttempts\u003C\u002Fstrong> counts retries after the initial attempt. \u003Ccode>IntervalSeconds\u003C\u002Fcode> and \u003Ccode>BackoffRate\u003C\u002Fcode> control increasing delays; \u003Ccode>MaxDelaySeconds\u003C\u002Fcode> caps them, and \u003Ccode>JitterStrategy: FULL\u003C\u002Fcode> randomizes each delay within its calculated range. Bound attempts and delays together: synchronized retries can otherwise multiply pressure on an unhealthy dependency. Coordinate SDK retries with workflow retries rather than multiplying both layers unknowingly.\u003C\u002Fp>\u003Cp>A Task's \u003Cstrong>TimeoutSeconds\u003C\u002Fstrong> bounds each attempt, not the entire retry sequence. Explicitly handle \u003Ccode>States.Timeout\u003C\u002Fcode>: \u003Ccode>States.TaskFailed\u003C\u002Fcode> does not match it. An execution-level timeout is a final boundary, not an internal fallback trigger. A Task timeout also does not guarantee that downstream work stopped; use stable request identifiers and idempotent side effects because an apparently failed attempt may still finish.\u003C\u002Fp>",{"columns":263,"rows":267},[264,265,266],"Control","Bounds","Does not guarantee",[268,272,276,280],[269,270,271],"Task timeout","One attempt's wait","Remote work stopped",[273,274,275],"Retry policy","Additional attempts and delays","Shared outage suppression",[277,278,279],"Catch handler","Recovery routing","Recovery always succeeds",[281,282,283],"Execution timeout","Whole execution lifetime","Internal fallback runs",{"kind":285,"title":286,"exercise":287},"exercise","Follow one failure through its handlers",{"type":288,"question":289,"steps":290},"process","Order the handling of a Task failure that matches a retrier, fails again on every permitted retry, and ultimately matches a catcher.",[291,292,293,294],"The Task fails and Step Functions selects the first matching retrier.","Step Functions waits and retries until the permitted retries are exhausted.","Step Functions selects the first matching catcher.","Execution transitions to that catcher's recovery state.",{"kind":259,"title":296,"body":297,"diagram":230,"walkthrough":298},"Put a shared admission gate before inference","\u003Cp>A \u003Cstrong>retry policy\u003C\u002Fstrong> handles failure within one execution; a \u003Cstrong>circuit breaker\u003C\u002Fstrong> suppresses calls across executions. Step Functions has no built-in shared circuit-breaker state. This design stores that state externally and invokes a Lambda guard before every primary attempt. The diagram shows application-level calls only; response arrows and internal workflow transitions are omitted.\u003C\u002Fp>\u003Cp>The primary interface here is Amazon Bedrock's \u003Cstrong>InvokeModel\u003C\u002Fstrong> API, not a custom-hosted model endpoint or a text-analysis API. Recovery reads an approved, precomputed object rather than generating another answer. The wrapper owns all breaker access and primary calls; Step Functions owns fallback selection and reads the fallback directly. These ownership boundaries define the arrows.\u003C\u002Fp>\u003Cp>The store must support \u003Cstrong>conditional updates\u003C\u002Fstrong> for concurrent admission decisions. AWS AppConfig distributes configuration; it is not this per-request conditional counter and lease store. CloudWatch metrics support observation, not synchronous conditional admission. Likewise, SageMaker model hosting does not expose Bedrock's InvokeModel API, and Comprehend text analysis does not provide foundation-model text generation.\u003C\u002Fp>",[299,302,307,312,317,322],{"text":300,"cards":301},"Step Functions owns the overall attempt budget, error handlers, and recovery route.",[233],{"text":303,"cards":304,"lines":305},"It invokes the Lambda guard for each primary attempt. The guard decides admission before making the inference call and returns a typed circuit-open result when admission is denied.",[236],[306],{"from":233,"to":236},{"text":308,"cards":309,"lines":310},"The guard reads and conditionally updates the DynamoDB table. Records hold the dependency's breaker status, failure information, cooldown deadline, and probe lease.",[239],[311],{"from":236,"to":239},{"text":313,"cards":314,"lines":315},"Only admitted requests reach the Bedrock primary through the guard. The guard records qualifying failures and probe outcomes through its existing table connection.",[242],[316],{"from":236,"to":242},{"text":318,"cards":319,"lines":320},"Step Functions reads the approved fallback object from S3 when the guard reports an open circuit or a handled primary failure requires degradation.",[245],[321],{"from":233,"to":245},{"text":323,"cards":324},"Every primary attempt passes through shared admission control, while fallback retrieval remains independent of the primary call path.",[],{"kind":285,"title":326,"exercise":327},"Restore the store and primary endpoint",{"type":328,"diagram":230,"question":329,"hidden":330,"tray":331},"palette","Restore the shared conditional-state store and the primary Bedrock InvokeModel endpoint.",[239,242],[332,333,334,336,338,340],{"component":220},{"component":191},{"component":208,"reason":335},"AppConfig distributes configuration rather than performing this design's per-request conditional counter and lease updates.",{"component":196,"reason":337},"CloudWatch metrics do not provide the synchronous conditional admission store required by the guard.",{"component":204,"reason":339},"SageMaker hosts model endpoints; it does not expose the required Bedrock InvokeModel API.",{"component":200,"reason":341},"Comprehend provides text analysis, not the required foundation-model generation endpoint.",{"kind":259,"title":343,"body":344},"Make half-open recovery safe under concurrency","\u003Cp>In \u003Cstrong>closed\u003C\u002Fstrong> state, calls are admitted and qualifying failures contribute to a defined threshold. In \u003Cstrong>open\u003C\u002Fstrong> state, calls fail fast until a stored cooldown deadline. After that deadline, \u003Cstrong>half-open\u003C\u002Fstrong> admits a limited probe rather than releasing all waiting executions. A successful probe closes the breaker; a failed probe reopens it with a new cooldown. Count dependency failures, not every application error.\u003C\u002Fp>\u003Cp>Key records by the actual failure domain, such as dependency, Region, and model endpoint. A read followed by an unconditional write is unsafe: concurrent guards can all believe they own the probe. Use a \u003Cstrong>conditional update\u003C\u002Fstrong> to acquire a bounded probe lease; contenders that lose the condition do not call the primary. Associate the lease with an owner or version, and require that ownership when applying its result so a late probe cannot overwrite newer state.\u003C\u002Fp>\u003Cp>Compare the stored deadline during admission; \u003Cstrong>DynamoDB TTL\u003C\u002Fstrong> is asynchronous cleanup, not the clock that reopens a circuit. An expired lease permits a later probe if its owner disappeared. Persist outcomes with conditional operations too, and avoid counting the same failed attempt twice when an update is retried. Even with these controls, already admitted calls can remain in flight after the breaker opens: a circuit breaker is admission control, not remote cancellation.\u003C\u002Fp>",{"kind":285,"title":346,"exercise":347},"Repair the half-open admission store",{"type":348,"diagram":230,"requirement":349,"change":350,"tray":351,"hint":358,"explanation":359},"flaw","After cooldown, competing guards must use a conditional update to elect a probe owner; a late result must not overwrite a newer lease.",{"card":239,"component":208},[352,354,356],{"component":220,"reason":353},"Conditional item updates can elect a probe owner and protect later outcome updates.",{"component":208,"reason":355},"Configuration distribution does not implement the required per-request conditional lease updates.",{"component":196,"reason":357},"Metrics cannot conditionally grant a synchronous probe lease.","The guard needs to change shared state only if the stored owner or version still matches.","The DynamoDB table restores conditional lease acquisition and ownership-checked outcome updates. Reading configuration or observing metrics cannot resolve competing probe claims.",{"kind":259,"title":361,"body":362},"Select fallback without creating another failure loop","\u003Cp>In this design, \u003Cstrong>circuit open\u003C\u002Fstrong> is a typed successful guard result, not a retryable Task failure. Step Functions routes that result directly to fallback. For transient primary failures, it applies the bounded retry policy; every retry invokes the guard again and therefore rechecks shared admission. If the primary failure remains after retries, a matching catcher selects fallback. In a JSONPath workflow, a catcher's \u003Ccode>ResultPath\u003C\u002Fcode> can preserve the original input while adding error details.\u003C\u002Fp>\u003Cp>Budget the primary path as \u003Cstrong>attempt time plus retry waits plus overhead\u003C\u002Fstrong>, leaving time for fallback before the execution deadline. Give fallback retrieval its own bounded handling and validate that the cached answer is appropriate and fresh enough for the request. Mark the result as degraded; an unavailable primary does not justify returning an unsafe or unrelated answer. If no approved fallback is usable, return a controlled failure rather than restarting the primary loop.\u003C\u002Fp>\u003Cp>Define the \u003Cstrong>breaker-store failure policy\u003C\u002Fstrong> explicitly. This design fails closed: if the guard cannot establish admission because its state store is unavailable, it returns a distinct result that routes to fallback without calling the primary. A Step Functions Task timeout follows a separate catcher because the wrapper may still be running and may not have persisted a failure. Neither that timeout nor a workflow-level timeout should be assumed to update shared breaker state automatically.\u003C\u002Fp>",{"kind":285,"title":364,"exercise":365},"Rebuild the guarded recovery path",{"type":366,"diagram":230,"question":367,"decoys":368},"build","Rebuild the taught call-only architecture: preserve shared admission on every primary attempt and keep approved fallback retrieval under workflow control.",[369,371],{"component":208,"reason":370},"The breaker store needs conditional per-request counter and probe-lease updates; AppConfig distributes configuration instead.",{"component":204,"reason":372},"The primary must expose Bedrock InvokeModel; SageMaker model hosting does not expose that API.",{"kind":259,"title":374,"body":375,"takeaways":376},"What to remember","\u003Cp>Bound each execution's recovery, coordinate admission through shared breaker state, and preserve an independent, controlled fallback path.\u003C\u002Fp>",[377,380,383],{"title":378,"text":379},"Retry before Catch","Use narrow, bounded retries with backoff and jitter before matching recovery handlers. Handle Task timeouts explicitly and reserve time for fallback.",{"title":381,"text":382},"Coordinate shared admission","Persist breaker state outside individual executions and recheck it on every attempt. Conditional probe leases and ownership-checked updates prevent concurrent or stale probes from corrupting recovery.",{"title":384,"text":385},"Degrade deliberately","Route open circuits and handled failures to an approved fallback without another primary retry loop. Timeouts do not guarantee cancellation or automatic breaker updates.","2026-10-29T23:44:56.770Z",{"pageSlug":93,"code":92,"certification":91,"certificationSlug":93},{"slug":389,"title":390},"foundation-models-coordinating-specialized-models-aip-c01","Foundation Models: coordinating specialized models",1796130174843]