Google Cloud Professional Cloud Architect — Question 70

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?

Answer options

Correct answer: A

Explanation

StatefulSets are designed to manage stateful applications, providing stable network identities and persistent storage. This makes them ideal for workloads requiring consistent hostnames, unlike Role-based access control, which manages permissions, or Container environment variables and Persistent Volumes, which do not ensure hostname stability during scaling or relaunches.