Google Cloud Professional Cloud DevOps Engineer — Question 182
You are deploying a new version of your application to a multi-zone Google Kubernetes Engine (GKE) cluster. The deployment is progressing smoothly, but you notice that some Pods in a specific zone are experiencing higher error rates. You need to selectively roll back the update for the Pods experiencing errors with minimal impact to users. What should you do?
Answer options
- A. Scale down the Pods in the affected zone. Redeploy the new version of the application.
- B. Drain the affected nodes. Redeploy the new version of the application to the remaining nodes.
- C. Modify the Deployment to use the Pod template from the previous version of your application. Perform a rolling update to replace the Pods in the affected zone.
- D. Use the kubectl rollout undo command to roll back the entire deployment. Redeploy the new version of the application, excluding the affected zone.
Correct answer: C
Explanation
Option C is correct because it allows for a targeted rollback of the Pods in the affected zone by using the previous Pod template, minimizing user disruption. Option A would not address the underlying issue as it merely scales down the Pods without reverting changes. Option B removes nodes entirely, which could lead to service interruptions. Option D rolls back the entire deployment, affecting all users rather than just those in the problematic zone.