In GKE you need pods to retain consistent hostnames after scaling and relaunches. Which Kubernetes feature provides this?
Choose an answer
Tap an option to check your answer.
Correct answer: StatefulSets.
Why this is the answer
StatefulSets are the correct choice because they manage stateful applications, ensuring stable network identities (hostnames) and persistent storage for pods even after rescheduling or scaling. This is crucial for applications that rely on consistent hostnames for inter-service communication or data integrity. Role-based access control (RBAC) manages permissions, not pod identity. Container environment variables provide configuration to containers but don't guarantee stable hostnames or pod ordering. Persistent Volumes (PVs) provide storage but don't inherently manage pod identity or ordering; they are often used with StatefulSets to provide persistent storage for each pod.
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