Google Cloud Professional Cloud Developer — Question 32
You are planning to deploy your application in a Google Kubernetes Engine (GKE) cluster. Your application can scale horizontally, and each instance of your application needs to have a stable network identity and its own persistent disk.
Which GKE object should you use?
Answer options
- A. Deployment
- B. StatefulSet
- C. ReplicaSet
- D. ReplicaController
Correct answer: B
Explanation
The correct answer is B, StatefulSet, as it is specifically designed to manage the deployment of stateful applications that require stable network identities and persistent storage. Options A, C, and D do not provide the necessary features for maintaining unique identities and persistent disks for each application instance.