
Answer-first summary for fast verification
Answer: StatefulSet
StatefulSet (option B) is the correct choice because it provides stable, unique network identifiers and persistent storage for each pod. When an application requires each instance to have a stable hostname (e.g., pod-0, pod-1) and its own persistent disk (via PersistentVolumeClaims), StatefulSet ensures these properties even during scaling or rescheduling. Deployment (A) is suitable for stateless applications where pods are interchangeable. ReplicaSet (C) and ReplicaController (D) manage pod replication but lack features for stable identities or per-pod storage.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Which Google Kubernetes Engine (GKE) object should you use to deploy a horizontally scalable application where each instance requires a stable network identity and its own persistent disk?
A
Deployment
B
StatefulSet
C
ReplicaSet
D
ReplicaController
No comments yet.