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 16–22 of 22 questions
Learn AI Infrastructure & GPUs →16.How do you autoscale an LLM service?Senior
Scale on queue length or latency, not CPU. Scale up quickly and down slowly, keep a warm minimum, pre-pull images and cache the model on fast storage. Remember that node start plus model load can take many minutes, and plan GPU quota.
17.What is the KV cache and why does it matter?Senior
The model keeps notes about earlier tokens to avoid recomputing them. This cache grows with prompt length, answer length and user count and sits in GPU memory, so it limits concurrency. Paged caches, cache quantization, prefix caching and a lower max length help.
18.What does an LLM gateway give you?Senior
One stable API in front of many models, with per-team keys and token budgets, rate limits, routing, fallbacks, caching and cost tracking. It also gives a place to add guardrails and logging.
19.How do you secure a RAG application?Senior
Treat retrieved text and user input as untrusted, filter retrieval by the user's permissions, limit tools and require approval for risky actions, validate outputs, use safe model formats such as safetensors, and set token and budget limits.
20.Slurm or Kubernetes with Kueue for a large GPU cluster?Senior
Slurm is mature for batch training with fair share, backfill and topology awareness. Kubernetes with Kueue fits teams that also run inference and services on one platform. Many companies use both, and choose by team skills and workload mix.
21.How would you size and buy GPUs for an inference service?Senior
Measure tokens per second per GPU with a load test, divide peak demand by that and a target use of about 70 percent, add a spare, then reserve the steady base, use on-demand for peaks and spot for batch work with checkpoints.
22.You must cut inference cost by 30 percent without hurting users. What do you try?Senior
Load test and look for idle capacity. Try prefix caching, a tighter max model length, quantization with a quality check, a smaller model for easy requests through the gateway, better batching, and scaling on queue length with right-sized reserved capacity. Verify quality and latency after each change.