
Answer-first summary for fast verification
Answer: StatefulSets
The correct answer is A: StatefulSets. StatefulSets is a feature of Kubernetes that manages stateful applications. It provides stable, unique network identifiers for each pod in the set, allows for persistent storage that is automatically attached to pods, and ensures ordered, graceful deployment, scaling, and deletion of pods. This makes it an ideal choice for workloads that require consistent hostnames even after pod scaling and relaunches.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
Your web application uses Google Kubernetes Engine (GKE) to manage several workloads. One of these workloads is a stateful application that requires a consistent set of hostnames for each pod, even after scaling operations or pod restarts. Which feature of Kubernetes should you use to accomplish this?
A
StatefulSets
B
Role-based access control
C
Container environment variables
D
Persistent Volumes
No comments yet.