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 1–10 of 10 questions

Learn AI Infrastructure & GPUs →
1.Explain data-parallel training and the role of NCCL.Senior

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.

2.Training on 16 GPUs is only 4x faster than on one. What do you check?Senior

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.

3.Why do multi-GPU jobs need gang scheduling?Senior

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.

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

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

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

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

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

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

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