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 217 questions

196.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.

197.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.

198.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.

199.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.

200.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.

201.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.

202.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.

203.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.

204.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.

205.You must cut inference cost by 30 percent without hurting users. What do you try?SeniorAI Infrastructure & GPUs

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.

206.How do you monitor a model in production?SeniorMLOps

Track service metrics (latency, errors, throughput, GPU use), data quality and drift of inputs, prediction distributions, and real accuracy once true labels arrive. Alert on big shifts and connect monitoring to a retraining or rollback process.

207.How do you make ML training reproducible?SeniorMLOps

Pin code (Git commit), environment (container image with exact library versions), data (versioned snapshot), random seeds and hardware settings, and log all of it with the run. Note that some GPU operations aren't fully deterministic, so record tolerances.

208.How would you design a platform for many data science teams?SeniorMLOps

Offer self-service notebooks and GPU quotas, a shared feature store, experiment tracking and model registry, pipeline templates that run on Kubernetes or a managed service, standard serving with autoscaling, and built-in monitoring and cost visibility per team.

209.How do you serve large models (LLMs) efficiently?SeniorMLOps

Use an optimized inference server (vLLM, TensorRT-LLM, Triton or TGI) with continuous batching and paged KV cache, quantize when quality allows, autoscale on queue depth or tokens per second, and keep hot replicas warm because loading weights is slow. Watch GPU memory and cost per token.

210.When should a model be retrained automatically?SeniorMLOps

On a schedule when data changes predictably, or when monitoring shows drift or a drop in accuracy. Always gate automatic retraining with evaluation against the current model and a human or policy approval for high-risk use cases.