Observability in system design interviews

Observability is how well you can tell what a running system is doing, and why, from the data it emits. In practice that data is metrics (cheap numbers over time, for dashboards and alerts), logs (detailed records of individual events) and traces (the path of one request across services), tied together by shared request IDs and measured against service level objectives.

By Published 6 min read

1. What observability means

Monitoring answers questions you thought of in advance: is the error rate above 1%? Observability is the broader property of being able to answer new questions during an incident, such as "why are only Android users in one region seeing slow checkouts?", without shipping new code. You get there by emitting rich, consistent telemetry and keeping enough context (request ID, user segment, version, region) to slice it.

2. Why interviewers ask about it

Interviewers rarely ask "design observability" on its own. More often, after you draw a design, they ask how you would know it is healthy and how you would debug a slow request. A short, specific answer (these three indicators, this objective, alerts on burn rate, traces across these hops) signals production experience. A vague "add monitoring" signals the opposite.

3. The three signals

Metrics, logs and traces compared
SignalWhat it isBest forCost driver
MetricsNumeric time series with labels: request count, error count, latency histogram, queue depthDashboards, alerts, trends over weeksNumber of unique label combinations (cardinality)
LogsTimestamped records of single events, ideally structured (JSON fields, not free text)The detail of one failure: inputs, error message, stack traceVolume: lines per request times traffic
TracesA tree of timed spans for one request as it crosses services, linked by a trace IDFinding which hop made a request slow or failedHow many traces you keep (sampling rate)
Metrics, logs and traces compared. Scroll sideways on a small screen.

The signals are most useful when connected. Put the trace ID in every log line, attach example trace IDs to latency histograms where your tools allow it, and use the same service and version labels everywhere. OpenTelemetry is a widely used vendor-neutral standard for producing all three, which keeps instrumentation separate from where the data is stored.

4. SLIs, SLOs and error budgets

  • Service level indicator (SLI): a measurement of what users experience, as a ratio of good events to all events. Examples: share of requests answered without a server error; share answered within 300 ms; share of messages delivered within a minute.
  • Service level objective (SLO): a target for an SLI over a window, such as 99.9% of requests successful over 30 days.
  • Error budget: what the objective allows to fail. Teams spend it on releases and experiments and slow down when it runs low.
  • Service level agreement (SLA): a contract with customers, usually looser than the internal objective, with consequences if missed.
What an availability objective allows over 30 days (computed)
ObjectiveAllowed failureRoughly
99%1% of 43,200 minutes432 minutes, about 7.2 hours
99.9%0.1% of 43,200 minutes43.2 minutes
99.99%0.01% of 43,200 minutes4.3 minutes
What an availability objective allows over 30 days (computed). Scroll sideways on a small screen.

Burn-rate alerts. Instead of alerting when errors exceed a fixed number, alert when the budget is being spent too fast. A burn rate of 1 uses exactly the budget over the window; a burn rate of 14.4 sustained for one hour uses 2% of a 30-day budget (14.4 x 1 hour / 720 hours), which is worth paging someone. Pairing a long and a short window (one hour and five minutes) avoids paging for a spike that already ended. This approach is described in Google's SRE workbook.

5. What to measure: RED and USE

Two checklists for choosing metrics
MethodApplies toMeasure
REDRequest-driven servicesRate (requests a second), Errors (failed share), Duration (latency distribution)
USEResources: CPU, memory, disks, queues, connection poolsUtilisation, Saturation (work waiting), Errors
Golden signalsAny user-facing serviceLatency, traffic, errors, saturation
Two checklists for choosing metrics. Scroll sideways on a small screen.

Record latency as a histogram, not an average. An average hides the slow tail that users complain about, and averages from different servers cannot be combined into a correct percentile, while histogram buckets can be summed.

6. Cardinality, volume and sampling

  • Cardinality. Each unique combination of label values is a separate time series. 200 endpoints x 5 status classes x 10 regions x 50 pods is already 500,000 series. Adding a user ID label with a million values multiplies that by a million. Keep unbounded values (user IDs, request IDs, full URLs) out of metric labels and put them in logs and traces.
  • Log volume. At an assumed 20,000 requests a second, 5 log lines per request and about 500 bytes a line, a service writes about 4.3 TB of logs a day. Log at the right level, drop noisy debug lines in production, and keep detailed logs for days, not years.
  • Head sampling decides at the start of a request whether to keep its trace (say 1%). Cheap and simple, but it throws away most of the rare slow or failed requests you care about.
  • Tail sampling buffers spans and decides after the request finishes: keep every error and every slow trace, plus a small random share of normal ones. Better data, at the cost of a collector that holds spans in memory for a few seconds.

7. How it shows up in common prompts

The observability question in each walk-through
PromptIndicator worth namingUseful trace or log
Rate limiterShare of checks answered under 5 ms; fail-open countDenials per rule, to catch a bad rule deploy
Notification systemShare of messages delivered within a minutePer-provider error logs with message IDs
Live commentsTime from post to display at the 99th percentileTrace from comment service through pub/sub to gateway
Ad click aggregatorLag between event time and the closed window; late-event shareReconciliation gaps per day
Payment systemShare of payments reaching a final state within a set timeAudit log of every state change
The observability question in each walk-through. Scroll sideways on a small screen.

8. Interview questions on observability

Questions you may be asked and what a strong answer covers
QuestionA strong answer covers
What is the difference between monitoring and observability?Known questions versus new ones; rich context in telemetry
How would you define an SLO for this service?A user-facing ratio, a target, a window, and what happens when the budget runs out
What would you alert on?Symptoms and budget burn rate, with runbooks; causes go on dashboards
A request is slow sometimes. How do you find out why?Latency histograms to confirm, traces to find the hop, logs on that hop for the detail
Why not log everything?Cost, noise, and personal data in logs; structured, levelled, sampled logging instead
How do you trace across a message queue?Carry the trace context in message headers and link the consumer span to the producer span
What is high cardinality and why does it matter?Many label values create many series; storage and query cost grow with them
Questions you may be asked and what a strong answer covers. Scroll sideways on a small screen.

9. Mistakes to avoid

  • Averages for latency. Report percentiles from histograms.
  • Alerting on causes. High CPU with happy users is not a page; a burned error budget is.
  • Free-text logs. Structured fields make logs searchable and joinable with traces.
  • Personal data in telemetry. Mask or drop it at the source; logs are copied to many places.
  • Observability as an afterthought. Name your indicators when you draw the design, not when the interviewer asks.

10. How to talk about it in the interview

Fictional example

Closing a design with how you would run it
Interviewer
Say this checkout service is live. How do you know it is healthy?
Candidate
Two indicators: share of checkout requests that succeed and share that finish within 800 ms. Objectives of 99.9% and 99% over 30 days. I page on fast burn of either budget, using a one-hour and a five-minute window together, and everything else goes to dashboards.
Interviewer
Latency alarms fire. What next?
Candidate
The latency histogram by region and version tells me whether it is one deploy or one region. Then I open slow traces, which we keep through tail sampling, find the span that grew, and read the logs for that service using the trace ID.

Practicing with Natively

Questions about running a system usually come last, when you are tired and short of time. Practise closing every mock design with two indicators and an alerting rule. With Natively running on the practice call, you get a transcript to check whether you gave numbers or just said "monitoring", and live suggestions such as tail sampling or burn-rate alerts when the follow-up lands.

Questions people ask

What are the three pillars of observability?

Metrics, logs and traces. Metrics are cheap numeric time series for dashboards and alerts, logs record individual events in detail, and traces follow one request across services. They are most useful when linked by shared IDs and labels.

What is the difference between an SLI, an SLO and an SLA?

An SLI measures what users experience, such as the share of successful requests. An SLO is the internal target for it over a window, such as 99.9% over 30 days. An SLA is a contract with customers, usually looser, with consequences if it is missed.

How much downtime does 99.9% availability allow?

About 43 minutes over a 30-day window, since 0.1% of 43,200 minutes is 43.2 minutes. A 99.99% objective allows about 4.3 minutes.

What is head versus tail sampling in tracing?

Head sampling decides at the start of a request whether to keep its trace, which is cheap but loses most rare failures. Tail sampling decides after the request ends, so it can keep every error and slow trace plus a small share of normal ones, at the cost of buffering spans.

Where to go next

Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.

Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.

Keep reading

Put it on your own machine.

A live-conversation assistant that runs locally. Your conversations stay on your machine.

macOS 12+ · Windows 10/11

© 2026 Natively AI Private Limited

Source-available under the Natively Personal Use Source License v1.0 · IP geolocation by DB-IP