Your web application uses Google Kubernetes Engine to manage several workloads. One workload requires a consistent set of hostnames even after pod scaling and relaunches. Which feature of Kubernetes should you use to accomplish 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 provide stable, unique network identifiers (hostnames) and stable, persistent storage for pods. This ensures that even if pods are rescheduled or scaled, their identity and associated data remain consistent, which is crucial for applications requiring stable hostnames. Role-based access control (RBAC) manages permissions, not pod identity. Container environment variables are for configuration, not stable hostnames across pod lifecycles. Persistent Volumes provide storage but don't guarantee stable hostnames for pods.
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