CCAR-P · Study Guide

← Domain 3: Integration

3.4 · Lesson 4 of 8

Analyze observability challenges and select monitoring strategies at scale

What You Need to Know

Observability for Claude-integrated systems must expose LLM-specific failure modes: quality drift, cost spikes, latency regressions, tool errors, and guardrail triggers. Classic uptime checks are necessary but not sufficient. At high volume, architects also face retention, privacy, and cost constraints on prompt-level tracing — so sampling strategy becomes part of the design.

A solid pattern keeps always-on aggregates (latency, cost, error rates, canary quality), samples detailed traces with boosts on anomalies, redacts sensitive fields, and correlates traces to user outcomes. Alerts should route into runbooks and eval fixtures, not only chat noise.

Decision rules

  • Instrument prompts/tools/latency/cost — not only process uptime.
  • Sample strategically at scale; never choose between "everything" and "nothing".
  • Correlate traces with user outcomes and canary evals.
  • Redact secrets and sensitive payloads from exports.
  • Wire alerts to runbooks and regression fixtures.

What "at scale" changes

At low volume you can retain rich traces for every request. At millions of requests per day, full verbatim retention collides with cost, privacy, and query latency of the observability backend itself. Architects design a tiered approach: cheap always-on aggregates, sampled detail, and guaranteed capture for failures and canaries. Redaction is not optional when prompts may contain tokens or personal data.

Minimum LLM SLI set

  • Canary or offline eval pass rate
  • End-to-end and stage latencies (p50/p95)
  • Cost or tokens per request
  • Tool error and timeout rates
  • User outcome proxies (thumbs-down, reopen, task success)

When a stem says only HTTP uptime is green while quality slipped, the missing piece is LLM-specific monitoring — not another CDN check.

Exam application

Uptime-only monitoring is incomplete. At high volume, strategic sampling with redaction and quality/cost alerts is the aligned stance. Distractors: log everything including secrets, or drop all traces. Correlate to outcomes and close loops into evals.

Exam traps

  • Equating uptime with LLM health

    HTTP 200 with wrong answers, runaway cost, or tool storms is still an outage of quality.

  • All-or-nothing tracing

    Either tracing everything verbatim or tracing nothing. At scale, strategic sampling plus always-on aggregates is the exam-aligned stance.

  • Metrics without correlation to outcomes

    Token counts alone do not tell you users got correct answers. Tie traces to task success and complaints.

  • Storing secrets in traces

    Observability must redact credentials and sensitive fields — monitoring is not an excuse for data leakage.

Practice scenario

An LLM assistant serves millions of requests per day. The ops dashboard only shows HTTP uptime and CPU. Quality has silently degraded for a week. At this volume, tracing every full prompt verbatim is expensive. What monitoring strategy best fits?

Choose one answer

Build exercise

Stand up LLM observability for a high-volume assistant

40 minutes

What you'll learn

  • Define LLM SLIs beyond uptime
  • Write a sampling and redaction policy
  • Correlate traces with outcomes
  • Connect alerts to evals and runbooks
  1. Step 1

    Define LLM-specific SLIs beyond uptime

    Add quality score or eval canary pass rate, p95 latency, cost per request, tool error rate, and refusal/guardrail trigger rate.

    Why: Generic infra metrics do not surface hallucination, retrieval miss, or tool misuse.

    You should see: A dashboard panel list with owners and alert thresholds.

  2. Step 2

    Design a sampling policy

    Always keep aggregates. Sample detailed traces at a base rate; boost sampling on errors, high-cost outliers, and canary failures. Redact secrets.

    Why: Volume forces sampling; architecture must still leave a debug path.

    You should see: Written sampling rules and redaction list checked into the observability config.

  3. Step 3

    Correlate traces with user outcomes

    Join request IDs to CSAT, reopen rates, or task completion events so quality dips are actionable.

    Why: Exam items emphasize correlating model traces with outcomes, not orphan metrics.

    You should see: A drill-down from a quality alert to example traces and the related outcome metric.

  4. Step 4

    Close the loop into evals and runbooks

    When an alert fires, capture a fixture into the regression suite and document the first three debug steps.

    Why: Observability without operational response is incomplete architecture.

    You should see: A runbook link on the alert and a new eval case from the last incident.

Sources