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.

  1. What makes a good alert?

    A good alert is actionable, urgent, user-impacting and owned: it fires when users are (or will soon be) affected, tells the on-call engineer what is wrong, and links to a runbook and dashboard.

  2. How do you design centralized log aggregation?

    Applications write structured logs to stdout, an agent (Fluent Bit, Vector, the OTel Collector) ships them to a central store (OpenSearch/ELK, Loki, Splunk, CloudWatch), where they're indexed,…

  3. How do you collect logs and metrics in Kubernetes?

    Containers log to stdout/stderr, a DaemonSet agent (Fluent Bit, Vector, OTel Collector) tails node log files and ships them with pod metadata; Prometheus (or an OTel Collector) scrapes /metrics…

  4. What makes an error log line useful during an incident?

    It includes what operation failed, the error type and message, the stack trace, relevant identifiers (request ID, user/tenant ID, order ID), the inputs or state needed to reproduce (without…

  5. How do you control the cost of logs and telemetry?

    Reduce volume at the source (right log levels, no duplicate logging, sample repetitive successes), drop or aggregate noisy data in the pipeline, use tiered retention, keep high-cardinality data in…

  6. How do you add observability to a frontend application?

    Capture JavaScript errors with source maps (Sentry), measure Core Web Vitals and custom timings (web-vitals, RUM), trace user actions to backend requests by propagating trace headers, and log…

  7. How do you find slow database queries in production?

    Enable slow query logs or statistics (pg_stat_statements, MySQL slow log, Performance Schema), look at DB spans in traces to see which endpoints issue them, examine plans with EXPLAIN (ANALYZE), and…

  8. How do you observe the impact of a deployment or feature flag?

    Annotate dashboards with deploy and flag events, compare key metrics (errors, latency, business KPIs) between versions or flag cohorts, use canary analysis to automatically promote or roll back, and…

Was this page helpful?

Report a mistake