An external model API times out temporarily.
Recover without amplifying the outage.
Choose two operational designs.
Retry only transient errors with bounded exponential backoff, and use a circuit breaker and safe fallback when failure or latency exceeds limits.
Detailed explanation
Recovery is attempted without infinite loops or a retry storm.
Recovery is attempted without infinite loops or a retry storm.
Cascading failure and unclear waits are limited.
Cascading failure and unclear waits are limited.
Cost, latency, and the outage can be amplified.
Cost, latency, and the outage can be amplified.
Resources can be exhausted.
Resources can be exhausted.
Try it yourself
An example you can run in a temporary verification environment.
AWS公式AIF-C01 Domain 3.4の信頼性、監視、障害対応を確認する。Expected result
AI API障害の再試行と遮断を、可用性・費用・遅延の観点で設計できる。Key points
- Exponential backoff
- Timeout
- Circuit breaker
Notes
- Environment: AWS公式AIF-C01試験ガイドとAWS公式ドキュメントの確認
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.