Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Google Exam Professional Cloud Developer Topic 5 Question 88 Discussion

Actual exam question for Google's Professional Cloud Developer exam
Question #: 88
Topic #: 5
[All Professional Cloud Developer Questions]

Your application is deployed in a Google Kubernetes Engine (GKE) cluster. When a new version of your application is released, your CI/CD tool updates the spec.template.spec.containers[0].image value to reference the Docker image of your new application version. When the Deployment object applies the change, you want to deploy at least 1 replica of the new version and maintain the previous replicas until the new replica is healthy.

Which change should you make to the GKE Deployment object shown below?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Samira
3 months ago
Hmm, let me think about this. I need to keep the old version running while the new one is deployed. Yep, Option B is the winner!
upvoted 0 times
Ciara
30 days ago
User 4: Agreed, let's go with Option B.
upvoted 0 times
...
Yvonne
1 months ago
User 3: Option B looks like the right choice, with maxSurge set to 1 and maxUnavailable set to 0.
upvoted 0 times
...
Jordan
1 months ago
User 2: Yeah, we should make sure the old version is maintained until the new one is healthy.
upvoted 0 times
...
Howard
2 months ago
User 1: I think we need to update the Deployment strategy.
upvoted 0 times
...
...
Corinne
3 months ago
Haha, this question is a piece of cake! I'm gonna ace this exam with my Kubernetes knowledge. Option B all the way, baby!
upvoted 0 times
...
Celestina
3 months ago
I'm not sure about this. Doesn't the Recreate strategy mean the old version will be completely replaced? I think the RollingUpdate is the better choice here.
upvoted 0 times
Ceola
2 months ago
I agree, RollingUpdate will ensure a smooth transition without downtime.
upvoted 0 times
...
Maryrose
2 months ago
A) Set the Deployment strategy to RollingUpdate with maxSurge set to 0, maxUnavailable set to 1.
upvoted 0 times
...
...
Tyisha
3 months ago
Option B looks good to me. Maintaining the previous replicas while deploying the new version is exactly what I need.
upvoted 0 times
Miles
2 months ago
User4: Let's go with option B then, it fits our requirements perfectly.
upvoted 0 times
...
Clemencia
2 months ago
User3: That makes sense, it ensures a smooth transition to the new version.
upvoted 0 times
...
Leonardo
2 months ago
User2: Agreed, setting maxSurge to 1 will maintain the previous replicas while deploying the new version.
upvoted 0 times
...
Francoise
2 months ago
User1: I think option B is the way to go.
upvoted 0 times
...
...
Katie
3 months ago
But wouldn't setting maxSurge to 0 ensure that we deploy at least 1 replica of the new version before removing the old ones?
upvoted 0 times
...
Catalina
4 months ago
I disagree, I believe setting the Deployment strategy to RollingUpdate with maxSurge set to 1, maxUnavailable set to 0 is the better option.
upvoted 0 times
...
Katie
4 months ago
I think we should set the Deployment strategy to RollingUpdate with maxSurge set to 0, maxUnavailable set to 1.
upvoted 0 times
...

Save Cancel