PrepStack › DevOps & Cloud › Observability

Observability interview cheat sheet

Logs, metrics, traces, Prometheus, OpenTelemetry, SLOs and on-call

Observability interviews check whether you can find out why production is broken without shipping new code. Expect questions on the three pillars, metric types and cardinality, Prometheus and PromQL, distributed tracing with OpenTelemetry, and SLOs with error budgets and burn-rate alerts. Senior rounds add alert design, incident management and telemetry cost. Read the 15-minute revision first, then walk through the debugging scenarios out loud.

15-minute revision

  1. Monitoring watches known failure modes with predefined checks. Observability lets you ask new questions about unknown failures from the telemetry the system already emits.
  2. Three pillars: logs (discrete events with detail), metrics (cheap numeric time series), traces (one request's path across services). Profiles and events are the newer additions.
  3. Log in structured JSON with a level, timestamp, service and a correlation / trace id, so you can join logs across services and jump from a trace to its logs.
  4. Four Prometheus metric types: counter (only goes up), gauge (up and down), histogram (buckets, aggregatable), summary (client-side quantiles, not aggregatable).
  5. Cardinality = number of unique label combinations. Never put user ids, request ids or raw URLs in metric labels.
  6. RED for services (Rate, Errors, Duration). USE for resources (Utilisation, Saturation, Errors). Golden signals: latency, traffic, errors, saturation.
  7. Prometheus pulls (scrapes) /metrics over HTTP, stores samples in a local TSDB, evaluates rules, and sends alerts to Alertmanager for grouping, routing and silencing.
  8. rate() = per-second average over the range and handles counter resets. irate() uses only the last two samples. increase() = rate() × range. Always rate a counter before sum.
  9. Percentiles from histograms: histogram_quantile(0.95, sum by (le) (rate(x_bucket[5m]))). Averages hide tail latency.
  10. A trace is a tree of spans sharing one trace id. Context travels in the W3C traceparent header: version-traceid-parentid-flags.
  11. Head sampling decides at the start (cheap, may drop errors). Tail sampling decides after the trace ends (keeps errors and slow traces, needs buffering in a Collector).
  12. OpenTelemetry = vendor-neutral API + SDK + Collector (receivers → processors → exporters) + the OTLP protocol (gRPC 4317, HTTP 4318).
  13. SLI = measured ratio of good events. SLO = internal target for it. SLA = contract with penalties. Error budget = 1 − SLO (99.9% ⇒ ~43 min per 30 days).
  14. Burn rate = how fast you spend the budget (1 = exactly on budget). Page on fast burn (14.4× over 1h and 5m), ticket on slow burn: multiwindow, multi-burn-rate alerts.
  15. Alert on symptoms users feel, not causes. Every page needs an owner, a runbook and an action. Track MTTD and MTTR; write blameless postmortems.
  16. Control telemetry cost with sampling, dropping debug logs and unused metrics, shorter retention, recording rules and strict label hygiene.

Foundations & logging

Monitoring vs observability

Monitoring tells you that a known thing broke. Observability helps you find why, even for failures you never predicted.

  • Monitoring: collect predefined metrics, draw dashboards, fire alerts on known thresholds. It answers questions you already thought of.
  • Observability is a property of the system: how well you can understand its internal state from its outputs (telemetry) without deploying new code.
  • Microservices, containers and autoscaling create unknown unknowns. You can't pre-build a dashboard for every failure, so you need rich, correlated, high-dimensional data.
  • Observability does not replace monitoring. Monitoring (alerts, SLOs) is how you detect; observability is how you debug.
  • Black-box monitoring tests from outside (probes, synthetic checks). White-box monitoring uses data the app exposes (metrics, logs, traces).

Interview questions

  • What is the difference between monitoring and observability?
  • Why did observability become important with microservices?
  • What is black-box vs white-box monitoring?

The pillars: logs, metrics, traces (+ profiles, events)

Metrics tell you something is wrong, traces tell you where, logs and profiles tell you why.

  • Metrics: numeric samples over time with labels. Cheap to store and query, ideal for dashboards and alerts, but aggregated, so detail is lost.
  • Logs: timestamped records of discrete events. Most detail, but expensive at volume and hard to aggregate unless structured.
  • Traces: the end-to-end path of one request as a tree of timed spans. Best for latency breakdowns and finding which service failed.
  • Profiles (continuous profiling): CPU, memory and lock usage by code line over time. Answers “which function burns the CPU”. OpenTelemetry is adding profiles as a fourth signal.
  • Events: notable changes such as deploys, config changes, feature-flag flips and scaling actions. Overlay them on dashboards; many incidents start with a change.
  • Correlation is the real value: an exemplar links a metric spike to a sample trace id, and logs carry the same trace_id so you can pivot between signals.

Interview questions

  • What are the three pillars of observability?
  • When would you use a metric instead of a log?
  • What is an exemplar?

Structured logging, levels & correlation IDs

Log machine-readable key-value events with a consistent level and a request or trace id on every line.

  • Structured logs (usually JSON) have fields like timestamp, level, service, msg, trace_id, user_id. Backends can filter and aggregate on fields instead of regex-parsing text.
  • Levels: TRACE/DEBUG for developers, INFO for normal business events, WARN for unusual but handled, ERROR for a failed operation, FATAL before the process dies.
  • Run production at INFO and allow changing the level at runtime for one service when debugging.
  • A correlation id (or request id) is created at the edge, passed in a header, and added to every log line. With OpenTelemetry, use the trace id and span id so logs link to traces.
  • Log to stdout in containers and let an agent ship the logs. Don't let the app manage log files.
  • Never log secrets, tokens, passwords or full card numbers. Mask PII at the source.

Interview questions

  • What is structured logging and why use it?
  • What is a correlation ID and how do you propagate it?
  • How do you choose log levels?

Centralised logging: ELK/EFK & Loki

Ship logs from every node to one searchable store. ELK indexes full text; Loki indexes only labels and is much cheaper.

  • Pipeline: collect (agent on each node reads container stdout) → process (parse, enrich with pod and namespace, drop, mask) → store → query and visualise.
  • ELK: Elasticsearch (store and full-text index), Logstash (heavy processing), Kibana (UI). EFK swaps Logstash for Fluentd or Fluent Bit, which are lighter and common on Kubernetes.
  • Loki (Grafana) indexes only a small set of labels (app, namespace, level) and stores compressed log chunks in object storage. Queries use LogQL and filter the text at query time.
  • Agents: Fluent Bit, Fluentd, Vector, Grafana Alloy (successor of Promtail, which is deprecated), Filebeat, and the OpenTelemetry Collector.
  • Use a buffer such as Kafka between agents and the store if bursts can overload indexing.
  • Set retention tiers: hot (days, fast) → warm → cold or archive (object storage) to control cost.

Interview questions

  • Why centralise logs?
  • Difference between ELK and Loki?
  • How would you design logging for 500 microservices on Kubernetes?

Metrics & Prometheus

Metric types: counter, gauge, histogram, summary

Counters only go up, gauges go both ways, histograms bucket observations on the server side of the query, summaries compute quantiles in the client.

  • Counter: a cumulative value that only increases and resets to 0 on restart. Examples: requests served, errors, bytes sent. Name ends in _total. Always query with rate() or increase().
  • Gauge: a current value that can go up or down. Examples: memory in use, queue depth, temperature, in-flight requests.
  • Histogram: counts observations into configurable cumulative buckets (_bucket{le="0.5"}) plus _sum and _count. Quantiles are computed at query time and can be aggregated across instances.
  • Summary: the client calculates quantiles (such as 0.99) over a sliding window. They are accurate per instance but cannot be averaged or summed across instances.
  • Newer native histograms in Prometheus use exponential, sparse buckets in a single series, so you don't have to pick bucket boundaries up front.
  • Units in names: use base units (_seconds, _bytes), e.g. http_request_duration_seconds.

Interview questions

  • Difference between a counter and a gauge?
  • Histogram vs summary: which and why?
  • Why can't you average percentiles?

RED, USE & the four golden signals

RED for request-driven services, USE for resources, golden signals as Google's general set. They tell you what to dashboard and alert on first.

  • RED (Tom Wilkie): Rate (requests/s), Errors (failed requests/s), Duration (latency distribution). Use it for every service and endpoint.
  • USE (Brendan Gregg): for every resource (CPU, memory, disk, network, connection pool) check Utilisation (% busy), Saturation (queued work), Errors.
  • Four golden signals (Google SRE book): latency, traffic, errors, saturation. It is RED plus saturation.
  • Measure latency for successful and failed requests separately: fast errors can make latency look better.
  • Use percentiles (p50, p95, p99), not averages. A small slow tail hits many users, since one page load makes many calls.
  • Saturation is the leading indicator: queue length, thread pool usage, connection pool waits, memory pressure, CPU throttling.

Interview questions

  • What are the four golden signals?
  • RED vs USE: when to use which?
  • Why use p99 latency instead of average?

Prometheus architecture: pull, scrape, exporters, TSDB

Prometheus discovers targets, scrapes their /metrics endpoint on an interval, stores samples in a local TSDB, and evaluates rules.

  • Data model: a time series is a metric name plus a set of labels, e.g. http_requests_total{method="GET",status="200"}, with (timestamp, float) samples.
  • Pull model: Prometheus scrapes targets over HTTP every scrape_interval (often 15–30 s). It records up = 1 or 0 per target, so a dead target is visible.
  • Service discovery: Kubernetes, Consul, EC2, file-based. Relabeling rewrites or filters targets and labels before scraping.
  • Exporters translate third-party metrics into the Prometheus format: node_exporter (host), kube-state-metrics, blackbox_exporter (probes), MySQL, Redis and so on. Your own apps use a client library.
  • Pushgateway is only for short-lived batch jobs that finish before a scrape. It is not a general push path.
  • TSDB: recent samples in memory (head block) plus a write-ahead log; every 2 hours they are compacted into immutable blocks on disk. Local storage is single-node, so use Thanos, Mimir or Cortex (via remote_write) for HA, global view and long retention.

Interview questions

  • Why does Prometheus pull instead of push? Pros and cons?
  • What is an exporter?
  • How do you scale Prometheus and keep data long-term?

PromQL: rate, irate, increase, histogram_quantile

Select series with label matchers, turn counters into rates over a range, then aggregate with sum by.

  • Instant vector: latest value of each series (up). Range vector: samples over a window (http_requests_total[5m]); range vectors feed functions like rate.
  • rate(c[5m]): per-second average increase over 5 minutes, corrected for counter resets and extrapolated to the window edges. Use it for alerts and most graphs.
  • irate(c[5m]): uses only the last two samples in the window. Very reactive and spiky; good for zoomed-in graphs, bad for alerts.
  • increase(c[1h]): total growth over the window (rate × seconds). It may return non-integers because of extrapolation.
  • Order matters: rate first, then sum: sum by (job) (rate(x[5m])). Summing raw counters breaks reset handling.
  • Make the range at least 4× the scrape interval so there are enough samples; Grafana's $__rate_interval does this for you.
  • Matchers: =, !=, =~ (regex), !~. Aggregations: sum, avg, max, topk, count, with by / without. offset 1w compares with last week.

Interview questions

  • Difference between rate, irate and increase?
  • Why must you apply rate() before sum()?
  • How do you calculate p95 latency across all instances?

Recording rules, alerting rules & Alertmanager

Recording rules precompute expensive queries; alerting rules fire when an expression stays true for a duration; Alertmanager groups, routes, inhibits and silences.

  • Recording rules evaluate a PromQL expression on an interval and save the result as a new series. Naming convention: level:metric:operations, e.g. job:http_requests:rate5m. They make dashboards fast and are the base for SLO alerts.
  • Alerting rules have expr, for (how long it must stay true, moving the alert from pending to firing), labels (such as severity) and annotations (summary, runbook URL).
  • keep_firing_for keeps an alert firing for a while after the condition clears, to reduce flapping.
  • Alertmanager: grouping (one notification for 50 pods failing), routing tree by labels to receivers, inhibition (mute warnings when a related critical alert fires), silences (mute during maintenance), and deduplication across HA Prometheus pairs.
  • Timers: group_wait (wait to batch the first notification), group_interval (wait before sending updates for a group), repeat_interval (re-notify if still firing).

Interview questions

  • What are recording rules and why use them?
  • What does Alertmanager do that Prometheus does not?
  • How would you stop an alert storm when a whole cluster goes down?

Grafana dashboards, Jaeger/Tempo & APM tools

Grafana visualises many data sources in one place. Jaeger and Tempo store traces. Datadog and New Relic sell the whole stack as a hosted APM.

  • Grafana connects to data sources (Prometheus, Loki, Tempo, Elasticsearch, CloudWatch, SQL) and renders panels; it does not store metrics itself.
  • Good dashboards: template variables ($service, $env), RED panels at the top, then dependencies and USE panels; annotations for deploys; links from panels to traces and logs.
  • Manage dashboards as code (JSON provisioning, Terraform, Jsonnet/Grafonnet) and review them like code. Grafana can also run alerts.
  • Jaeger (CNCF): trace storage and UI. Jaeger v2 is built on the OpenTelemetry Collector and accepts OTLP natively. Storage: Cassandra, Elasticsearch/OpenSearch, Badger, or memory.
  • Grafana Tempo: stores traces only in object storage, indexed by trace id, so it is cheap. Find traces through TraceQL, exemplars or trace ids in logs.
  • APM SaaS (Datadog, New Relic, Dynatrace, Elastic APM, Honeycomb): agents with auto-instrumentation, service maps, correlated logs/metrics/traces, RUM and synthetics out of the box. Fast to adopt, but cost grows with hosts, ingest volume and custom metrics.

Interview questions

  • What makes a good Grafana dashboard?
  • Jaeger vs Tempo?
  • When would you choose Datadog or New Relic over a self-hosted stack?

Distributed tracing & OpenTelemetry

Distributed tracing: spans & W3C trace context

A trace is a tree of spans with one trace id; the context is passed between services in the traceparent header.

  • A span is one timed operation: name, start and end time, trace id, span id, parent span id, kind (server, client, producer, consumer, internal), status, attributes and events.
  • The root span has no parent. Child spans form a tree, shown as a waterfall where you see which hop took the time.
  • Context propagation: the caller injects context into outgoing headers; the callee extracts it and makes its spans children. For queues, put it in message headers.
  • W3C traceparent: 00-<32 hex trace-id>-<16 hex parent-id>-<2 hex flags>. Flag bit 01 = sampled. All-zero ids and version ff are invalid.
  • tracestate carries vendor-specific data. Baggage (separate baggage header) carries app key-values such as tenant=acme to all downstream services; don't put secrets in it.
  • Older formats: Zipkin B3 (X-B3-TraceId), Jaeger uber-trace-id, AWS X-Amzn-Trace-Id. OTel propagators can read and write several.

Interview questions

  • What is a span and what does it contain?
  • How does context propagation work across services?
  • Explain the traceparent header.
  • Tracing vs logging: why not just log with a request id?

Sampling: head vs tail

Head sampling decides at the first span from the trace id; tail sampling decides after the whole trace is seen, so it can keep every error and slow trace.

  • Tracing every request at high traffic is expensive (network, storage, CPU). Sampling keeps a representative subset.
  • Head sampling: the root service decides up front, e.g. 10% by trace id, and passes the decision downstream via the sampled flag. Cheap and simple, but blind: a rare error trace is dropped 90% of the time.
  • OTel samplers: AlwaysOn, AlwaysOff, TraceIdRatioBased, and ParentBased(root=...), which follows the caller's decision so traces aren't cut in half.
  • Tail sampling: all spans go to a Collector layer that buffers each trace for a few seconds, then applies policies: keep all errors, all traces over 1 s, 5% of the rest.
  • Tail sampling needs all spans of a trace on the same Collector instance: use the loadbalancing exporter keyed by trace id in front of the tail-sampling tier. It costs memory and adds a decision delay.
  • Metrics should be computed before sampling (or from all spans), otherwise request rates and error counts are wrong. Record the sampling rate to extrapolate.

Interview questions

  • Head-based vs tail-based sampling?
  • How do you run tail sampling at scale?
  • If you sample 10% of traces, can you still compute error rates from traces?

OpenTelemetry: API, SDK, Collector, OTLP

OpenTelemetry is the vendor-neutral CNCF standard for producing and shipping traces, metrics and logs: instrument once, send anywhere.

  • API: interfaces your code and libraries call (tracer.start_as_current_span). With no SDK installed it is a no-op, so libraries can depend on it safely.
  • SDK: the implementation: samplers, span processors (batching), resource detection, metric readers and exporters.
  • Collector: a separate binary (agent on each node or a gateway tier) with pipelines of receivers → processors → exporters, plus connectors that turn one signal into another (e.g. spans → RED metrics).
  • OTLP: the native protocol over gRPC (port 4317) or HTTP/protobuf (port 4318). Most backends now accept it directly.
  • Auto-instrumentation: agents or wrappers (Java agent, opentelemetry-instrument for Python, Node --require hooks, Kubernetes Operator injection, eBPF) that instrument popular frameworks without code changes.
  • Manual instrumentation: you create spans and attributes for business logic (order.id, cart.items) and custom metrics.
  • Semantic conventions: standard attribute names such as service.name, http.request.method, http.response.status_code, db.system, so tools understand data from any language. Set service.name on every service.

Interview questions

  • What is OpenTelemetry and what problem does it solve?
  • Difference between the OTel API and SDK?
  • Why run an OpenTelemetry Collector?
  • Auto vs manual instrumentation?
  • What are semantic conventions and why do they matter?

SLOs, alerting & incidents

SLIs, SLOs, SLAs & error budgets

SLI = what you measure, SLO = the target you aim for, SLA = what you promise customers with penalties; the error budget is the allowed failure, 1 − SLO.

  • SLI: a ratio of good events to valid events, e.g. requests served under 300 ms with non-5xx / all requests. Measure as close to the user as you can (load balancer, client).
  • SLO: a target for an SLI over a window, e.g. 99.9% over 30 rolling days. Set by engineering and product together, based on what users need, not on what you have today.
  • SLA: an external contract with consequences (credits). It should be looser than the SLO so you get warned before you breach it.
  • Error budget = 1 − SLO. With 99.9% you may fail 0.1% of requests, about 43 minutes of full downtime per 30 days.
  • Error budget policy: if the budget is spent, freeze risky releases and focus on reliability; if budget remains, ship faster and experiment.
  • 100% is the wrong target: users can't tell 99.999% from 100% through their own Wi-Fi, and each extra nine costs a lot more.

Interview questions

  • Difference between SLI, SLO and SLA?
  • What is an error budget and how is it used?
  • How would you choose SLIs for an e-commerce checkout API?
  • Why not aim for 100% availability?

Burn-rate alerting (multiwindow, multi-burn-rate)

Alert on how fast the error budget is being spent, using a long window for significance and a short window for fast reset.

  • Burn rate = observed error ratio / allowed error ratio. Burn rate 1 spends exactly the whole budget in the SLO window; burn rate 10 spends it in a tenth of the time.
  • Static thresholds (“error rate > 1% for 5 min”) are either noisy or slow. Burn-rate alerts tie urgency to budget impact.
  • SRE workbook recommendation for a 30-day SLO: page at burn 14.4 over 1 h (2% of budget), page at burn 6 over 6 h (5%), ticket at burn 1 over 3 days (10%).
  • Multiwindow: also require a short window (about 1/12 of the long one: 5 m, 30 m, 6 h) to be above the threshold, so the alert stops soon after the problem is fixed.
  • Build it from recording rules for the error ratio at each window (5m, 30m, 1h, 6h, 3d) to keep evaluation cheap.
  • Tools like Sloth and Pyrra (and Grafana SLO, Datadog, Google Cloud) generate these rules from a short SLO spec.

Interview questions

  • What is burn rate?
  • Why multiwindow, multi-burn-rate alerts instead of a fixed error threshold?
  • Where does 14.4 come from?
  • How do you handle SLO alerting for a service with very low traffic?

Alerting best practices & runbooks

Page only for urgent, user-visible, actionable problems; send everything else to tickets or dashboards; every alert links to a runbook.

  • Alert on symptoms (users see errors or slowness, SLO burning), not causes (CPU 90%, one pod restarted). Causes belong on dashboards and in tickets.
  • Every page must be urgent, actionable and needing human judgement. If the response is always the same, automate it.
  • Alert fatigue: too many noisy or non-actionable alerts make people ignore all of them. Track alerts per shift and the share that needed action; delete or tune the rest.
  • Severity levels: page (wake someone now), ticket (business hours), info (no notification).
  • Each alert has an owner, a clear summary with impact, a runbook link, and a dashboard link.
  • A runbook (playbook) says what the alert means, how to check impact, first mitigation steps (roll back, scale, fail over), escalation contacts and links.

Interview questions

  • What is alert fatigue and how do you fix it?
  • Symptom-based vs cause-based alerting?
  • What makes a good runbook?
  • How would you review an existing noisy alerting setup?

On-call & incident management

Detect fast, mitigate first, communicate clearly with defined roles, then learn through blameless postmortems.

  • On-call: a rotation with primary and secondary, clear escalation policies (PagerDuty, Opsgenie, Grafana OnCall), handover notes and a sustainable load (Google suggests at most about 2 incidents per 12-hour shift).
  • Severity levels (SEV1–SEV4) based on user impact decide who joins, how fast, and how often updates go out.
  • Roles: Incident Commander (coordinates, decides, does not debug), Ops / tech lead (hands on keyboard), Communications lead (status page, stakeholders), Scribe (timeline).
  • Mitigate before root cause: roll back, fail over, scale out, flip a feature flag. Debug fully after users are safe.
  • Blameless postmortem: timeline, impact, root cause and contributing factors, what went well, action items with owners. Focus on systems and processes, not on who made the mistake.
  • Metrics: MTTD (time to detect), MTTA (to acknowledge), MTTR (to recover/resolve), MTBF (between failures). Reduce MTTD with good SLO alerts and MTTR with runbooks, rollbacks and observability.

Interview questions

  • What does an incident commander do?
  • What is a blameless postmortem?
  • Walk me through how you handle a SEV1 page.
  • How do you reduce MTTR?

Synthetic monitoring, RUM & health checks

Synthetics test the system with scripted traffic; RUM measures what real users experience; health checks tell the platform whether an instance can serve.

  • Synthetic monitoring: scripted probes or browser journeys (login, checkout) run from several regions on a schedule. Catches outages even with no traffic, gives a clean baseline; covers only the paths you scripted.
  • RUM (real user monitoring): a JS or mobile SDK records real page loads, Core Web Vitals (LCP, INP, CLS), JS errors and slow API calls, by browser, country and device.
  • Use both: synthetics for availability alerts and pre-production checks, RUM for true user experience and long-tail problems.
  • Liveness probe: is the process stuck? Failing restarts the container. Keep it cheap and don't check dependencies, or a DB blip will restart every pod.
  • Readiness probe: can this instance take traffic now? Failing removes it from load balancing without restarting. It may check critical dependencies and warm-up.
  • Startup probe: protects slow-starting apps by holding off liveness checks until the app has started.

Interview questions

  • Synthetic monitoring vs real user monitoring?
  • Liveness vs readiness probe?
  • Should a health check verify the database connection?

Production practice

Cardinality & telemetry cost control

Every unique label combination is a new series; unbounded labels and unsampled data are the main drivers of observability bills.

  • Cardinality of a metric = product of distinct values of its labels. Each series costs memory in Prometheus's head block and money per series in SaaS tools.
  • Unbounded labels to avoid: user id, email, request id, trace id, session id, full URL path with ids, raw error messages, timestamps. Put them in logs or traces instead.
  • Find offenders: Prometheus TSDB status page (/tsdb-status), topk(10, count by (__name__) ({__name__=~".+"})), scrape_series_added, vendor usage reports.
  • Controls: metric_relabel_configs to drop metrics or labels, sample_limit / label_limit per scrape job, recording rules plus shorter retention for raw data, aggregating in the Collector.
  • Logs: drop debug in production, sample repetitive success logs, don't log full payloads, route audit or rarely-read logs to cheap object storage, set retention per tier.
  • Traces: head or tail sampling, drop health-check spans, limit attribute sizes. Show each team its own telemetry cost (showback) so they own it.

Interview questions

  • What is cardinality and why does it matter in Prometheus?
  • A developer wants to add user_id as a metric label. What do you say?
  • Your observability bill doubled this quarter. How do you cut it?
  • How do you stop one bad deploy from exploding your metrics?

Debugging scenarios: latency spike & error rate up

Start from the user-facing symptom, scope it (who, where, since when), check what changed, then drill down from metrics to traces to logs and profiles.

  • Scope first: all endpoints or one? All regions, versions, pods, customers or a subset? Since when exactly? Slice the RED metrics by label.
  • What changed? Deploys, config, feature flags, traffic shape, dependency releases, infrastructure events. Deploy annotations on dashboards make this quick.
  • Latency spike: compare p50 vs p99 (all slow = saturation or a slow dependency; only the tail = GC pauses, lock contention, cold caches, retries, noisy neighbours). Open slow exemplar traces to see which span grew.
  • Error rate up: split by status code and route. 5xx from your code vs 502/503/504 from the proxy (upstream down or timing out) vs one dependency failing. Read the error logs filtered by trace_id from failing traces.
  • Check saturation (USE) of the suspected component: CPU throttling, connection pool waits, thread pools, DB locks, queue lag, memory and GC.
  • Mitigate first (roll back, scale out, fail over, disable the flag), then confirm recovery on the same graph that showed the symptom, then root-cause.

Interview questions

  • p99 latency of an API doubled after lunch. How do you investigate?
  • Error rate jumped from 0.1% to 5%. What are your first steps?
  • Metrics look fine but users complain the app is slow. Why might that be?
  • How do the three pillars work together in a real investigation?