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.

Showing 196–210 of 229 questions

196.Compare MIG and time-slicing.MidAI Infrastructure & GPUs

MIG splits a supported GPU into hardware-isolated slices with their own memory and compute, so it is good for shared clusters. Time-slicing lets pods take turns on the whole GPU, but they share memory and can crash each other, so it suits notebooks and light work.

197.Why do model servers use batching?MidAI Infrastructure & GPUs

A GPU does much more work per second when it handles many inputs at once. Servers group requests. LLM servers use continuous batching, where new requests join a batch that is already generating.

198.When would you pick Triton over vLLM?MidAI Infrastructure & GPUs

Triton is a general server for many model types and frameworks (ONNX, TensorRT, PyTorch) with dynamic batching and versioning. vLLM is built for large language models with continuous batching and efficient memory. Many platforms use both.

199.Which GPU metrics should you watch and alert on?MidAI Infrastructure & GPUs

Utilization and memory, temperature, power, and error codes (XID). Alert on errors and heat for safety, and on GPUs idle for hours for cost. GPU utilization alone is not proof of good use, so add profiling metrics such as tensor activity.

200.What is data drift and how do you respond?MidAI Infrastructure & GPUs

Live inputs no longer look like the training data, so quality can fall. Monitor input statistics and accuracy, alert on changes, and run the retraining pipeline through the same quality gates before release.

201.What is RAG and why use it?MidAI Infrastructure & GPUs

Retrieval-Augmented Generation looks up relevant text from your own data and puts it in the prompt before the model answers. It lets a model use private or fresh information and reduces made-up answers.

202.Explain data-parallel training and the role of NCCL.SeniorAI Infrastructure & GPUs

Each GPU holds a full copy of the model and trains on a different slice of data. They then average their gradients with an all-reduce, which NCCL performs, so every copy stays identical. Network speed decides how well it scales.

203.Training on 16 GPUs is only 4x faster than on one. What do you check?SeniorAI Infrastructure & GPUs

Look at communication and data loading. Check NCCL uses InfiniBand or RDMA (NET/IB, not NET/Socket), run nccl-tests, check GPU topology and slow nodes, and make sure data loaders keep up.

204.Why do multi-GPU jobs need gang scheduling?SeniorAI Infrastructure & GPUs

If only some pods start, they hold GPUs while waiting for the rest, wasting capacity and possibly deadlocking. Gang scheduling starts all pods together or none. Kueue, Volcano and Slurm provide it.

205.How do you autoscale an LLM service?SeniorAI Infrastructure & GPUs

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.

206.What is the KV cache and why does it matter?SeniorAI Infrastructure & GPUs

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.

207.What does an LLM gateway give you?SeniorAI Infrastructure & GPUs

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.

208.How do you secure a RAG application?SeniorAI Infrastructure & GPUs

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.

209.Slurm or Kubernetes with Kueue for a large GPU cluster?SeniorAI Infrastructure & GPUs

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.

210.How would you size and buy GPUs for an inference service?SeniorAI Infrastructure & GPUs

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.