exam questions

Exam Professional Cloud DevOps Engineer All Questions

View all questions & answers for the Professional Cloud DevOps Engineer exam

Exam Professional Cloud DevOps Engineer topic 1 question 117 discussion

Actual exam question from Google's Professional Cloud DevOps Engineer
Question #: 117
Topic #: 1
[All Professional Cloud DevOps Engineer Questions]

You are building the CI/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.
  • B. Delete the new container image, and delete the running Pods.
  • C. Update the Kubernetes Service to point to the previous Kubernetes Deployment.
  • D. Scale the new Kubernetes Deployment to zero.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
florian_cartron
Highly Voted 1 year ago
Selected Answer: C
The point of using blue/green deployment is to have both blue & green versions deployed, and we chose the active one at service level, so rollback should only consist of updating the service to serve the other version.
upvoted 11 times
...
alpha_canary
Most Recent 8 months, 2 weeks ago
Selected Answer: C
As seen in question 112, we can have blue & green deployments and just need to point the service to the correct deployment for rollback
upvoted 1 times
...
xhilmi
10 months, 4 weeks ago
Selected Answer: C
To implement rollback actions in a blue/green deployment methodology for an application deployed on Google Kubernetes Engine (GKE), the recommended approach is (Option C). Updating the Kubernetes Service to point to the previous Kubernetes Deployment effectively rolls back the service to the previous version. This action ensures that traffic is directed to the previous deployment, mitigating any issues introduced by the new version. It is a controlled and Kubernetes-native way to perform rollbacks, allowing for seamless transitions between different versions of the application without downtime. Using the kubectl rollout undo command (option A) is another rollback method, but updating the Service provides a cleaner and more declarative approach within the Kubernetes environment.
upvoted 2 times
...
PrayasMohanty
1 year ago
A appears correct answer
upvoted 1 times
PrayasMohanty
1 year ago
C appears more correct as it is a blue/green deployment.
upvoted 2 times
...
...
ManishKS
1 year ago
Answer should be A
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago