exam questions

Exam Professional Cloud Developer All Questions

View all questions & answers for the Professional Cloud Developer exam

Exam Professional Cloud Developer topic 1 question 324 discussion

Actual exam question from Google's Professional Cloud Developer
Question #: 324
Topic #: 1
[All Professional Cloud Developer Questions]

You have an application running on a GKE cluster. Your application has a stateless web frontend, and has a high-availability requirement. Your cluster is set to automatically upgrade, and some of your nodes need to be drained. You need to ensure that the application has a serving capacity of 10% of the Pods prior to the drain. What should you do?

  • A. Configure a Vertical Pod Autoscaler (VPA) to increase the memory and CPU by 10% and set the updateMode to Auto.
  • B. Configure the Pod replica count to be 10% more than the current replica count.
  • C. Configure a Pod Disruption Budget (PDB) value to have a minAvailable value of 10%.
  • D. Configure the Horizontal Pod Autoscaler (HPA) maxReplicas value to 10% more than the current replica count.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
Pime13
3 weeks, 6 days ago
Selected Answer: C
Pod Disruption Budgets (PDBs) are designed to control voluntary disruptions like node drains. Setting minAvailable: 10% ensures that at least 10% of Pods remain available during the drain process. This guarantees that after the drain, the application still has a minimum serving capacity of 10% — exactly what the question asks for. When you drain a node or perform a rolling update: Kubernetes checks the PDB before evicting Pods. If evicting a Pod would violate the PDB, the operation is paused until enough Pods are healthy. This is especially useful for stateless services like web frontends, where you want to maintain a minimum serving capacity. https://kubernetes.io/docs/tasks/run-application/configure-pdb/
upvoted 2 times
...
Laureatul
3 months, 1 week ago
Selected Answer: C
A Pod Disruption Budget (PDB) is designed to maintain high availability during voluntary disruptions, like draining nodes for upgrades. By setting the minAvailable to 10%, you're specifying that at least 10% of your Pods must remain available during disruptions. This directly solves the issue of maintaining service availability while some Pods are being drained. So, C is the best option for addressing the specific requirement of ensuring high availability during node draining in a GKE cluster.
upvoted 1 times
...
Sandesh24
5 months, 2 weeks ago
Selected Answer: B
A Pod Disruption Budget (PDB) allows you to specify the minimum number or percentage of Pods that must be available during voluntary disruptions such as node drains during upgrades. By configuring a PDB with a minAvailable value of 10%, Kubernetes ensures that at least 10% of your application’s Pods remain available when nodes are being drained, thereby meeting your high-availability requirement.
upvoted 1 times
yokoyan
3 months, 4 weeks ago
Is C the correct answer?
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 ...