Google Cloud Professional Cloud Developer — Question 217
The new version of your containerized application has been tested and is ready to deploy to production on Google Kubernetes Engine. You were not able to fully load-test the new version in pre-production environments, and you need to make sure that it does not have performance problems once deployed. Your deployment must be automated. What should you do?
Answer options
- A. Use Cloud Load Balancing to slowly ramp up traffic between versions. Use Cloud Monitoring to look for performance issues.
- B. Deploy the application via a continuous delivery pipeline using canary deployments. Use Cloud Monitoring to look for performance issues. and ramp up traffic as the metrics support it.
- C. Deploy the application via a continuous delivery pipeline using blue/green deployments. Use Cloud Monitoring to look for performance issues, and launch fully when the metrics support it.
- D. Deploy the application using kubectl and set the spec.updateStrategv.type to RollingUpdate. Use Cloud Monitoring to look for performance issues, and run the kubectl rollback command if there are any issues.
Correct answer: B
Explanation
The correct answer is B because canary deployments allow you to gradually roll out the new version while monitoring its performance, minimizing risk. Option A does not automate the deployment process effectively, while C suggests blue/green deployments, which are not as flexible for gradual traffic increase. Option D relies on a rolling update strategy that may not provide the same level of monitoring and control as canary deployments.