Monitoring, Logging, and Observability Questions
Understanding running systems through their signals. Covers metrics, logs, and traces, instrumentation, dashboards, alerting design, and log analysis and correlation for debugging production. Emphasizes designing observability so problems are detectable and diagnosable before users are affected.
How would you explain the difference between monitoring and observability to a non-technical stakeholder, like a product manager who wants to know why the team needs both?
Sample Answer
Direct answer
Monitoring is watching the specific things you already decided matter, like a car's dashboard gauges: speed, fuel, engine temperature. It tells you when something you anticipated crosses a line. Observability is the ability to ask a brand-new question about the system's internal state when something unexpected happens, without shipping new code first, closer to a mechanic plugging in a diagnostic tool and tracing an unfamiliar problem to its source. Product teams need both because most day-to-day issues are things you can anticipate, and monitoring catches those cheaply and fast, while production systems, especially ones with many moving services, regularly break in ways nobody predicted, and only observability lets you investigate those without guessing.
How to frame it
| Dimension | Monitoring | Observability |
|---|---|---|
| Core question | Is the thing I already watch OK? | What is actually happening, even for something I did not anticipate? |
| Set up | Dashboards and fixed thresholds, before the problem | Rich telemetry (traces, structured logs), also before the problem, but queried after |
| Good at | Known failure modes: disk full, high error rate | Novel failure modes: one customer segment failing due to an edge-case interaction |
| Cost driver | Number of dashboards and alerts to maintain | Volume and cardinality of the telemetry collected |
| Fails silently when | A problem nobody thought to watch for occurs | The telemetry was not rich enough to answer the new question |
Why a product team needs both
- Monitoring answers "should we page someone right now" cheaply and reliably for failure modes already seen before.
- Observability answers "why is this specific request slow" for a failure mode nobody wrote an alert for; without it, engineers fall back to guessing and redeploying with extra logging, which is slow and disruptive to users.
- A team with only monitoring gets blindsided by novel incidents. A team with only observability, rich data but no alerts, finds out about problems only when a customer complains, because nobody was watching in the first place.
Worked example
Say a checkout service starts timing out for a small number of users, but only when they have more than twenty items in their cart, a combination nobody anticipated. Monitoring shows the overall error rate ticking up slightly, easy to dismiss as noise since it stays under the alert threshold. Observability lets an engineer query the traces for the failing requests directly, group them by cart size, and see the pattern within minutes instead of guessing through a redeploy-and-wait cycle.
Trade-offs and pitfalls
- When explaining this to a non-technical stakeholder, leading with tool names (one platform versus another) instead of the underlying capability difference loses the audience fast.
- Observability is a property of how much context the system emits, not a tool you buy; a platform without good context (structured logs, trace propagation feeding it) does not create observability by itself.
- Investing only in observability tooling without monitoring and alerting still means nobody notices a known, well-understood failure mode until a customer reports it.
The same service needs a dashboard for the on-call engineering team and a very different one for a business stakeholder. How would the metrics, visualization choices, time ranges, and alerting differ between the two, and what's a panel or alert you'd deliberately leave off one of them?
Sample Answer
Direct answer
The SRE dashboard and the business dashboard should be built from the same underlying events but answer different questions: the SRE dashboard needs to answer "what's broken right now and where," so it's dense, high-resolution, and short-windowed; the business dashboard needs to answer "is the product healthy from a user or revenue standpoint," so it's sparse, trend-oriented, and longer-windowed. Alerting follows the same split: SRE alerts are operational and verbose, business alerts are outcome-level and rare.
How the two dashboards differ
| Dimension | SRE / on-call dashboard | Business stakeholder dashboard |
|---|---|---|
| Metrics | Per-endpoint error rate, p50/p95/p99 latency, saturation (CPU, memory, queue depth), dependency health | Conversion rate, revenue per hour, active users, overall uptime percentage |
| Visualization | Time series with drill-down, heatmaps for latency, per-host/region breakdowns | Single big numbers, simple trend lines, week-over-week or month-over-month comparisons |
| Time range | Minutes to hours, short enough to catch and react to an active incident | Days to months, long enough to see real trend versus daily noise |
| Alerting | High verbosity, pages on technical thresholds (e.g. p99 over 2s for 5 minutes), links to runbooks | Low verbosity, notifies on business impact only (e.g. conversion down sharply versus baseline), plain-language summary |
A flow from shared telemetry to two different views
flowchart LR
A[Raw telemetry: request events] --> B[High-resolution metrics store]
A --> C[Business event stream]
B --> D[SRE dashboard]
C --> E[Hourly and daily rollups]
E --> F[Business dashboard]
D -.drill-down link.-> F
Both dashboards should compute from the same raw events (not two independently instrumented pipelines) so that when a stakeholder asks "why did conversion drop," the SRE dashboard's drill-down actually explains it, instead of the two numbers just disagreeing.
What I'd deliberately leave off each
Off the SRE dashboard: revenue and business-outcome panels. They're not actionable for an on-call engineer during an incident and just add noise to a screen that needs to be scanned in seconds.
Off the business dashboard: raw error-rate and per-host technical panels, and just as important, anything that exposes PII. A stakeholder-facing dashboard is more likely to be screen-shared in a broader meeting or exported into a slide deck than an internal SRE tool, so panels built directly from raw log or event data (which might carry user IDs, emails, or IP addresses) need to be aggregated or scrubbed before they reach that surface, not just visually simplified.
Trade-offs and pitfalls
- Building genuinely separate pipelines for the two dashboards (instead of one source feeding both) is the most common mistake: it's less work up front but guarantees the two views eventually disagree, which destroys trust in both.
- SRE alerts are tuned for recall (better to page on a false positive than miss a real incident); business alerts are tuned for precision (a business stakeholder paged on noise will stop trusting the channel fast). Using the same alerting sensitivity for both is a common failure mode.
- A dashboard trying to serve both audiences at once usually serves neither well: too dense for a business reader, too shallow for on-call triage. Linking between them is good; merging them into one view usually isn't.
What are the three pillars of observability? For each one, explain what kind of question it's best at answering, one blind spot it has on its own, and a concrete example of a production issue it would help you catch.
Sample Answer
Direct answer
Observability rests on three complementary signal types: metrics, logs, and traces. Metrics tell you something is wrong and roughly how bad; logs tell you what specifically happened in a given event; traces tell you where in a multi-service request the time or failure occurred. None of the three alone gives a complete picture: a strong incident response usually starts with one pillar to detect and scope the problem, then pivots to another to find root cause.
The three pillars
| Pillar | Best at answering | Blind spot alone | Production issue it would catch |
|---|---|---|---|
| Metrics | "Is something wrong right now, and how widespread?" (aggregated time series: rates, latencies, saturation) | No per-request context, can't tell you which specific request or user was affected | A slow memory leak: heap usage climbing steadily over days trips a capacity alert before an out-of-memory crash |
| Logs | "What exactly happened for this one request or event?" (discrete, timestamped records) | Expensive to query in aggregate at scale; no built-in sense of "normal," so you need to already suspect something to search for it | A payment failing with a specific exception, e.g. a null card-token field surfaced in the stack trace, that a dashboard would only show as "errors up" |
| Traces | "Where in the call chain did the time or failure happen?" (request-scoped, spans across services) | Usually sampled, so rare failures can be missed entirely; requires instrumentation and consistent context propagation to be useful | A checkout endpoint's p99 latency doubles; a trace shows 900ms of the 1000ms total sitting in a single downstream inventory-service span, isolating exactly which hop got slow |
Instrumentation example, one flow
For a checkout endpoint, an on-call engineer might instrument it like this: a checkout_requests_total counter metric with labels {status, payment_provider}, plus a checkout_latency_seconds histogram with the same labels for percentiles; a structured log line at the point of failure with fields {request_id, trace_id, error_type, payment_provider}; and a trace with spans named checkout.validate, checkout.charge, checkout.persist, each carrying the same trace_id that appears in the log line. The shared trace_id and request_id are what let you jump from "the metric moved" to "here is the specific failing request" to "here is the exact log line explaining why."
Trade-offs and pitfalls
- Treating one pillar as sufficient is the most common mistake: teams that only have logs end up searching blind during an incident because they have no aggregated signal telling them where to look first; teams that only have metrics can detect a problem but can't explain it.
- High-cardinality labels (like an unbounded user_id on a metric) turn cheap metrics into an expensive, slow-to-query mess; that data belongs in logs or traces instead.
- Trace sampling is a real trade-off: full sampling captures every rare failure but is expensive at scale; low sampling rates are cheap but can miss the exact failing request you need. Tail-based sampling (keep traces for slow or error requests) is a common middle ground.
- Retention windows differ by pillar in practice (metrics are cheap to keep for months, verbose logs and full traces are usually much more expensive to retain), which shapes how far back a postmortem can actually look.
Product stakeholders are asking for 99.999% availability, but your historical data shows you've been running at 99.90%. How do you approach that conversation? Walk through how you'd figure out what's realistic, what closing the gap would actually cost, and how you'd present the trade-off.
Sample Answer
Direct answer: Don't argue with the target directly, translate it into downtime and cost first, then let the numbers make the case. 99.999% and 99.90% sound close as percentages but are wildly different in engineering effort, so the conversation should start with "here's what each number actually means in hours per month, and here's what closing that gap costs," not with "that's unrealistic."
Structured elaboration
Step 1: quantify the current and requested gap
- Translate both numbers into allowed downtime over a fixed period so stakeholders can compare them concretely instead of abstractly.
- Segment by user journey: does every feature need five nines, or is that only true for the checkout path while, say, the recommendations widget could tolerate far less?
Step 2: figure out what closing the gap costs
- 99.9% failures are usually single points of failure fixable with redundancy (a second AZ, a retry policy, better health checks).
- 99.999% failures are usually deep systemic issues: multi-region active-active, consensus protocol correctness, extensive chaos and failover testing, on-call structured around instant automated failover rather than human response. This is a different order of engineering investment, not an incremental tightening of the same knobs.
- Put a rough cost shape on it: infrastructure (multi-region redundancy, cross-region data replication), engineering time (redesign, extensive testing), and ongoing operational cost (more complex on-call, more failure modes to reason about).
Step 3: present the trade-off, not a refusal
- Bring a recommendation, not just a "no": propose a tiered SLO where the critical path gets closer to the ask and non-critical paths stay at a lower, still-honest target.
- Frame it as a business decision with a number attached ("closing this gap is roughly this much more engineering investment for this much less downtime"), and let the stakeholder weigh it against the actual cost of the downtime they're trying to eliminate.
Worked example
Convert both availability targets into monthly downtime, using a 30-day month:
Total minutes in 30 days=30×24×60=43,200 minutesAt 99.90% availability, allowed downtime is:
(1−0.999)×43,200=43.2 minutes per monthAt 99.999% availability, allowed downtime is:
(1−0.99999)×43,200=0.432 minutes per month≈26 seconds per monthSo the ask is to go from "43 minutes of downtime is acceptable per month" to "26 seconds is acceptable per month," a reduction by a factor of 100. That is the number that belongs in front of stakeholders: not "99.999% vs 99.90%," which reads as a small gap, but "you're asking us to reduce acceptable downtime by 100x," which reads as what it actually is.
Trade-offs & pitfalls
- Presenting only the technical difficulty without a cost estimate lets the conversation drift back into "just make it more reliable," because the stakeholder has no number to weigh against their own priorities. Always attach a cost shape, even a rough one, to the technical explanation.
- Refusing outright ("that's not realistic") without an alternative reads as obstruction. Bringing a tiered proposal (five nines on the critical path, a lower honest target elsewhere) turns the conversation from a refusal into a negotiation.
- The same negotiation skill runs in the other direction too: sometimes the ask is to relax an SLO on a non-critical feature to buy delivery speed, and the same three-step structure applies, quantify the current target, quantify what's being traded for the relaxation, and bring a recommendation rather than a bare yes or no.
- A related variant is a stakeholder who wants an undefined "real-time" latency target with no explicit number and no budget attached. The same translate-to-concrete-cost approach applies: get them to state an actual number (or propose one based on what's technically and financially reasonable), then price it the same way, because "real-time" without a number isn't a target you can build against or budget for.
Your team is getting paged multiple times a day for the same handful of transient issues, and people are starting to tune out pages. How would you triage and reduce the noise, and what would you tackle first versus later?
Sample Answer
Direct answer
I'd triage in two tracks in parallel: an immediate mitigation track to stop the bleeding on the noisiest alerts within the first day or two, and a root-cause track to actually fix the underlying transient issues over the following weeks. The mistake to avoid is spending the first few days trying to permanently fix everything while the team keeps getting paged and burning out in the meantime.
Triage framework
- Classify first: pull the last few weeks of pages and bucket each recurring alert into actionable, noisy/transient, or purely informational. This alone usually reveals that a small number of alert types account for most of the pain.
- Tackle short-term mitigation first, on the noisiest few: for the top offenders, apply the fastest safe lever, raising thresholds, adding a sustain window, deduplicating, or muting known-safe transient conditions, even if it isn't a permanent fix. The goal here is to buy the team breathing room within days, not weeks.
- Tackle long-term fixes second, in priority order by pain caused: for each recurring transient issue, decide whether the actual system behavior needs to change (fix the flaky dependency, add a retry with backoff, add a circuit breaker) versus whether the alert's threshold was just miscalibrated for expected behavior. These fixes take longer and often need code changes, not alert-config changes.
- Close the loop with runbooks and ownership: any alert that stays as a page needs an owner and a runbook; any alert that gets demoted to non-paging needs somewhere it's still visible (dashboard, low-priority channel) so a real trend isn't silently lost.
What I'd tackle first versus later
First, within days, alert-config only, low risk: raise thresholds and add sustain windows on the highest-frequency offenders; deduplicate related alerts into single grouped incidents; mute alerts that reliably self-resolve within a known window.
Later, over weeks, may need code changes, higher risk: fix the actual flaky dependency or add resilience patterns (retries, circuit breakers, backpressure) to the code paths generating the transient failures; automate remediation for the handful of alert types where the fix is always the same safe action; re-review severity levels team-wide once the noise is down enough to see the real signal clearly.
The ordering matters: doing the code-level fixes first without the alert-config triage means the team is still being paged constantly while those slower fixes are in flight, and burned-out engineers make worse decisions on exactly the fixes that need the most care.
Trade-offs and pitfalls
- Muting an alert instead of understanding it first is the most common shortcut that backfires: if the "transient" issue is actually a slow-building real problem, muting removes the only signal the team had.
- Short-term mitigations (looser thresholds, muting) need an expiry or a follow-up ticket, otherwise they quietly become permanent and the underlying issue never gets fixed because the pain that would have driven the fix is gone.
- Prioritizing purely by page volume can miss a low-frequency but high-severity alert that's genuinely important; triage by a combination of frequency and impact, not frequency alone.
Unlock Full Question Bank
Get access to all 11 Monitoring, Logging, and Observability interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.