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 526–540 of 570 questions

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

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

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

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

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

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

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

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

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

535.What is MLOps?BeginnerMLOps

Applying DevOps practices to machine learning: version control for code, data and models, automated training and testing pipelines, reliable deployment of models, and monitoring them in production so they keep working as data changes.

536.How is MLOps different from DevOps?BeginnerMLOps

Software only changes when code changes; an ML model can get worse when the data changes. So MLOps also versions data and models, tracks experiments, validates model quality before release and monitors for drift, not just uptime.

537.What is a model registry?BeginnerMLOps

A central store of trained model versions with their metadata (metrics, training data, code version) and stages like staging and production. MLflow Model Registry, SageMaker Model Registry and Vertex AI Model Registry are examples.

538.What is experiment tracking?BeginnerMLOps

Recording each training run's parameters, code version, data version and metrics so results can be compared and reproduced. MLflow, Weights & Biases and Neptune are common tools.

539.What is the difference between batch and online (real-time) inference?BeginnerMLOps

Batch inference scores many records on a schedule and writes results to storage, for example nightly recommendations. Online inference answers single requests through an API with low latency, for example fraud checks at checkout.

540.What is data drift and concept drift?MidMLOps

Data drift: the input data changes from what the model was trained on (new user types, a changed sensor). Concept drift: the relationship between inputs and the right answer changes (fraud patterns evolve). Both lower accuracy; detect them by comparing live data and outcomes with training baselines.