Independence Day Deal! Unlock 25% OFF Today – Limited-Time Offer - 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
2 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
Yvonne
7 days ago
User 3: Option B looks like the right choice, with maxSurge set to 1 and maxUnavailable set to 0.
upvoted 0 times
...
Jordan
10 days ago
User 2: Yeah, we should make sure the old version is maintained until the new one is healthy.
upvoted 0 times
...
Howard
18 days ago
User 1: I think we need to update the Deployment strategy.
upvoted 0 times
...
...
Corinne
2 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
2 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
1 months ago
I agree, RollingUpdate will ensure a smooth transition without downtime.
upvoted 0 times
...
Maryrose
1 months ago
A) Set the Deployment strategy to RollingUpdate with maxSurge set to 0, maxUnavailable set to 1.
upvoted 0 times
...
...
Tyisha
2 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
19 days ago
User4: Let's go with option B then, it fits our requirements perfectly.
upvoted 0 times
...
Clemencia
22 days ago
User3: That makes sense, it ensures a smooth transition to the new version.
upvoted 0 times
...
Leonardo
23 days ago
User2: Agreed, setting maxSurge to 1 will maintain the previous replicas while deploying the new version.
upvoted 0 times
...
Francoise
1 months ago
User1: I think option B is the way to go.
upvoted 0 times
...
...
Katie
2 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
3 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
3 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
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77