How to become an AI Reliability Engineer
Step by step and free: 12 phases, 85 topics and 278 graded practice questions.
Open any topic and mark it Learning, Done or Skip to track your progress. Sign in to save it to your account.
0 of 85 done · 0 learning · 0 skipped · Start with the first topic
Saved on this device only. Sign up free or sign in to keep your progress everywhere.
It's saved on this device only. Sign up free to keep it everywhere; your marks move into your account.
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
-
Phase 1 Foundations of AI reliability
-
Phase 2 SLIs, SLOs and error budgets
-
Phase 3 Observability for model calls
-
Phase 4 Monitoring and alerting
-
Phase 5 Failure modes of model-backed systems
-
Phase 6 Validation and guardrails at the model boundary
-
Phase 7 Resilience: retries, fallbacks and failover
-
Phase 8 Capacity, quotas and load
-
Phase 9 Safe rollouts of models and prompts
-
Phase 10 Drift and silent degradation
-
Phase 11 Incident response and postmortems
-
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.
-
Phase 1 · Foundations of AI reliability
-
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.
Reading
- Google SRE Book: Introduction sre.google
- AWS Well-Architected: Generative AI Lens docs.aws.amazon.com
- Anthropic: A postmortem of three recent issues anthropic.com
- Google SRE Workbook: How SRE relates to DevOps sre.google
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Google SRE Book: Embracing Risk sre.google
- Google SRE Book: Eliminating Toil sre.google
- Google SRE Book: Table of Contents sre.google
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Anthropic: Building effective agents anthropic.com
- Anthropic: A postmortem of three recent issues anthropic.com
- Google SRE Book: Monitoring Distributed Systems sre.google
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Azure Architecture Center: Baseline end-to-end chat architecture learn.microsoft.com
- AWS Well-Architected: Generative AI Lens docs.aws.amazon.com
- Anthropic: Building effective agents anthropic.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Google SRE Book: Availability Table sre.google
- Google SRE Book: Embracing Risk sre.google
- AWS Builders' Library: Static stability using Availability Zones aws.amazon.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
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 -
-
Phase 2 · SLIs, SLOs and error budgets
-
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.
Reading
- Google SRE Book: Service Level Objectives sre.google
- Google SRE Workbook: Implementing SLOs sre.google
- Google SRE Workbook: SLO Engineering Case Studies sre.google
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Google SRE Workbook: Implementing SLOs sre.google
- Google SRE Book: Monitoring Distributed Systems sre.google
- Google Cloud: Introduction to uptime checks cloud.google.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- OpenTelemetry: GenAI metrics (semantic conventions) github.com
- Claude API: Streaming messages platform.claude.com
- OpenAI: Latency optimization platform.openai.com
- Prometheus: Histograms and summaries prometheus.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Google SRE Workbook: Implementing SLOs sre.google
- Claude Docs: Define success criteria and build evaluations platform.claude.com
- Zheng et al.: Judging LLM-as-a-Judge (arXiv) arxiv.org
- Hamel Husain: Your AI product needs evals hamel.dev
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Google SRE Book: Service Level Objectives sre.google
- Google SRE Workbook: Implementing SLOs sre.google
- Google SRE Workbook: SLO Engineering Case Studies sre.google
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Google SRE Workbook: Example Error Budget Policy sre.google
- Google SRE Book: Embracing Risk sre.google
- Google SRE Workbook: Implementing SLOs sre.google
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Yao et al.: tau-bench, tool-agent-user interaction (arXiv) arxiv.org
- Anthropic: Building effective agents anthropic.com
- OpenTelemetry: GenAI agent spans github.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Amazon Bedrock Service Level Agreement aws.amazon.com
- Google Cloud: Vertex AI Service Level Agreement cloud.google.com
- Google SRE Book: Service Level Objectives sre.google
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 3 · Observability for model calls
-
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.
Reading
- OpenTelemetry: Signals opentelemetry.io
- Prometheus: Metric and label naming prometheus.io
- Prometheus: Instrumentation prometheus.io
- AWS Builders' Library: Instrumenting distributed systems aws.amazon.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- OpenTelemetry: GenAI semantic conventions repository github.com
- OpenTelemetry: GenAI client inference spans github.com
- OpenTelemetry: Recording errors opentelemetry.io
- Claude API: Errors and request ids platform.claude.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- OpenTelemetry: GenAI agent spans github.com
- OpenTelemetry: Context propagation opentelemetry.io
- Anthropic: Building effective agents anthropic.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Claude API: Handling stop reasons platform.claude.com
- OpenTelemetry: GenAI client inference spans github.com
- Claude API: Streaming messages platform.claude.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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'.
Reading
- Claude Docs: Models overview (aliases and snapshots) platform.claude.com
- OpenTelemetry: GenAI client inference spans github.com
- Google SRE Workbook: Configuration Design sre.google
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- OWASP: Logging Cheat Sheet cheatsheetseries.owasp.org
- OpenTelemetry: GenAI spans and content capture github.com
- OWASP: Top 10 for LLM Applications genai.owasp.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- OpenTelemetry: Sampling opentelemetry.io
- OpenTelemetry Collector: Tail sampling processor github.com
- OpenTelemetry: Signals opentelemetry.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 4 · Monitoring and alerting
-
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.
Reading
- Google SRE Book: Monitoring Distributed Systems sre.google
- Prometheus: Histograms and summaries prometheus.io
- Dean and Barroso: The Tail at Scale research.google
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Claude Docs: Define success criteria and build evaluations platform.claude.com
- Hamel Husain: Your AI product needs evals hamel.dev
- Eugene Yan: Patterns for building LLM-based systems eugeneyan.com
- Anthropic: A postmortem of three recent issues anthropic.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Google Cloud: Introduction to uptime checks cloud.google.com
- Google SRE Book: Monitoring Distributed Systems sre.google
- Anthropic: A postmortem of three recent issues anthropic.com
- Chen et al.: How is ChatGPT's behavior changing over time? (arXiv) arxiv.org
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Claude API: Usage and Cost API platform.claude.com
- FinOps Foundation: FinOps for AI overview finops.org
- OWASP: Top 10 for LLM Applications genai.owasp.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Google SRE Workbook: Alerting on SLOs sre.google
- Google SRE Book: Monitoring Distributed Systems sre.google
- Prometheus: Alerting practices prometheus.io
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Google SRE Workbook: Alerting on SLOs sre.google
- Google SRE Workbook: Implementing SLOs sre.google
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Google SRE Workbook: Alerting on SLOs sre.google
- NIST Engineering Statistics Handbook: Control charts itl.nist.gov
- Anthropic: A postmortem of three recent issues anthropic.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
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 -
-
Phase 5 · Failure modes of model-backed systems
-
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.
Reading
- Google SRE Book: Testing for Reliability sre.google
- Thinking Machines: Defeating nondeterminism in LLM inference thinkingmachines.ai
- Claude Docs: Increase output consistency platform.claude.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Claude API: Rate limits platform.claude.com
- Google SRE Book: Handling Overload sre.google
- AWS Architecture Blog: Exponential backoff and jitter aws.amazon.com
- OpenAI: Rate limits platform.openai.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- gRPC: Deadlines grpc.io
- AWS Builders' Library: Timeouts, retries and backoff with jitter aws.amazon.com
- Claude API: Errors (long requests) platform.claude.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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
- Claude API: Errors platform.claude.com
- Anthropic status page status.anthropic.com
- OpenAI status page status.openai.com
- AWS Builders' Library: Implementing health checks aws.amazon.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Claude Docs: Context windows platform.claude.com
- Claude Docs: Token counting platform.claude.com
- Liu et al.: Lost in the Middle (arXiv) arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Barnett et al.: Seven failure points of RAG systems (arXiv) arxiv.org
- Claude Docs: Reduce hallucinations platform.claude.com
- Azure Architecture Center: Baseline end-to-end chat architecture learn.microsoft.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Cemri et al.: Why do multi-agent LLM systems fail? (arXiv) arxiv.org
- Anthropic: Building effective agents anthropic.com
- AWS Builders' Library: Making retries safe with idempotent APIs aws.amazon.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Azure OpenAI: Content filtering learn.microsoft.com
- Claude API: Handling stop reasons (refusal) platform.claude.com
- Rottger et al.: XSTest, exaggerated safety behaviours (arXiv) arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
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 -
-
Phase 6 · Validation and guardrails at the model boundary
-
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
- Claude Docs: Increase output consistency platform.claude.com
- Claude Docs: Structured outputs platform.claude.com
- Pydantic documentation docs.pydantic.dev
- OWASP: Top 10 for LLM Applications genai.owasp.org
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
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
- Instructor: Retrying on validation errors python.useinstructor.com
- Pydantic documentation docs.pydantic.dev
- Claude Docs: Structured outputs platform.claude.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Inan et al.: Llama Guard (arXiv) arxiv.org
- NVIDIA NeMo Guardrails documentation docs.nvidia.com
- Amazon Bedrock: Guardrails docs.aws.amazon.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- OWASP: Fail securely owasp.org
- AWS Builders' Library: Avoiding fallback in distributed systems aws.amazon.com
- NIST: AI Risk Management Framework nist.gov
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Google PAIR Guidebook: Errors and graceful failure pair.withgoogle.com
- EU AI Act: Article 14, human oversight artificialintelligenceact.eu
- NIST: AI Risk Management Framework nist.gov
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Martin Fowler: Feature Toggles martinfowler.com
- OpenFeature: Introduction openfeature.dev
- Google SRE Book: Release Engineering sre.google
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
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 -
-
Phase 7 · Resilience: retries, fallbacks and failover
-
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.
Reading
- Google SRE Book: Addressing Cascading Failures sre.google
- AWS Builders' Library: Making retries safe with idempotent APIs aws.amazon.com
- AWS Builders' Library: Timeouts, retries and backoff with jitter aws.amazon.com
- Azure Architecture Center: Retry pattern learn.microsoft.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Google SRE Book: Addressing Cascading Failures sre.google
- Martin Fowler: CircuitBreaker martinfowler.com
- Azure Architecture Center: Circuit Breaker pattern learn.microsoft.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Claude API: Errors platform.claude.com
- AWS Builders' Library: Using load shedding to avoid overload aws.amazon.com
- Google SRE Book: Addressing Cascading Failures sre.google
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Azure Architecture Center: Gateway in front of multiple model deployments learn.microsoft.com
- Amazon Bedrock: Cross-Region inference docs.aws.amazon.com
- LiteLLM: Proxy reliability and fallbacks docs.litellm.ai
- AWS Builders' Library: Avoiding fallback in distributed systems aws.amazon.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- OpenRouter: Provider routing openrouter.ai
- LiteLLM: Proxy reliability and fallbacks docs.litellm.ai
- Azure Architecture Center: Gateway in front of multiple model deployments learn.microsoft.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- AWS Builders' Library: Avoiding fallback in distributed systems aws.amazon.com
- AWS Builders' Library: Static stability using Availability Zones aws.amazon.com
- Google SRE Book: Testing for Reliability sre.google
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Dean and Barroso: The Tail at Scale research.google
- gRPC: Request hedging grpc.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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
- Claude API: Streaming messages (error events) platform.claude.com
- WHATWG HTML: Server-sent events html.spec.whatwg.org
- Claude API: Errors platform.claude.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 8 · Capacity, quotas and load
-
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
- Claude API: Rate limits platform.claude.com
- Claude Docs: Prompt caching platform.claude.com
- OpenAI: Rate limits platform.openai.com
- Azure OpenAI: Quotas and limits learn.microsoft.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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
- Claude API: Rate limits platform.claude.com
- Amazon Bedrock: Quotas docs.aws.amazon.com
- Vertex AI: Dynamic shared quota cloud.google.com
- Azure OpenAI: Quotas and limits learn.microsoft.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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
- Azure OpenAI: Provisioned throughput learn.microsoft.com
- Amazon Bedrock: Provisioned Throughput docs.aws.amazon.com
- Vertex AI: Provisioned Throughput cloud.google.com
- Claude API: Service tiers platform.claude.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- AWS Builders' Library: Avoiding insurmountable queue backlogs aws.amazon.com
- Azure Architecture Center: Queue-Based Load Leveling learn.microsoft.com
- Claude Docs: Batch processing platform.claude.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Google SRE Book: Handling Overload sre.google
- Google SRE Book: Addressing Cascading Failures sre.google
- AWS Builders' Library: Using load shedding to avoid overload aws.amazon.com
- Google SRE Workbook: Managing Load sre.google
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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
- Grafana k6 documentation grafana.com
- Locust documentation docs.locust.io
- Ray Project: LLMPerf github.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Google SRE Book: Reliable Product Launches at Scale sre.google
- Google SRE Workbook: Managing Load sre.google
- Claude API: Rate limits (ramp limits) platform.claude.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 9 · Safe rollouts of models and prompts
-
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.
Reading
- Google SRE Book: Release Engineering sre.google
- AWS Builders' Library: Automating safe, hands-off deployments aws.amazon.com
- Google SRE Workbook: Canarying Releases sre.google
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Claude Docs: Models overview (aliases and snapshots) platform.claude.com
- Claude Docs: Model deprecations platform.claude.com
- OpenAI: Deprecations platform.openai.com
- Vertex AI: Model versions and lifecycle cloud.google.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Google SRE Workbook: Configuration Design sre.google
- Google SRE Book: Release Engineering sre.google
- Claude Docs: Define success criteria and build evaluations platform.claude.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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
- Istio: Mirroring istio.io
- Amazon SageMaker: Shadow tests docs.aws.amazon.com
- Martin Fowler: Dark Launching martinfowler.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Google SRE Workbook: Canarying Releases sre.google
- Spinnaker: Canary analysis spinnaker.io
- Argo Rollouts: Analysis and progressive delivery argo-rollouts.readthedocs.io
- Martin Fowler: Canary Release martinfowler.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- AWS Builders' Library: Automating safe, hands-off deployments aws.amazon.com
- AWS Builders' Library: Ensuring rollback safety during deployments aws.amazon.com
- Argo Rollouts documentation argo-rollouts.readthedocs.io
- Flagger documentation docs.flagger.app
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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
- Claude Docs: Migration guides platform.claude.com
- Claude Docs: Model deprecations platform.claude.com
- OpenAI: Deprecations platform.openai.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Martin Fowler: Blue Green Deployment martinfowler.com
- Elasticsearch: Aliases elastic.co
- Barnett et al.: Seven failure points of RAG systems (arXiv) arxiv.org
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 10 · Drift and silent degradation
-
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.
Reading
- Anthropic: A postmortem of three recent issues anthropic.com
- Chen et al.: How is ChatGPT's behavior changing over time? (arXiv) arxiv.org
- Sculley et al.: Hidden technical debt in ML systems papers.nips.cc
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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
- Google ML Crash Course: Monitoring pipelines developers.google.com
- Vertex AI: Model Monitoring overview cloud.google.com
- Evidently documentation docs.evidentlyai.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Anthropic: A postmortem of three recent issues anthropic.com
- Chen et al.: How is ChatGPT's behavior changing over time? (arXiv) arxiv.org
- Claude API: Versioning platform.claude.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- NIST Engineering Statistics Handbook: Control charts itl.nist.gov
- Evidently documentation docs.evidentlyai.com
- Vertex AI: Model Monitoring overview cloud.google.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Google ML Crash Course: Monitoring pipelines developers.google.com
- Hamel Husain: Your AI product needs evals hamel.dev
- Google SRE Book: Managing Incidents sre.google
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
-
Phase 11 · Incident response and postmortems
-
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.
Reading
- Google SRE Book: Being On-Call sre.google
- Google SRE Workbook: On-Call sre.google
- Google SRE Book: Accelerating SREs to On-Call and Beyond sre.google
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- PagerDuty Incident Response: Severity levels response.pagerduty.com
- Atlassian: Incident severity levels atlassian.com
- Google SRE Book: Managing Incidents sre.google
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- PagerDuty Incident Response: Different roles response.pagerduty.com
- Google SRE Workbook: Incident Response sre.google
- Google SRE Book: Managing Incidents sre.google
- Atlassian: Incident management handbook atlassian.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Google SRE Book: Effective Troubleshooting sre.google
- Google SRE Book: Managing Incidents sre.google
- Google SRE: Incident management guide sre.google
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Google SRE Book: Effective Troubleshooting sre.google
- Anthropic: A postmortem of three recent issues anthropic.com
- Barnett et al.: Seven failure points of RAG systems (arXiv) arxiv.org
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Google SRE Book: Managing Incidents sre.google
- AWS Builders' Library: Ensuring rollback safety during deployments aws.amazon.com
- Google SRE Book: Emergency Response sre.google
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
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
- Claude API: Errors and request ids platform.claude.com
- Anthropic status page status.anthropic.com
- OpenAI status page status.openai.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Google SRE Book: Postmortem Culture sre.google
- Google SRE Workbook: Postmortem Culture sre.google
- Google SRE Book: Example Postmortem sre.google
- PagerDuty: Postmortem guide postmortems.pagerduty.com
Start the 4 questionsTest yourself on this topic
4 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Anthropic: A postmortem of three recent issues anthropic.com
- AI Incident Database incidentdatabase.ai
- Google SRE Book: Example Postmortem sre.google
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
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 -
-
Phase 12 · Resilience testing and readiness
-
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.
Reading
- Principles of Chaos Engineering principlesofchaos.org
- AWS Fault Injection Service: What is AWS FIS? docs.aws.amazon.com
- Netflix: Chaos Monkey github.com
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Shopify: Toxiproxy github.com
- Envoy: Fault injection filter envoyproxy.io
- Istio: Fault injection istio.io
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- AWS Well-Architected: Conduct game days regularly docs.aws.amazon.com
- Google SRE Book: Accelerating SREs to On-Call and Beyond sre.google
- Google SRE: Incident management guide sre.google
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Google SRE Book: The Evolving SRE Engagement Model sre.google
- Google SRE Book: Reliable Product Launches at Scale sre.google
- Google Research: The ML Test Score research.google
- Google SRE Workbook: SRE Engagement Model sre.google
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- AWS: Disaster recovery of workloads on AWS docs.aws.amazon.com
- Azure OpenAI: Business continuity and disaster recovery learn.microsoft.com
- Google SRE Book: Data Integrity sre.google
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
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.
Reading
- Meta Engineering: Leveraging AI for efficient incident response engineering.fb.com
- Chen et al.: Automatic root cause analysis via LLMs for cloud incidents arxiv.org
- Google SRE Book: Eliminating Toil sre.google
Start the 3 questionsTest yourself on this topic
3 graded questions · scored out of 100 with feedback · free
-
Practise the AI Reliability Engineer roadmap
278 questions, each graded on the server out of 100. Free · no card.
Other AI careers
- Agent Engineer
- AI Alignment Researcher
- AI Data Engineer
- AI Engineer
- AI Evals Engineer
- AI Governance Analyst
- AI Infrastructure Engineer
- AI Integration Engineer
- AI Product Manager
- AI Red Team Specialist
- AI Research Engineer
- AI Safety Engineer
- AI Security Engineer
- AI Solutions Architect
- AI Strategist
- Computer Vision Engineer
- Context Engineer
- Conversational AI Designer
- Forward-Deployed Engineer
- Inference Optimization Engineer
- ML Engineer
- Multimodal AI Engineer
- Post-Training Engineer