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 Evin JohnPublished 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
| Signal | What it is | Best for | Cost driver |
|---|---|---|---|
| Metrics | Numeric time series with labels: request count, error count, latency histogram, queue depth | Dashboards, alerts, trends over weeks | Number of unique label combinations (cardinality) |
| Logs | Timestamped records of single events, ideally structured (JSON fields, not free text) | The detail of one failure: inputs, error message, stack trace | Volume: lines per request times traffic |
| Traces | A tree of timed spans for one request as it crosses services, linked by a trace ID | Finding which hop made a request slow or failed | How many traces you keep (sampling rate) |
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.
| Objective | Allowed failure | Roughly |
|---|---|---|
| 99% | 1% of 43,200 minutes | 432 minutes, about 7.2 hours |
| 99.9% | 0.1% of 43,200 minutes | 43.2 minutes |
| 99.99% | 0.01% of 43,200 minutes | 4.3 minutes |
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
| Method | Applies to | Measure |
|---|---|---|
| RED | Request-driven services | Rate (requests a second), Errors (failed share), Duration (latency distribution) |
| USE | Resources: CPU, memory, disks, queues, connection pools | Utilisation, Saturation (work waiting), Errors |
| Golden signals | Any user-facing service | Latency, traffic, errors, saturation |
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
| Prompt | Indicator worth naming | Useful trace or log |
|---|---|---|
| Rate limiter | Share of checks answered under 5 ms; fail-open count | Denials per rule, to catch a bad rule deploy |
| Notification system | Share of messages delivered within a minute | Per-provider error logs with message IDs |
| Live comments | Time from post to display at the 99th percentile | Trace from comment service through pub/sub to gateway |
| Ad click aggregator | Lag between event time and the closed window; late-event share | Reconciliation gaps per day |
| Payment system | Share of payments reaching a final state within a set time | Audit log of every state change |
8. Interview questions on observability
| Question | A 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 |
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
- 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.
