ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 125 - Professional Cloud DevOps Engineer discussion

Report
Export

You are building the Cl/CD pipeline for an application deployed to Google Kubernetes Engine (GKE) The application is deployed by using a Kubernetes Deployment, Service, and Ingress The application team asked you to deploy the application by using the blue'green deployment methodology You need to implement the rollback actions What should you do?

A.
Run the kubectl rollout undo command
Answers
A.
Run the kubectl rollout undo command
B.
Delete the new container image, and delete the running Pods
Answers
B.
Delete the new container image, and delete the running Pods
C.
Update the Kubernetes Service to point to the previous Kubernetes Deployment
Answers
C.
Update the Kubernetes Service to point to the previous Kubernetes Deployment
D.
Scale the new Kubernetes Deployment to zero
Answers
D.
Scale the new Kubernetes Deployment to zero
Suggested answer: C

Explanation:

The best option for implementing the rollback actions is to update the Kubernetes Service to point to the previous Kubernetes Deployment. A Kubernetes Service is a resource that defines how to access a set of Pods. A Kubernetes Deployment is a resource that manages the creation and update of Pods. By using the blue/green deployment methodology, you can create two Deployments, one for the current version (blue) and one for the new version (green), and use a Service to switch traffic between them. If you need to rollback, you can update the Service to point to the previous Deployment (blue) and stop sending traffic to the new Deployment (green).

asked 18/09/2024
Victor Ogbonna
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first