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?
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:
| Object | Role |
|---|---|
| Pod | smallest deployable unit: one or more containers sharing network and volumes, scheduled onto a node |
| Deployment | declares the desired Pod template and replica count; manages ReplicaSets for rolling updates and rollbacks |
| Service | stable virtual IP and DNS name that load-balances to Pods matching a label selector, even as Pods come and go |
| HPA | changes 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.