AITraining2U

Programs

Resources

Case Studies

Quick Links

Enquire Now
Domain 1 · 27%% of exam

Fallback, retry and graceful degradation

What the system does when the happy path is unavailable.

4 min read · Lesson 11 of 12 in this domain

A retry strategy is not just "try again". It is a decision about whether the operation can succeed on repetition, how many times to attempt it, how long to wait between attempts, and what to do when attempts are exhausted. Blind immediate retries are the worst of all worlds: they hammer a struggling dependency and turn a brief outage into a longer one. Exponential backoff with jitter is the standard shape because it spreads retry load instead of synchronising it. And every retry policy needs a terminal branch — a fallback that degrades gracefully, or an escalation, because "retry forever" is not a strategy.

Key points
  • Retry only what can succeed on repetition. Permanent errors — bad arguments, missing records, denied permissions — will fail identically every time.
  • Use exponential backoff with jitter so concurrent clients do not retry in lockstep and amplify the outage.
  • Bound retries explicitly. The SDKs retry connection errors, 408, 409, 429 and 5xx with backoff by default; a typical default is two attempts.
  • Honour retry-after on a 429 rather than guessing an interval.
  • Define the terminal branch: degrade to a partial answer, route to a fallback path, or escalate — but decide it in advance rather than looping.
  • Graceful degradation beats total failure: returning three of five enrichment fields with the gap flagged is usually better than returning nothing.
Exam trap

"Retry three times" applied uniformly is offered as the safe answer. It is wasteful on permanent errors and insufficient on a long outage.

Check your understanding

Which error is worth retrying?

Correct answer: A — A 429 rate limit, honouring retry-after
The others are permanent — repetition reproduces them exactly.

Why add jitter to exponential backoff?

Correct answer: A — It stops concurrent clients retrying in lockstep and amplifying the outage
Synchronised retries are what turn a brief blip into a sustained one.

Practise this domain with 27%%-weighted questions in the study app.

Open in study app

Source: Claude Docs — Tool use overview · Independent study aid, not affiliated with or endorsed by Anthropic.