Professional Cloud DevOps Engineer
You are managing a critical, high-traffic application running on Google Kubernetes Engine (GKE). You are preparing to release a new version of the application with significant changes to its payment processing workflow. You need to implement a deployment strategy that minimizes risk and automatically rolls back if the release proves to be unstable. What should you do?
- A. Use Cloud Deploy to execute a canary deployment. Configure the delivery pipeline with a multi-phase canary deployment sequence, starting with a 5% traffic split. Define success criteria using application telemetry from Cloud Monitoring, and configure Cloud Deploy to automatically roll back the release if the new version fails verification.
- B. Configure your GKE deployment manifest to use a blue-green strategy. Deploy the new version as a “green” deployment alongside the existing “blue” deployment. Once the “green” environment is live, update the service selector to gradually switch user traffic to the new version.
- C. Edit the GKE Service manifest to include a new selector for the v2 pods Then, create a second GKE Deployment for the new version of the application. Slowly scale up the replica count of the new deployment while scaling down the old one to gradually shift traffic.
- D. Configure the GKE Deployment to use the default rolling update strategy. Monitor logs and metrics in Cloud Monitoring during the update. If an issue is detected, use the kubectl rollout undo command to automatically revert the application to the previous stable version.