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 181–195 of 229 questions
181.How do you reduce observability cost?SeniorMonitoring with Prometheus, Grafana & Datadog
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.
182.A ServiceMonitor exists, but the target never appears. What do you check?SeniorMonitoring with Prometheus, Grafana & Datadog
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.
183.Why should a burn-rate alert use two windows?SeniorMonitoring with Prometheus, Grafana & Datadog
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.
184.How do you handle a sudden jump in series count?SeniorMonitoring with Prometheus, Grafana & Datadog
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.
185.What replaces Promtail for shipping logs to Loki?SeniorMonitoring with Prometheus, Grafana & Datadog
Grafana Alloy. Promtail has reached end of life, so new setups should use Alloy, which can also collect metrics and traces.
186.Prometheus and Grafana or Datadog: how would you choose?SeniorMonitoring with Prometheus, Grafana & Datadog
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.
187.What does eBPF add to observability?SeniorMonitoring with Prometheus, Grafana & Datadog
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.
188.Why add synthetic monitoring?SeniorMonitoring with Prometheus, Grafana & Datadog
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.
189.How do you design observability for a platform with many teams?SeniorMonitoring with Prometheus, Grafana & Datadog
Give each team a label or tenant, set quotas and retention per team, provide shared libraries and dashboards as code, standardise on OpenTelemetry for instrumentation, use a central store such as Mimir, Loki and Tempo, and show cost per team so they manage their own data.
190.Why are GPUs used for AI instead of CPUs?BeginnerAI Infrastructure & GPUs
AI work is huge amounts of similar maths. A GPU has thousands of small workers that do it in parallel, so it is far faster than a CPU for this job.
191.What is the difference between training and inference?BeginnerAI Infrastructure & GPUs
Training teaches a model using lots of data and GPU time. Inference uses the trained model to answer requests. Most teams spend most of their effort on inference because every user request uses it.
192.How do you estimate whether a model fits on a GPU?BeginnerAI Infrastructure & GPUs
Multiply the number of parameters by the bytes per parameter (2 for FP16). A 7B model in FP16 needs about 14 GB. Add 20 to 50 percent for the KV cache and working space.
193.Where does the NVIDIA driver live when you run GPU containers?BeginnerAI Infrastructure & GPUs
On the host. The NVIDIA Container Toolkit passes the GPU into containers, and each container brings its own CUDA libraries. The host driver must be new enough for the container's CUDA.
194.What does the NVIDIA GPU Operator install?MidAI Infrastructure & GPUs
It installs and manages the driver (optional), container toolkit, device plugin, GPU feature discovery, DCGM exporter and MIG manager on GPU nodes, so you do not set up each server by hand.
195.How does a pod request a GPU on Kubernetes?MidAI Infrastructure & GPUs
With nvidia.com/gpu: N in resources.limits. GPUs are whole numbers unless you use MIG slices or time-slicing. Taint GPU nodes and add tolerations so only GPU workloads land there.