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 73 discussion

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

You are ready to deploy a new feature of a web-based application to production. You want to use Google Kubernetes Engine (GKE) to perform a phased rollout to half of the web server pods.
What should you do?

  • A. Use a partitioned rolling update.
  • B. Use Node taints with NoExecute.
  • C. Use a replica set in the deployment specification.
  • D. Use a stateful set with parallel pod management policy.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
TNT87
Highly Voted 2 years, 6 months ago
I do agree to A as the answer.
upvoted 12 times
...
jomonkp
Most Recent 4 months, 4 weeks ago
Selected Answer: A
option A
upvoted 2 times
...
JonathanSJ
1 year, 3 months ago
Selected Answer: A
A partitioned rolling update allows you to control the percentage of pods that are updated at a time, which allows you to perform a phased rollout. This way you can incrementally test and monitor the new feature, before it is deployed to all the pods. This approach is useful when you want to minimize the risk of introducing new bugs or breaking changes in your production environment, it allows you to have more control over the process, and it's less likely to cause service disruption, or to have all the pods down at the same time.
upvoted 2 times
JonathanSJ
1 year, 3 months ago
B. Using Node taints with NoExecute could be used to prevent pods from being scheduled on certain nodes, but it would not be the best option for a phased rollout as it does not allow for a specific percentage or number of pods to be updated. C. A replica set in the deployment specification is used for ensuring that a specified number of replicas of a pod are running at any given time, but it does not provide a way to perform a phased rollout. D. A stateful set with parallel pod management policy is used for managing stateful applications, but it also does not provide a way to perform a phased rollout. The option A, Using a partitioned rolling update, allows you to specify the percentage of pods that should be updated at a time, so it is the best option for performing a phased rollout.
upvoted 2 times
...
...
WhyIronMan
1 year, 4 months ago
Selected Answer: A
going with A) since is the only which makes sense
upvoted 1 times
...
AzureDP900
1 year, 6 months ago
A is right https://cloud.google.com/kubernetes-engine/docs/concepts/statefulset#partitioning_rolling_updates Partitioning is useful if you want to stage an update, roll out a canary, or perform a phased roll out. When you partition an update, all Pods with an ordinal greater than or equal to the partition value are updated when you update the StatefulSet’s Pod specification. Pods with an ordinal less than the partition value are not updated and, even if they are deleted, are recreated using the previous version of the specification. If the partition value is greater than the number of replicas, the updates are not propagated to the Pods.
upvoted 1 times
...
zellck
1 year, 6 months ago
Selected Answer: A
A is the answer. https://cloud.google.com/kubernetes-engine/docs/how-to/updating-apps#partitioning_a_rollingupdate Partitioning is useful if you want to stage an update, roll out a canary, or perform a phased roll out.
upvoted 4 times
...
ramzez4815
1 year, 7 months ago
Selected Answer: A
A is the clear answer
upvoted 3 times
...
Sekierer
2 years, 3 months ago
A is correct
upvoted 2 times
...
helg
2 years, 3 months ago
A - the question is incomplete ! Nothing shows that we are using statefulsets ..
upvoted 3 times
paul223344
2 years ago
IMHO, the question mentioned: a "PHASED ROLLOUT" to "HALF" of the web server pods. So we use .spec.updateStrategy field to partition a RollingUpdate for the Pods in a StatefulSet.
upvoted 2 times
...
...
bob_builder
2 years, 4 months ago
A => https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/#partitions
upvoted 3 times
...
not_thanos
2 years, 4 months ago
https://cloud.google.com/kubernetes-engine/docs/how-to/updating-apps#partitioning_a_rollingupdate partition rollout only works if the workload is stateful. Nothing in the question tells us this.
upvoted 2 times
...
Shasha1
2 years, 5 months ago
A https://medium.com/velotio-perspectives/exploring-upgrade-strategies-for-stateful-sets-in-kubernetes-c02b8286f251
upvoted 2 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