Question 1
Topic: Kubernetes Fundamentals
Skill tested: Select how Deployments, Pods, and Services provide resilient application access.
A team runs a stateless HTTP application on Kubernetes. It needs three interchangeable replicas, automatic replacement when a replica fails, and a stable in-cluster address for clients even as individual Pods are recreated. The team does not need external access yet. Which design best meets these requirements while keeping replica management declarative?
A Deployment maintains the desired number of replicas and replaces Pods that fail; recreated Pods can receive different IP addresses. A Service selects the matching Pods by labels and provides a stable virtual IP and DNS name for clients. Standalone Pods in A are not managed as a replica set, and their IPs are not a durable client interface. C requires manually maintaining endpoints and does not provide declarative replica management. D neither maintains three replicas nor makes a Pod's identity stable; NodePort is unnecessary for in-cluster access.