Skip to content
$ lynuxpro

INTERVIEW PREP

Interview questions

570 questions from real DevOps, SRE, platform engineering and MLOps interviews, with the answer an interviewer wants to hear. Try answering out loud first, then open the model answer.

16.A Grafana panel shows no data. How do you debug it?Mid

Check the time range and data source, run the same query in Prometheus or Explore, see if the target is up on the Targets page, check that the metric and label names are spelled right, and look at the query's rate window against the scrape interval.

17.How do you avoid a huge Datadog bill?Mid

Control the three big drivers: custom metrics (avoid high-cardinality tags like user IDs), indexed logs (exclusion filters, sampling, archives in cheap storage) and APM (sampling, keep errors). Review Plan & Usage monthly and tag everything with team so costs can be traced.

18.What is unified service tagging in Datadog?Mid

Using the same env, service and version tags on metrics, logs and traces (for example through DD_ENV, DD_SERVICE and DD_VERSION). It lets you jump from a slow trace to the matching logs and compare behavior before and after a deploy.

19.Explain SLI, SLO and error budget.Senior

An SLI is a measurement of good service. An SLO is the target for it, such as 99.9% over 30 days. The error budget is the failure the target allows, here 0.1%. When the budget is used up, teams focus on reliability.

20.What is a burn-rate alert?Senior

It alerts on how fast the error budget is being spent instead of on single errors. Teams use several windows, for example a high rate over 1 hour pages, and a slow rate over 3 days creates a ticket.

21.When do you need Thanos or Mimir?Senior

When you need long retention, a single view across many Prometheus servers, or more scale than one machine gives. Thanos extends existing Prometheus servers. Mimir is a central multi-tenant store fed by remote_write.

22.How do you keep dashboards and alerts reliable over time?Senior

Keep them as code in Git, review changes, check them with promtool in CI, unit-test alert rules, and provision Grafana from files or Terraform instead of clicking.

23.How do you reduce observability cost?Senior

Cut high-cardinality labels, drop unused metrics, scrape less often where possible, downsample old data, filter noisy logs, sample traces (keeping errors and slow ones), and set retention per data type.

24.A ServiceMonitor exists, but the target never appears. What do you check?Senior

First the label the operator selects on (such as release), then that the monitor's selector matches the Service labels, then that the port name in the monitor matches the Service port name, and finally the Status -> Targets page in Prometheus for the error.

25.Why should a burn-rate alert use two windows?Senior

A long window (for example 1 hour) shows the problem is real and not a blip. A short window (for example 5 minutes) shows it is still happening, so the alert clears soon after a fix. Both must be true to fire.

26.How do you handle a sudden jump in series count?Senior

Find the metric and label that grew with topk and count by (__name__), find the deploy that added it, remove or limit the high-cardinality label, and drop the series with metric_relabel_configs. Add an alert on series growth so it is caught early next time.

27.What replaces Promtail for shipping logs to Loki?Senior

Grafana Alloy. Promtail has reached end of life, so new setups should use Alloy, which can also collect metrics and traces.

28.Prometheus and Grafana or Datadog: how would you choose?Senior

Prometheus/Grafana is open source and cheap in licenses but needs people to run, scale and upgrade it. Datadog is quick to set up with many integrations but costs grow with hosts, logs and custom metrics, and dashboards live in a vendor. Choose on team size, budget, scale and lock-in; OpenTelemetry keeps you portable.

29.What does eBPF add to observability?Senior

It watches the Linux kernel without changing applications, so you get network flows, DNS, profiles and security events at low cost. It cannot know business meaning, so it complements metrics, logs and traces.

30.Why add synthetic monitoring?Senior

Internal metrics can look fine while users cannot reach you (DNS, certificate, load balancer). Probes from outside, such as blackbox_exporter, test what users see and can alert on certificate expiry.