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 451–465 of 490 questions
451.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.
452.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.
453.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.
454.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.
455.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.
456.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.
457.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.
458.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.
459.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.
460.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.
461.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.
462.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.
463.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.
464.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.
465.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.