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 106–120 of 126 questions
106.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.
107.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.
108.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.
109.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.
110.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.
111.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.
112.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.
113.What is an error budget and how is it used?MidSRE Practices
It is the failure the SLO allows, which is 100% minus the SLO. If budget remains, the team can release and take risks. When it is spent, risky changes stop and the team works on reliability, as set out in a written policy.
114.How much downtime does 99.9% allow over 30 days?MidSRE Practices
43.2 minutes. 30 days is 43,200 minutes, and 0.1% of that is 43.2.
115.Why use percentiles instead of averages?MidSRE Practices
Averages hide slow requests. If most requests are fast and a few take 10 seconds, the average looks fine while some users suffer. p95 and p99 show the slow tail.
116.What should wake a person at night?MidSRE Practices
An urgent symptom that users feel, tied to the SLO, with a clear action and a runbook. Causes such as high CPU or a disk at 80% should be dashboards or tickets.
117.What is burn rate and how do you alert on it?MidSRE Practices
Burn rate is the actual error rate divided by the allowed error rate. Alert with several rules: fast burn such as 14.4 over 1 hour pages, slow burn such as 1 over 3 days opens a ticket. Each rule has a long and a short window.
118.What is the first priority in an incident?MidSRE Practices
Mitigate the harm, for example by rolling back, failing over or scaling. Find the root cause after users are safe.
119.What roles exist in incident response?MidSRE Practices
An incident commander who decides and does not debug, an operations lead who does the technical work, a communications lead, and a scribe. Experts join as needed.
120.What makes a good postmortem?MidSRE Practices
It is blameless, has a clear timeline, lists several contributing factors, notes what went well and badly, and ends with action items that have owners and due dates.