1.2.3 · Lesson 6 of 28
Design resilient AI systems
Design for model/service disruption. Possible failures:
WHAT
Design for model/service disruption.
Possible failures:
- temporary model failure
- regional unavailability
- throttling
- network failure
- provider outage
WHY
GenAI applications can become unavailable if they depend on a single model endpoint.
HOW
Possible resilience patterns:
Request ↓ Primary Model ↓ failure Fallback Model / Region ↓ failure Graceful Degradation
Use:
- retries where appropriate
- circuit breakers
- cross-Region inference
- alternate deployment regions
- fallback models
- cached responses
- non-GenAI fallback workflows
AWS services
- Amazon Bedrock Cross-Region Inference
- AWS Step Functions
- AWS Lambda
- Amazon API Gateway
- Amazon CloudWatch
Circuit breaker concept
Healthy ↓ Failures increase ↓ Open circuit ↓ Stop sending traffic to failing dependency ↓ Recovery check ↓ Close circuit
Graceful degradation
If the FM is unavailable:
AI unavailable
↓
Use deterministic FAQ
OR
Return cached answer
OR
Route to human
OR
Use fallback modelEXAM TRAP
Retries alone are not a complete resilience strategy.
Repeatedly retrying a failing dependency can make an outage worse.
---
Key points
- GenAI applications can become unavailable if they depend on a single model endpoint.
Exam focus
Retries alone are not a complete resilience strategy. Repeatedly retrying a failing dependency can make an outage worse.