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 46–54 of 54 questions

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

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

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

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

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

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

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

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

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