Deploying to GKE: app scales horizontally; each instance requires a stable network identity and its own persistent disk. Which Kubernetes object should you use?
Choose an answer
Tap an option to check your answer.
Correct answer: StatefulSet.
Why this is the answer
StatefulSet is the correct choice because it's designed for stateful applications that require stable, unique network identifiers and persistent storage. Each pod in a StatefulSet gets a unique, stable hostname and an associated PersistentVolumeClaim, ensuring data persistence and consistent identity across restarts or rescheduling. Deployment, ReplicaSet, and ReplicaController are primarily used for stateless applications. While they can manage multiple pod replicas, they do not guarantee stable network identities or persistent storage for individual pods. Pods managed by these objects are considered interchangeable and ephemeral.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed