Google Cloud Professional Cloud Developer Practice Test

Session length

1 / 400

Which deployment model should you use if you want to easily roll back to the previous version of an application in Google Kubernetes Engine?

Perform a rolling deployment and test the application after the deployment

Perform A/B testing and test the application periodically

Perform a blue/green deployment and test afterward

A blue/green deployment is an effective strategy when the goal is to easily roll back to the previous version of an application. This model involves maintaining two separate environments: one (the blue environment) that is currently serving production traffic and another (the green environment) that has the new version of the application deployed.

When you proceed with a blue/green deployment, you initially deploy the new version in the green environment and conduct any necessary testing to ensure it works as expected. Once you're comfortable that the new version is stable, you can switch the traffic from the blue environment to the green environment with minimal disruption. This switch can be done quickly and easily, allowing you to revert to the blue environment if any issues arise after the switch.

This approach offers several advantages:

1. Instant rollback: If there are any problems with the new version, reverting to the previous version is as simple as redirecting traffic back to the blue environment.

2. Isolation of environments: Since the two versions run independently, they can be tested simultaneously without impacting the live application.

3. Reduced downtime: The switch between environments is designed to be seamless, leading to a better experience for users without significant downtime.

Other deployment models, while useful in certain scenarios, do not provide the same

Get further explanation with Examzify DeepDiveBeta

Perform a canary deployment and test the new version periodically

Next Question
Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy