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.
Showing 166–180 of 229 questions
166.What is an exporter?MidMonitoring with Prometheus, Grafana & Datadog
A small program that reads data from software you cannot change, such as a database or Linux, and exposes it as a /metrics page for Prometheus.
167.What is the job of Alertmanager?MidMonitoring with Prometheus, Grafana & Datadog
Prometheus decides when an alert fires. Alertmanager groups alerts, mutes silenced ones, and routes them to Slack, email or a pager.
168.What makes a good alert?MidMonitoring with Prometheus, Grafana & Datadog
It reports a symptom users feel, needs a human to act, has a for: duration to avoid spikes, and links to a runbook. Alerts that nobody acts on should be fixed or removed.
169.How is Loki different from Elasticsearch?MidMonitoring with Prometheus, Grafana & Datadog
Loki indexes only labels, so it is cheap and works well with Prometheus-style labels. Elasticsearch indexes all the text, so full-text search is rich but costs more storage and memory.
170.What is a trace and a span?MidMonitoring with Prometheus, Grafana & Datadog
A trace is the full journey of one request. A span is one step inside it, with a start time and duration. Spans nest to show who called whom.
171.How do you monitor an app on Kubernetes?MidMonitoring with Prometheus, Grafana & Datadog
Install kube-prometheus-stack, expose a /metrics port on the app, and create a ServiceMonitor that selects its Service. Prometheus then scrapes the pods as they come and go.
172.Why is Prometheus pull-based, and when do you push instead?MidMonitoring with Prometheus, Grafana & Datadog
Pulling lets Prometheus see at once when a target is down, because the scrape fails, and you do not have to configure each app with the server address. Push is only for short-lived batch jobs that end before a scrape, using the Pushgateway.
173.What is a recording rule?MidMonitoring with Prometheus, Grafana & Datadog
A rule that Prometheus evaluates on a schedule and stores as a new metric. Use it for heavy queries that you use often, so dashboards load fast and alerts stay simple.
174.A Grafana panel shows no data. How do you debug it?MidMonitoring with Prometheus, Grafana & Datadog
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.
175.How do you avoid a huge Datadog bill?MidMonitoring with Prometheus, Grafana & Datadog
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.
176.What is unified service tagging in Datadog?MidMonitoring with Prometheus, Grafana & Datadog
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.
177.Explain SLI, SLO and error budget.SeniorMonitoring with Prometheus, Grafana & Datadog
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.
178.What is a burn-rate alert?SeniorMonitoring with Prometheus, Grafana & Datadog
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.
179.When do you need Thanos or Mimir?SeniorMonitoring with Prometheus, Grafana & Datadog
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.
180.How do you keep dashboards and alerts reliable over time?SeniorMonitoring with Prometheus, Grafana & Datadog
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.