SkillHack

How to become an AI Reliability Engineer

Step by step and free: 12 phases, 85 topics and 278 graded practice questions.

Practise this roadmap free

What is an AI Reliability Engineer?

An AI Reliability Engineer keeps model-backed features available, fast and correct in production. They set SLOs that cover answer quality as well as uptime, trace each model call, build retries, fallbacks and multi-provider failover, roll out new models and prompts behind canaries, and lead incidents when a provider fails or quality slips. They work with product engineers, platform teams and model providers.

Who this roadmap is for

Site reliability, DevOps and platform engineers who are now on call for AI features, and backend engineers who own a model-backed service. You should already know monitoring, alerting and incident basics. It is not for people who want to train models: this roadmap treats the model as a dependency to run well.

What you will be able to do

You will be able to define SLIs and error budgets for streamed and multi-step responses, instrument model calls, alert on quality as well as latency, design fallback chains that stay honest, plan token capacity, roll out model changes with automatic rollback, detect silent drift, and run an AI incident through to a blameless postmortem.

The AI Reliability Engineer roadmap

AI Reliability Engineer

  1. Phase 1 Foundations of AI reliability

  2. Phase 2 SLIs, SLOs and error budgets

  3. Phase 3 Observability for model calls

  4. Phase 4 Monitoring and alerting

  5. Phase 5 Failure modes of model-backed systems

  6. Phase 6 Validation and guardrails at the model boundary

  7. Phase 7 Resilience: retries, fallbacks and failover

  8. Phase 8 Capacity, quotas and load

  9. Phase 9 Safe rollouts of models and prompts

  10. Phase 10 Drift and silent degradation

  11. Phase 11 Incident response and postmortems

  12. Phase 12 Resilience testing and readiness

All topics, in order

Mark each topic Learning, Done or Skip, and sign in to save your place to your account. Done is your own word, not passing: a topic is passed when you score 50 or more on its questions. This order is the study plan.

  1. Phase 1 · Foundations of AI reliability

    1. What an AI reliability engineer does

      An AI reliability engineer is the SRE for features built on models, most often models reached over someone else's API. You own whether the feature works for its users: SLOs that include answer quality, telemetry on every model call, fallbacks for provider outages and rate limits, safe rollouts of new models and prompts, and the incident process when any of it fails. You do not train the model or run the GPU fleet; you make what sits on top dependable, and you prove it with data.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    2. SRE for AI systems

      Site reliability engineering treats reliability as a feature with a target, not a wish for perfection: you decide how much failure users will tolerate, measure it, and spend what is left (the error budget) on change. The frame carries over to AI systems with one twist: some wrong answers are part of normal operation, so the budget has to cover quality as well as uptime. Automate repeated manual work such as weekly eval checks, because toil grows with traffic and crowds out engineering.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    3. Availability is not correctness

      A model-backed request can return in 300 milliseconds with valid JSON and a 200 status and still be wrong. Availability asks whether you answered; correctness asks whether the answer was right, and transport dashboards measure only the first. Treat quality as its own reliability axis with its own signal and its own owner, so that a confident wrong answer counts as a failure somewhere instead of a success everywhere.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    4. The path of a model-backed request

      One AI request often passes through your client, your API, a retrieval call to a vector store, an input guardrail, a gateway, the model provider, perhaps several tool calls and an output check before the user sees anything. Each hop has its own latency, limits and failure modes, and the provider hop is one you cannot fix yourself. Draw this path for every feature you own: it is the map you will use for SLIs, traces, fallbacks and incident triage.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    5. Dependency math

      When a request needs several services in series, their availabilities multiply: a feature that needs a 99.9% API, a 99.9% vector store and a 99.5% model provider can do no better than about 99.3%, before counting your own bugs. So your SLO cannot be tighter than your critical dependencies allow unless you add redundancy, such as a second provider, a cache, or a degraded path that skips a dependency. Do this arithmetic before you promise anyone a target.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions

    Chapter 1 lab

    Write the instruction for an assistant that finds what a reliability dashboard cannot see

    A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.

    Start the lab
  2. Phase 2 · SLIs, SLOs and error budgets

    1. SLIs and SLOs

      A service level indicator is a ratio of good events to valid events, measured as close to the user as you can; a service level objective is the target for that ratio over a window, such as 99.5% of chat requests answered successfully within 10 seconds over 28 days. Define valid with care: requests the client cancelled or that were rejected for bad input usually leave the denominator. Process liveness and GPU use are not SLIs, because users never see them.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    2. Where to measure an SLI

      The same SLI reads differently depending on where you count it. Server logs miss requests that never reached you, the gateway misses time spent in the client, and synthetic probes measure a fixed prompt rather than real traffic. Client telemetry sees what users see but is noisy and arrives late. Most teams measure the SLO at the load balancer or gateway, then add probes and client data to catch what that one point cannot see.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. Latency SLIs for streamed responses

      A streamed answer has three latencies: time to first token (how long the user stares at nothing), time between tokens (whether text flows or stutters) and total time (what a program waiting for the whole answer feels). Pick the one your users experience: a chat screen lives on time to first token, a backend extraction job on total time. Long outputs take longer by design, so judge total time per output token or within output length bands rather than against one threshold.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. Quality SLIs

      A quality SLI counts a response as good only if it passes checks you trust: it parsed against the schema, its claims were grounded in the retrieved sources, it did not refuse an allowed request, or a sampled judge or reviewer rated it acceptable. Cheap deterministic checks can run on every response; judges and people run on a sample, so that SLI carries sampling error. Start with one or two checks tied to real user harm, and check any judge against human labels before it feeds an SLO.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    5. Choosing SLO targets and windows

      Set a target from what users need and what the system has actually delivered, not from a round number: if users give up after 8 seconds, that is your latency threshold, and last quarter's data tells you whether 99% is realistic. Never aim for 100%: it forbids every change, and your provider cannot give it to you anyway. A rolling 28 or 30 day window tracks user experience smoothly, a calendar month suits reporting, and targets deserve a review every quarter.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. Error budgets and the budget policy

      The error budget is one minus the SLO: a 99.5% target allows 0.5% of valid requests to fail in the window. The budget policy, agreed in writing before you need it, says what happens as the budget burns: for example, releases of new prompts and models pause once it is spent, and the team works on reliability until it recovers. Without an agreed policy the budget is just a chart, and every freeze turns into an argument in the middle of an incident.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    7. SLOs for agents and multi-step tasks

      One agent request may be twenty model and tool calls, so per-call SLIs say little about whether the user's task got done. Measure at the task level: the share of tasks completed correctly, time to completion, and steps or tokens per task. Agents vary from run to run, so consistency matters as much as the average: a task that succeeds one run in three is not reliable even if the mean looks fine. The tau-bench paper reports this as pass^k, success on all k tries.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    8. Provider SLAs and your SLO

      A provider's service level agreement is a contract that pays service credits when availability falls below a stated level. It does not keep your users served, and it often leaves out what you care about, such as latency, rate limiting and answer quality. Read what it measures and what it excludes, then treat it as the floor of your dependency math, not as your target. If your SLO is tighter than the provider's commitment, you need a second path, not a better contract.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
  3. Phase 3 · Observability for model calls

    1. Metrics, logs and traces for AI services

      Metrics tell you that something is wrong (error rate, latency percentiles, tokens per minute), traces show where in the request path it went wrong, and logs hold the detail of one event. Label AI metrics with model, provider, feature and outcome so a spike can be split by cause, but keep user ids and prompt text out of metric labels: every distinct value creates another time series, and cost and query time grow with them.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    2. Tracing an LLM call

      Wrap every model call in a span that records the provider, the model you asked for and the model that answered, input and output tokens, the finish reason, time to first token, duration, and an error type when it fails. OpenTelemetry's generative AI conventions name these fields (gen_ai.request.model, gen_ai.usage.input_tokens and so on); as of November 2026 they are marked Development and kept in their own repository, so pin a version. Add the provider's request id so support can find the call.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    3. Tracing agents and tool calls

      An agent run should be one trace: a root span for the task and child spans for every model call, tool call and retry, sharing a trace id that context propagation carries across services. Then a slow run shows which step was slow, a loop shows as the same tool span repeating, and a failed tool sits next to the model call that chose it. Record the step number and the size of tool arguments rather than full payloads, unless content capture is deliberately switched on.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. Finish reasons and stop signals

      A response that stopped because it hit the output token limit, filled the context window or was refused still arrives as HTTP 200. The finish reason (stop_reason in Anthropic's API) is the only sign, so record it on every call and count it: more max_tokens stops means truncated answers, more refusals means users are being turned away. Count truncation as a failure in your SLI, and alert on the share of each finish reason, not only on errors.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    5. Version stamps on every response

      When quality shifts you must answer what changed, and you can only answer from data recorded at the time. Stamp every request with the prompt template version, the exact model snapshot the provider reports back, the sampling settings, the retrieval index version and your service's release id, and keep the stamp in traces and in the outputs you sample for review. A chart split by stamp turns 'quality fell on Tuesday' into 'quality fell on prompt v42 only'.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. Logging prompts and outputs safely

      Prompts and outputs are your most useful debugging data and often your most sensitive, because users paste personal and confidential text into them. Capture content on purpose: OpenTelemetry's GenAI conventions leave it off by default. Redact or tokenise personal data before storage, limit who can read raw content, keep it for less time than ordinary logs, and record that a field was redacted so nobody mistakes it for an empty prompt.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    7. Sampling and the cost of telemetry

      Tracing every request with full content gets expensive fast, because AI payloads are large. Sample so you keep what you need: tail-based sampling in a collector decides after a trace ends, so it can keep every error, every slow trace and every request on a new release while keeping only a small share of healthy traffic. Leave metrics unsampled, since an SLI must count every request, and budget telemetry storage as part of the feature's running cost.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
  4. Phase 4 · Monitoring and alerting

    1. Latency and error monitoring

      An average hides the slow tail, where hung requests and timeouts live, so watch p50, p95 and p99 of time to first token and total duration beside the error rate. A p99 is not rare in practice: a user who makes many requests in a session meets it often. Count timed-out and cancelled requests on purpose rather than as missing data, or the slowest failures vanish from your latency chart exactly when they matter.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    2. Production quality monitoring

      Quality can fall while every serving metric stays green, after a retrieval change, a provider update or a shift in what users ask. Monitor it all the time: run cheap automated checks (schema, groundedness, refusal) on all traffic, run a judge or human review on a steady random sample plus targeted slices, and chart the results with version stamps alongside. You are hunting trends and step changes, so keep the sample size and rubric stable week to week.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    3. Synthetic probes and canary prompts

      A synthetic probe sends a fixed set of known prompts to every model and provider you depend on, on a schedule, and checks the answers: valid format, the right tool chosen, facts that must appear. Because the input never changes, a change in output points at the system, not the users. Probes catch silent upstream changes and broken regions before customer traffic does, and they keep fallback paths exercised. Keep the set small, versioned and as deterministic as you can.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    4. Token and spend anomalies

      Tokens per request is a health signal. A jump in input tokens can mean a bug that pastes the whole history, retrieval returning too many chunks, or someone abusing an endpoint; a jump in output tokens or calls per task often means an agent stuck in a loop. Track tokens and cost per feature, per tenant and per request, alert when they leave their usual band, and cap the worst case with per-request and per-tenant limits.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    5. Alerting on symptoms

      Page a person only for symptoms that threaten users or the SLO and need action now; send everything else to a ticket or a dashboard. Every page should be actionable, link to a runbook and fire rarely enough that people still trust it. Cause alerts such as high CPU or a single 429 are noisy and work better as diagnostics. When a rotation gets noisy, delete or demote the alerts nobody acted on last month.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    6. Burn-rate alerts

      Burn rate is how fast you spend the error budget compared with a pace that would use it up exactly at the end of the window: 1 is on plan, and 14.4 sustained for an hour spends 2% of a 30 day budget. A multiwindow alert fires only when a long window (say an hour) and a short one (five minutes) both exceed the threshold, so a real fast burn pages quickly and the alert clears soon after it stops. Pair the fast page with a slow-burn ticket.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    7. Alerting on quality signals

      Quality signals are noisier than error rates: a judge disagrees with itself, a sample of 200 swings by several points, and some failures are rare but severe. Alert on sustained shifts over enough samples, compare with the same hour or weekday baseline, and tie the alert to a stamped change where you can. Page on quality only for high-harm failures such as leaked data or unsafe output; send a slow slide in helpfulness to a ticket for the next working day.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions

    Chapter 4 lab

    Write the judge instruction for a production quality monitor

    A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.

    Start the lab
  5. Phase 5 · Failure modes of model-backed systems

    1. Nondeterminism

      Send the same prompt twice and you can get two different answers: sampling is random by design, and even at temperature 0, batching and floating point order on the provider's side can change the output. So exact-match tests flake and a single bad answer may not reproduce. Assert on invariants (schema, required facts, allowed actions), record every input that shaped a call (model snapshot, settings, retrieved context), and judge a change over many runs, not one.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    2. Rate limits and 429s

      Providers limit requests and tokens per minute, and Anthropic's API, for one, refills its limits continuously as a token bucket, so a short burst can be rejected while you are under the per-minute figure. A 429 with a retry-after header says when to come back: respect it, back off exponentially with jitter, and cap attempts. As of November 2026 Anthropic also documents ramp limits on sudden growth and a spend-cap 429 with no retry-after that no retry will fix, so read the error body before retrying.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    3. Timeouts and deadlines

      One timeout is the wrong shape for a streamed model call. Use a short time-to-first-token timeout (the provider is stuck), an idle timeout between chunks (the stream stalled) and a total deadline (the user has given up). Set the total deadline once at the edge and pass the remaining time to every hop, so retries and fallbacks stop when the caller has stopped waiting. A retry that starts after the user has left only burns tokens and quota.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. Provider outages and partial outages

      Model providers rarely fail completely. More often one model, one region or one feature degrades: more 5xx and overloaded errors (529 in Anthropic's API), slow first tokens, or failures only on long contexts. Status pages are updated by people and lag the first errors, so detect outages from your own per-provider, per-model SLIs and probes. Decide in advance the thresholds at which you fail over, and record each provider incident against your dependency budget.

      Reading

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    5. Context limits and oversized inputs

      Inputs grow quietly: conversations get longer, users attach bigger files, retrieval returns more chunks. Past the context window the call fails outright, and before that many apps silently drop the oldest history and answer worse, while latency and cost rise with every token. Count tokens before you send, give each part of the prompt a size budget, trim or summarise by a rule you chose, and chart input length percentiles so the trend shows before the errors do.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. When retrieval fails

      Retrieval failures rarely raise errors. A vector store that times out, returns nothing or serves a stale index lets the model answer from its own memory, fluently and often wrongly. Treat retrieval as a dependency with its own SLIs (latency, empty-result rate, index freshness), make the app's behaviour explicit when retrieval comes back empty or late (abstain, say sources are unavailable, or degrade), and never let missing context pass as a normal answer.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    7. Agent and tool failures

      Agents add failure modes a single call lacks: loops that repeat a tool call, runs that never converge, tools that time out or return errors the model misreads, and partial side effects when a run dies at step four of seven. Bound every run with step, time and token budgets, make tools return clear structured errors, make side-effecting tools idempotent, and checkpoint state so a run can resume or be cancelled cleanly. Count stuck and abandoned runs as failures.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    8. Refusals and safety filters as failures

      A safety filter that blocks too much is an outage for the users it blocks. Provider content filters and model refusals can rise after a model update, a filter change or a new kind of input, and they arrive as normal responses or specific error codes, not server errors. Track refusal and filter rates per feature, review samples to separate correct blocks from false positives, and treat a sudden rise like any regression: find the change, then roll back or adjust.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions

    Chapter 5 lab

    Write the instruction for an agent draining a backlog against a rate limit

    A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.

    Start the lab
  6. Phase 6 · Validation and guardrails at the model boundary

    1. Input and output validation

      Model output is untrusted input to everything downstream. Put a validation boundary between the model and the rest of the system: parse against a strict schema, check types, ranges and allowed values, and reject or repair before anything is stored, shown or executed. Structured output modes cut format failures but not refusals, truncation or wrong values, so validate anyway. Validate inputs too: size, type and content limits stop bad requests before they cost tokens.

      Reading

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    2. Repair and re-ask loops

      When output fails validation, a cheap repair often works: fix trivial format slips in code, or send the validation error back to the model once and ask for a corrected answer. Bound the loop: one or two attempts, inside the request's remaining deadline and token budget, and only for errors the model can fix. If it still fails, return a clean, typed failure the caller can handle. Count repairs as a metric, since a rising repair rate is an early sign of drift.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. Guardrails in the request path

      An input or output guardrail, such as a safety classifier or a policy model, is another dependency on the critical path: it adds latency to every request, has its own outages and rate limits, and can be wrong. Give it SLIs and a latency budget of its own, run checks alongside generation where the design allows, and decide what each check does when it is slow or down. Safety model reliability matters twice over, because a guardrail that fails quietly fails unsafely.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. Fail open or fail closed

      When a check cannot run, it must either let the request through (fail open) or block it (fail closed), and the right choice depends on what each wrong outcome costs. A tone check on a chat reply can fail open; a check that stops personal data leaving the system, or an approval before an agent spends money, should fail closed. Decide per check before the incident, write it in the runbook, and alert whenever a check is running in its failure mode.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    5. Handing off to a human

      Some requests should leave the AI: low confidence, a tripped guardrail, a high-stakes action, or a user who asks for a person. A handoff is a system with capacity of its own: if a model outage sends every conversation to a support queue sized for 5% of them, you have moved the outage, not handled it. Define the triggers, pass the context so the person does not start over, size the queue for degraded modes, and watch the handoff rate as a signal.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. Kill switches and feature flags

      A kill switch turns off an AI feature, one tool, a model route or a risky capability in seconds, without a deploy. Build them before launch, on a flag service that does not depend on the system it controls, and decide what users see when a switch is off. Let on-call flip them without waiting for approval, log every change, and test them on a schedule: a switch nobody has flipped in a year may not work on the day you need it.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions

    Chapter 6 lab

    Write the instruction for the repair step that runs after validation fails

    A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.

    Start the lab
  7. Phase 7 · Resilience: retries, fallbacks and failover

    1. Retries and idempotency

      Retry only what is both transient and safe. Timeouts, 429s, overloads and most 5xx errors are worth retrying with backoff; 400s and authentication errors are not. Retrying a call with side effects (sending an email, charging a card, a tool that writes) can do it twice unless the operation is idempotent, so pass an idempotency key the receiver uses to run the effect at most once. Cap retries with a retry budget so that during an outage retries never become most of your traffic.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    2. Circuit breakers

      A slow or failing dependency ties up the caller's connections and threads until unrelated features fail too. A circuit breaker watches calls to one dependency, opens when the error or slow-call rate crosses a threshold, fails fast or routes to a fallback while open, then lets a few probe requests through while half-open before closing again. Count timeouts and overload errors as failures, keep one breaker per provider and model, and show its state on the dashboard.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    3. Graceful degradation

      When the primary model is degraded or gone, keep the core flow alive on less. Decide in advance what is core (answering the customer) and what is extra (summaries, suggestions), shed the extras first, route core work to a smaller or cheaper model, serve cached or templated answers as a last resort, and tell users plainly that the feature is limited. Degraded modes have to be designed and tested beforehand: nobody invents a good one in the middle of an incident.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    4. Designing a fallback chain

      A fallback chain is the ordered list of what to try when the primary fails: the same model in another region, the same model through another platform, a different model, a cached answer, then a static message. Each step down changes something (latency, price, context limit, tool support, answer quality), and a prompt tuned for one model may behave differently on another. Write down each step's trigger and known differences, eval the prompt on every model in the chain, and limit how far failover goes automatically.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    5. Running on more than one provider

      A second provider is the strongest defence against a provider-wide outage and the costliest to keep honest. Prompts, tool schemas, safety behaviour and token counting differ between providers, so you need a common call layer, a prompt variant and eval results per provider, quota already granted at the secondary, and enough steady traffic there to know it works. Weigh that cost against your SLO and the outage record; for many features one provider plus good degradation is enough.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. Keeping fallbacks honest

      Fallbacks that are rarely used rot: credentials expire, quotas get reclaimed, prompts drift away from the primary's, and the first real failover exposes it all. Keep each fallback warm with a steady slice of real or probe traffic, compare its quality with the primary on the same eval set after every prompt change, and load test it at the traffic it would take over. Amazon's Builders' Library goes further and argues for designs that need no rarely exercised fallback at all.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    7. Hedged requests and tail latency

      A hedged request sends a second copy of a slow request after a delay, often the p95 latency, and keeps whichever answer arrives first. For cheap, idempotent reads it trims the tail for a few percent of extra load. For model calls the second copy can double the token bill and drain a shared quota exactly when the provider is struggling, so hedge only short, read-only calls, cancel the loser at once, and cap hedges at a small share of traffic.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    8. Recovering a broken stream

      A streamed response can fail after the 200 status has gone out: the provider sends an error event mid-stream, the connection drops, or tokens simply stop. By then the user may have read half an answer. Detect the end properly (a final event and a stop reason, not just a closed socket), decide whether to retry from scratch or continue from what arrived, and tell the user when an answer was cut short instead of leaving a confident half on screen.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
  8. Phase 8 · Capacity, quotas and load

    1. Capacity in tokens, not requests

      A request is not a unit of capacity: one call may use 200 tokens and the next 200,000. Providers meter requests, input tokens and output tokens per minute separately, and output tokens cost the most time because they are generated one after another. Plan capacity from each feature's token distribution (median and tail, input and output), not from request counts, and remember that cached input often counts differently toward both limits and price.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    2. Provider quotas and limits

      Quotas are set per organisation, per model and often per workspace, project or region, and the one you hit first is the one that binds. Know which pool each feature draws from, give heavy or risky workloads their own workspace limits so they cannot starve the rest, and read the rate limit headers to see remaining headroom. Raising a limit can take days and may depend on usage history, so ask well ahead of a launch, not during it.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. Reserved and priority capacity

      Pay-as-you-go capacity is shared with every other customer, so it tightens exactly when demand peaks. Reserved options, such as provisioned throughput on Azure, Amazon Bedrock and Vertex AI, or a priority tier on Anthropic's API, buy committed capacity or precedence for a fee and a term. Reserve for the steady baseline of critical traffic, let bursts spill to shared capacity, and check what happens at the edge: whether excess traffic is rejected or served more slowly.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. Queues and backpressure

      Work that does not need an answer in seconds (document processing, backfills, evals) belongs on a queue drained at a rate your quota allows, not fired at the provider all at once. The queue absorbs bursts, and backpressure, slowing producers or refusing new work when the queue is too deep, stops a backlog growing past what you can ever drain. Watch the age of the oldest item, not just depth, and use the provider's batch API where results can wait hours.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    5. Overload and cascading failure

      When demand exceeds capacity, latency climbs, clients time out and retry, and the retries add load until a slow system becomes a dead one. Defend in layers: reject early with a clear retryable error once you are over capacity, shed low-priority work first, cap retries with budgets, and refuse work that will time out before it finishes. Model calls are long and costly, so a doomed request wastes far more here than in an ordinary web service.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. Load testing an AI feature

      Load test with traffic that looks like production: real prompt and output length mixes, streaming on, realistic pauses between turns and the same share of tool calls. Hammering a provider's live API at full scale is costly, may break its terms and mostly tests their rate limiter, so run big tests against a mock provider that replays realistic latency and errors, plus a smaller confirming run against the real one. Find the load where your SLO starts to fail, and load test the fallbacks too.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    7. Capacity planning and launch readiness

      Before a launch, turn the business forecast into tokens: expected users, requests per user, tokens per request and the peak hour, plus headroom for retries and the launch spike. Check every limit on the path (provider quotas, ramp limits on sudden growth, your gateway, the vector store, the support queue behind a handoff) and request increases with lead time. Plan day one too: who watches which dashboard, which switches are ready, and the traffic level at which you slow the rollout.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
  9. Phase 9 · Safe rollouts of models and prompts

    1. Every AI change is a deploy

      Most production incidents follow a change, and in AI systems changes hide outside the code: a prompt edit, a new model snapshot, a temperature tweak, a rebuilt retrieval index, a reworded tool description. Each can change behaviour as much as a code release. Put all of them through the same path: versioned, reviewed, gated on evals and checks, rolled out in stages, easy to roll back, and written to a change log the on-call can search.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    2. Pinning model versions

      Providers offer moving aliases that point at the latest model and dated snapshots that stay fixed. Production should call a pinned snapshot, so behaviour changes only when you choose. Snapshots retire on published schedules, so watch the deprecation page of every provider you use, put retirement dates in the team calendar with months of lead time, and treat each migration as a planned release rather than a scramble in the week before a shutdown.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. Prompts and config as releases

      A prompt is code whose behaviour you cannot read off the page. Keep prompts and model settings in version control or a registry with immutable versions, review changes as you would code, run the regression evals before release, and deploy by pointing traffic at a version id, never by editing live text. Rollback is then a pointer change, and the version stamp on each response tells you exactly which prompt produced it.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. Shadow traffic and dark launches

      Shadow traffic sends a copy of real requests to the candidate model or prompt and throws its answers away, so you can compare latency, errors, cost and output on real inputs before any user sees the candidate. It costs tokens, so mirror a sample, never let shadow calls perform side effects such as tool writes, and give shadow load its own quota so it cannot starve production. Shadowing finds latency, cost and format problems well; quality still needs grading.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    5. Canary releases for model changes

      A canary sends a small share of live traffic to the new version and compares it with the current one on the same SLIs: errors, latency, cost per request and quality checks. Quality differences are small and noisy, so a 1% canary may need hours or days of traffic before the comparison means anything; size it for the smallest regression you care about. Compare against a control slice over the same period, not last week, and stop automatically on clear regressions.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    6. Progressive rollout and automatic rollback

      After the canary, widen in stages (say 5%, 25%, 50%, 100%) with a bake time at each, and write the halt criteria before you start: which SLIs, how much worse, for how long. Automate rollback so it does not wait for someone to notice. Keep the previous version deployed and its prompt and model route live, so rolling back is a traffic switch, and remember that a model rollback works only while the old snapshot is still offered.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    7. Migrating to a new model

      A new model is not a drop-in replacement, even from the same provider: prompts tuned for the old one may need rework, latency and token counts change, refusal behaviour shifts and some parameters stop being accepted. Run the eval suite and a shadow period on the new model, re-baseline latency and quality SLIs, check the fallbacks still fit, and migrate feature by feature through canaries. Start early enough that a deprecation date is a deadline you beat, not one you hit.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    8. Rolling out index and embedding changes

      A retrieval index is versioned data that changes answers. A new embedding model means re-embedding the whole corpus, since vectors from two models cannot be compared, and a new chunking scheme changes what gets retrieved. Build the new index beside the old one, check retrieval quality on a fixed query set, move reads over in stages with an alias or config flag, and keep the old index until the new one has proved itself. Stamp responses with the index version.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
  10. Phase 10 · Drift and silent degradation

    1. How AI systems degrade silently

      Classic failures are loud: errors spike and someone is paged. AI failures are often quiet: answers grow a little vaguer, a tool is chosen a little less often, a summary drops a detail, and every request still returns 200. Causes include provider-side changes, input drift, stale data and your own small edits adding up. Your defences are quality SLIs, fixed probes, version stamps and reading real outputs regularly; without them the first alarm is a customer.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    2. Input drift

      Input drift is a change in what users send: new languages, longer documents, new product names, a new customer segment, a seasonal topic. Prompts and evals built on last quarter's traffic quietly stop covering it. Track simple input distributions (length, language, topic or intent clusters, attachment types) against a baseline and look closely at the slices that grew. Feed new kinds of input into the eval set, so the next change is tested on today's users, not last year's.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. Changes behind a provider's API

      The model behind an API can change behaviour with no deploy of yours: an alias moves to a new version, the provider changes serving hardware or software, or a bug on their side degrades some outputs. In 2025 Anthropic published a postmortem of three infrastructure bugs that intermittently lowered response quality, and a 2023 study measured large shifts in one model name's behaviour within months. Pin snapshots, run fixed probes, and keep evidence ready to show the provider.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. Freshness and stale knowledge

      If a feature answers from documents, prices or policies, an index that stops updating is a correctness failure that serving metrics never show. Treat freshness as an SLI: the share of source changes reflected in the index within a target time, or the age of the newest indexed document. Alert when ingestion falls behind, show source dates in answers where that helps, and make deleted or withdrawn sources leave the index as reliably as new ones arrive.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    5. Detecting drift against a baseline

      Drift detection compares a current window of a signal (input length, topic mix, refusal rate, judge score) with a baseline window and asks whether the gap is bigger than normal variation. Use a baseline that matches the season, such as the same weekday last week, set control limits from historical spread, and require a shift to persist before alerting. Chart many signals but alert on few, since a wall of noisy charts produces false alarms nobody trusts.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. Responding to drift

      When drift appears, first ask whether it hurts users now: a sharp fall in a quality SLI is an incident, a slow change in input mix is planned work. Find the cause with version stamps and slices, name the owner (your prompt, the provider, the data pipeline), and fix at the right layer: roll back, retune the prompt, update the index or escalate to the provider. Close the loop by adding the drifted cases to the eval set and a probe for the failure.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
  11. Phase 11 · Incident response and postmortems

    1. On-call and runbooks for AI services

      AI on-call needs tools ordinary on-call lacks: each provider's error and latency SLIs, links to provider status pages, the current model snapshot and prompt version per feature, the kill switches and fallback controls, and how to find request ids for support. Write runbooks for the failures you expect (provider outage, rate limiting, quality drop, runaway spend, guardrail down), test them in drills, and keep each one short enough to follow at 3am.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    2. Declaring an AI incident

      Declare early: an incident that turns out small costs a few minutes, one declared late costs hours of uncoordinated work. AI incidents include quality and safety failures with no error at all, such as a model giving dangerous advice or showing one user another's data, so set severity by user harm and reach, not by error rate. Write the criteria down beforehand (for example, any confirmed data exposure is top severity) so nobody debates them mid-incident.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. Incident roles and communication

      Large incidents need separate roles: an incident commander who coordinates and decides, operations people who change the system, a communications lead who updates users and stakeholders, and a scribe who keeps the timeline. The commander does not debug. Updates go out on a fixed cadence and say what is known, what users should do and when the next update comes, and they are honest about quality problems, not only outages.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. Diagnosis

      Under pressure the instinct is to start changing things; good diagnosis starts with evidence. Line up when the symptom began against recent deploys, prompt and model changes, config flips, traffic shifts and provider status, then write down hypotheses and test the cheapest one that rules out the most. Before you restart, roll back or clear anything, save what that would destroy: sample requests and outputs, traces, the active versions and the queue state.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    5. Triage: us, the model or the data?

      For an AI symptom, walk one path quickly. Is it one provider or model, or all of them (provider status, per-provider SLIs, fixed probes)? Did anything of ours change (version stamps, deploy log)? Did the inputs change (a new tenant, longer inputs, another language, a traffic spike)? Is retrieval healthy and fresh? Is a guardrail or filter blocking more? The answer picks the lever: fail over, roll back, throttle a tenant, fix the index or switch a check off.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    6. Rollback and containment

      Mitigate before you repair: when a recent change is hurting users, contain the harm with the smallest lever that works (roll back the prompt or model version, fail over, switch off a tool, throttle one tenant), then build the real fix without the clock running. A rollback is safest when it returns to a state you have run before. Call the incident contained only when user impact has stopped, not when the dashboards look calmer.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    7. Working an incident with a provider

      When the fault is on the provider's side you cannot fix it, but you can shorten it. Open a support case early with evidence they can act on: request ids, UTC timestamps, model and region, error types and rates, and a minimal reproduction. Know your escalation path and what your support plan includes before you need it. Meanwhile mitigate on your side with failover and degradation, and do not wait for their status page to confirm what your SLIs already show.

      Reading

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    8. Blameless postmortems

      A blameless postmortem asks how the system let a reasonable person's action cause harm, not who to blame, because blame teaches people to hide the next problem. Write it soon after the incident: impact, timeline, contributing factors, what went well, and action items with owners and dates that change the system (a check, an alert, a safer default). Share it widely and review open actions, since a postmortem whose actions never land gets written again.

      Test yourself on this topic

      4 graded questions · scored out of 100 with feedback · free

      Start the 4 questions
    9. Postmortems for AI failures

      AI incidents have contributing factors classic templates do not ask about: no eval case covered the failure, quality was not an SLI, responses lacked a version stamp, a fallback model was never evaluated, or a provider change went unnoticed. Add those questions to your template. Good action items are concrete: a new eval case built from the incident's real inputs, a probe that would have caught it, the stamp or alert that was missing. Public incident collections let you learn from others' failures too.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions

    Chapter 11 lab

    Write the instruction for a blameless postmortem drafter

    A prompt lab that closes the chapter: you write the instruction, and it is graded on a rubric.

    Start the lab
  12. Phase 12 · Resilience testing and readiness

    1. Chaos engineering principles

      Chaos engineering tests resilience by experiment: define the steady state in terms users notice (your SLIs), state a hypothesis that it holds when a fault is injected, inject a realistic fault and look for a difference. Start in staging, then move to production with a small blast radius, a clear abort condition and people watching. The aim is to find weaknesses on your schedule rather than the incident's, not to break things for show.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    2. Injecting AI-specific faults

      Generic chaos tools kill hosts and add latency; AI features also need model-shaped faults. Put a fault-injecting proxy or mock between your app and the provider that can return 429s with and without retry-after, overload errors, a slow first token, a stream that stops halfway, malformed or truncated JSON, refusals and empty retrieval results. Run these in tests and drills, and check that each produces the behaviour your runbooks and fallback design promise.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    3. Game days and failover drills

      A game day rehearses a failure with the people who would handle it: say the primary provider returns errors for an hour, and on-call has to notice, decide to fail over, follow the runbook and keep users informed. Plan the scenario, the safety limits and the abort plan, run drills on a schedule, and turn whatever surprised you into action items. Drills find the stale runbook, the missing permission and the fallback quota that was never raised.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    4. Production readiness reviews

      A production readiness review is the checklist an AI feature passes before launch, or before SRE takes its pager. For AI it covers SLOs including a quality SLI, symptom alerts, version stamps and traces, fallbacks tested under load, a kill switch, quota and capacity headroom, runbooks, rules for logging content, and a named on-call owner. Run it as a conversation, not a ritual: every gap gets an owner or a written acceptance of the risk.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    5. Disaster recovery for AI features

      Plan for losing a region, a provider account or a data store. The assets an AI feature needs to come back are easy to forget: prompt and config versions, retrieval indexes (or the pipeline and source data to rebuild them), eval sets, guardrail configs, and the secrets and quota at the backup provider. Set recovery time and recovery point objectives per feature, back up or make each asset rebuildable, and test the restore, because an untested backup is only a hope.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions
    6. AI in your own operations

      Models are now used in operations work itself: summarising an incident channel, drafting a timeline, suggesting likely causes from alerts and recent changes; Meta and Microsoft have published results from such systems. Start read-only, with the model suggesting and a person deciding, check its suggestions against what actually happened, and keep it away from production writes unless the action is reversible and approved. An ops assistant that is down or wrong must never slow the response.

      Test yourself on this topic

      3 graded questions · scored out of 100 with feedback · free

      Start the 3 questions

Practise the AI Reliability Engineer roadmap

278 questions, each graded on the server out of 100. Free · no card.

All career paths