Containers & Kubernetes interview question

MLOps & ProductionContainers & Kuberneteseasy

On a GKE cluster you deploy a model server as a Deployment with 3 replicas and expose it with a Service. Which statement correctly describes these Kubernetes objects?

  1. AA Pod is one copy of the image cached on a node; the Deployment pulls the image from the registry on demand; the Service schedules Pods onto nodes with enough free CPU and memory.
  2. BA Pod runs one or more containers; the Deployment keeps 3 Pod replicas running and manages rolling updates; the Service gives them a stable DNS name and load-balances across them.
  3. CA Pod is a virtual machine that hosts containers; the Deployment sizes the node pool to fit the replicas; the Service autoscales the Pods once CPU usage passes the configured target.
  4. DA Pod runs exactly one container; the Deployment stores the model weights shared by the replicas; the Service restarts any Pod that fails its liveness probe and replaces it.
Show the answer and explanation

Correct answer: B, A Pod runs one or more containers; the Deployment keeps 3 Pod replicas running and manages rolling updates; the Service gives them a stable DNS name and load-balances across them.

Explanation Containers & Kubernetes

Core Kubernetes objects for model serving:

ObjectRole
Podsmallest deployable unit: one or more containers sharing network and volumes, scheduled onto a node
Deploymentdeclares the desired Pod template and replica count; manages ReplicaSets for rolling updates and rollbacks
Servicestable virtual IP and DNS name that load-balances to Pods matching a label selector, even as Pods come and go
HPAchanges the replica count based on metrics
Node pool (GKE)group of identical VMs, e.g. a GPU pool with NVIDIA L4 or A100 cards

Why the other descriptions are wrong: scheduling is done by the kube-scheduler, not by a Service. Restarting containers that fail liveness probes is the kubelet's job, and replacing missing Pods is done by the ReplicaSet. Node pool size is handled by the cluster autoscaler. Pods can have several containers (sidecars for logging, proxies or model downloaders). Deployments do not store model weights; weights come from the image, a mounted volume or object storage.

GPU follow-ups: GPU nodes are usually tainted so ordinary workloads do not occupy expensive hardware. An inference Pod therefore needs a matching toleration and a resource request such as nvidia.com/gpu: 1, often with a node selector for the accelerator type. GPUs are requested as whole devices unless the node pool enables GPU sharing (time-sharing, MPS or MIG partitions).

Interview tip: be ready to explain readiness versus liveness probes: an LLM pod loading 100+ GB of weights must not receive traffic (readiness) and must not be killed (liveness) during that load; a startup probe holds off liveness checks until loading finishes.

Practice it as a quiz

Answer this and the other free questions with instant grading, streaks and weak-topic tracking, or unlock all 4,000 questions.

More MLOps & Production questions

  1. Which statement best defines MLOps?
  2. An 8B support model (≈ 16 GB of BF16 weights) is served with a vLLM-style engine as shown below. At peak, the time per output token (TPOT) spikes and the…
  3. Re-running the training job below from the same git commit one month later gives a validation AUC of 0.861 instead of the logged 0.874. The library versions,…
  4. Estimate the monthly LLM bill for this RAG chatbot workload. Every user turn is a separate API call that re-sends the full prompt.
  5. What does this symmetric INT8 quantization snippet print, and which statement about using an asymmetric (zero-point) scheme for ReLU outputs is correct?