Interview Q&A · questions with model answers
Logging & Observability Interview Questions
Part of the study plan for: DevOps Engineer · Site Reliability Engineer (SRE) · Cloud Engineer · Backend Engineer
Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.
-
Most asked What is structured logging and why is it preferred over plain text logs?
Structured logging emits each log event as machine-readable key-value data (usually JSON) instead of free-form text, so logs can be filtered, aggregated and queried reliably.
-
Most asked What is a correlation (request) ID and how do you propagate it?
A correlation ID is a unique identifier assigned to a request at the edge and attached to every log line, outbound call and message it causes, so you can reconstruct everything that happened for one…
-
Most asked What is distributed tracing and how does OpenTelemetry fit in?
Distributed tracing records a request as a tree of timed spans across services; OpenTelemetry (OTel) is the vendor-neutral standard (APIs, SDKs, the OTLP protocol and the Collector) for producing…
-
Most asked What are the RED, USE and Four Golden Signals methods?
They're checklists for what to measure: RED (Rate, Errors, Duration) for request-driven services; USE (Utilization, Saturation, Errors) for resources like CPU, disks and pools; and Google's Four…
-
Most asked What are SLIs, SLOs and error budgets?
An SLI is a measured indicator of service quality (e.g., % of requests under 300 ms), an SLO is the target for it (99.9% over 30 days), and the error budget is the allowed failure (0.1%) that teams…
-
Most asked What should never be logged, and how do you prevent it?
Never log secrets (passwords, tokens, API keys, session cookies), full payment card data, or unnecessary personal data. Prevent it with redaction in the logging library, allow-listed fields, code…
-
What are head-based and tail-based sampling in tracing?
Head-based sampling decides whether to keep a trace at its start (e.g., 10% of requests), which is cheap but may drop interesting traces; tail-based sampling decides after the trace completes, so it…
-
What is metric cardinality and why can it break a monitoring system?
Cardinality is the number of unique label combinations for a metric. Labels with unbounded values (user IDs, request IDs, full URLs) create millions of time series, exploding memory, storage and…
-
What does an error-tracking tool (like Sentry) add beyond logs?
Error trackers group exceptions by fingerprint, show stack traces with source maps and local context, track frequency and affected users per release, and notify the owning team, turning a flood of…
-
What goes into a good blameless postmortem?
A timeline of detection, response and recovery; impact (users, duration, data); root cause and contributing factors (including process and tooling gaps); what went well; and concrete, owned,…
-
What are synthetic monitoring and real-user monitoring (RUM)?
Synthetic monitoring runs scripted checks (e.g., login and checkout every minute from several regions) to detect outages proactively; RUM collects performance and errors from real users' browsers or…
-
What is continuous profiling and when is it useful?
Continuous profiling samples CPU, memory and lock usage from production processes at low overhead, so you can see which functions consume resources over time and compare before/after deploys.
-
What is eBPF and why is it popular for observability?
eBPF lets sandboxed programs run in the Linux kernel at hook points (syscalls, network events, function entry), so tools can collect network, latency and profiling data from any process without…