Introduction to Resilient Foundation Model Architectures
Keeping generative AI applications available during throttling, outages and limited Regional availability with cross-Region inference, retries, circuit breakers and graceful degradation.
- 4 lessons
- Module quiz
Calls to foundation models fail more often than calls to most services. Requests are throttled when demand exceeds the quota for a model in a Region, generation can be slow enough to time out, providers occasionally have outages, and some models are offered only in certain Regions. An application that simply calls one model in one Region and shows an error when the call fails will be unreliable under real traffic.
Resilient designs combine several techniques. Cross-Region inference spreads requests across Regions within a geography, raising throughput and availability. Retries with exponential backoff and jitter handle transient errors, while rate limiting keeps demand within quotas. Circuit breakers stop calling a failing model after repeated errors, and graceful degradation serves a reduced but useful response, such as an answer from a smaller fallback model, instead of an error.
What the exam expects
Exam questions in this area test knowing which errors to retry and which never to retry, such as validation and access errors; choosing a geographic rather than a global inference profile when data must stay within a geography; and diagnosing access denials that appear after cross-Region inference is enabled, which usually come from missing permissions or service control policies in the destination Regions.
How this module is organised
Increasing Availability with Cross-Region Inference and Multi-Region Deployment explains inference profiles and multi-Region designs. Handling Throttling with Retries, Backoff and Rate Limiting explains how to handle transient failures and control demand. Building Circuit Breakers with Step Functions explains how to stop calling failing dependencies, and Designing Graceful Degradation and Fallbacks explains how to keep serving users when parts of the system fail.
- Increasing Availability with Cross-Region Inference and Multi-Region Deployment Lesson 1
- Handling Throttling with Retries, Backoff and Rate Limiting Lesson 2
- Building Circuit Breakers with Step Functions Lesson 3
- Designing Graceful Degradation and Fallbacks Lesson 4
- Practise and review
- Checkpoint Practice activities across the module
- Test your knowledge 4 questions