exam questions

Exam Professional Cloud Architect All Questions

View all questions & answers for the Professional Cloud Architect exam

Exam Professional Cloud Architect topic 1 question 79 discussion

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

You want your Google Kubernetes Engine cluster to automatically add or remove nodes based on CPU load.
What should you do?

  • A. Configure a HorizontalPodAutoscaler with a target CPU usage. Enable the Cluster Autoscaler from the GCP Console.
  • B. Configure a HorizontalPodAutoscaler with a target CPU usage. Enable autoscaling on the managed instance group for the cluster using the gcloud command.
  • C. Create a deployment and set the maxUnavailable and maxSurge properties. Enable the Cluster Autoscaler using the gcloud command.
  • D. Create a deployment and set the maxUnavailable and maxSurge properties. Enable autoscaling on the cluster managed instance group from the GCP Console.
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
Unfaithful
Highly Voted 2 years, 9 months ago
Answer: A Support: How does Horizontal Pod Autoscaler work with Cluster Autoscaler? Horizontal Pod Autoscaler changes the deployment's or replicaset's number of replicas based on the current CPU load. If the load increases, HPA will create new replicas, for which there may or may not be enough space in the cluster. If there are not enough resources, CA will try to bring up some nodes, so that the HPA-created pods have a place to run. If the load decreases, HPA will stop some of the replicas. As a result, some nodes may become underutilized or completely empty, and then CA will terminate such unneeded nodes.
upvoted 64 times
heretolearnazure
8 months, 1 week ago
very well explained
upvoted 1 times
...
AzureDP900
1 year, 6 months ago
Nice and detailed explanation. I agree with A.
upvoted 1 times
...
LaxmanTiwari
11 months, 3 weeks ago
Nice and detailed explanation. I agree with A.
upvoted 1 times
...
Rajasa
2 years, 4 months ago
Good Explaination
upvoted 3 times
...
...
natpilot
Highly Voted 4 years, 3 months ago
i'm for A, but the question in ambiguous, because requires the autoscale of nodes (not pod) when the cpu overload, but in answer use k8s pod autoscaler based on cpu load ( cpu load for pod, not nodes ). strange
upvoted 25 times
p4
3 years, 5 months ago
Agreed, the question is not about pods, but answers are also talking about pods (not only) A is correct because B is wrong according to https://cloud.google.com/kubernetes-engine/docs/concepts/cluster-autoscaler "Caution: Do not enable Compute Engine autoscaling for managed instance groups for your cluster nodes. GKE's cluster autoscaler is separate from Compute Engine autoscaling"
upvoted 20 times
...
skywalker
3 years, 11 months ago
Confuse with the question like you mentioned. Autoscale is via nodes not pod.. and can only be configure using gcloud command.
upvoted 6 times
...
...
LaxmanTiwari
Most Recent 11 months, 3 weeks ago
Nice and detailed explanation. I agree with A.
upvoted 1 times
...
Sur_Nikki
11 months, 3 weeks ago
A seems correct. y to create managed instance groups unnecessarily?
upvoted 1 times
...
Deb2293
1 year, 2 months ago
The answer is A. More nodes mean it's horizontal scaling (increase VMs means vertical scaling of infrastructure). Cluster AutoScalar is used for increasing number of nodes.
upvoted 1 times
...
examch
1 year, 4 months ago
Selected Answer: A
A is the Correct answer, Horizontal Pod Autoscaler and Cluster Autoscaler can be used together to provision new pods and new nodes as per the CPU utilization. https://www.youtube.com/watch?v=VNAWA6NkoBs
upvoted 2 times
...
megumin
1 year, 5 months ago
Selected Answer: A
ok for A
upvoted 1 times
...
Rajeev26
1 year, 6 months ago
Selected Answer: A
MIG not for GKE as option B and C, D are not relevant to question
upvoted 1 times
...
abirroy
1 year, 7 months ago
Selected Answer: A
Configure a HorizontalPodAutoscaler with a target CPU usage. Enable the Cluster Autoscaler from the GCP Console.
upvoted 1 times
...
gee1979
1 year, 7 months ago
Selected Answer: A
A... The HPA and CA complement each other for truly efficient scaling. If the load increases, HPA will create new replicas. If there isn’t enough space for these replicas, CA will provision some nodes, so that the HPA-created pods have a place to run. The Horizontal Pod Autoscaler changes the shape of your Kubernetes workload by automatically increasing or decreasing the number of Pods in response to the workload's CPU or memory consumption, or in response to custom metrics reported from within Kubernetes or external metrics from sources outside of your cluster.
upvoted 1 times
...
6721sora
1 year, 8 months ago
A is wrong. Pod scaling only spins up additional pods. Not nodes. Cluster Autoscaler does adding of nodes automatically. I am surprised that so many people think that A is the correct answer. Correct answer per me is C
upvoted 2 times
...
DrishaS4
1 year, 8 months ago
Selected Answer: A
Horizontal Pod Autoscaler changes the deployment's or replicaset's number of replicas based on the current CPU load. If the load increases, HPA will create new replicas, for which there may or may not be enough space in the cluster. If there are not enough resources, CA will try to bring up some nodes, so that the HPA-created pods have a place to run. If the load decreases, HPA will stop some of the replicas. As a result, some nodes may become underutilized or completely empty, and then CA will terminate such unneeded nodes.
upvoted 2 times
...
[Removed]
2 years, 2 months ago
I got one question on my exam which showed autoscaling configuration and was asked to select correct configuration.
upvoted 1 times
...
OrangeTiger
2 years, 3 months ago
I agree A is correct. I found quicklab. Understanding and Combining GKE Autoscaling Strategies.
upvoted 1 times
...
ehgm
2 years, 4 months ago
Selected Answer: A
B and D: You must never change the GKE managed instance group. C and D: maxUnavailable and maxSurge are used for rolling update A. It is the correct.
upvoted 6 times
...
haroldbenites
2 years, 4 months ago
Go for A
upvoted 1 times
...
MaxNRG
2 years, 6 months ago
Create Horizontal Autoscaler (min,max for pods): kubectl autoscale deployment my-app --max 6 --min 4 --cpu-percent 50 Autoscaling cluster: gcloud container clusters create example-cluster \ --zone us-central1-a \ --node-locations us-central1-a,us-central1-b,us-central1-f \ --num-nodes 2 --enable-autoscaling --min-nodes 1 --max-nodes 4 Check scaling an application and Horizontal Pod Autoscaler: https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/ Manual Cluster Resizing: https://cloud.google.com/kubernetes-engine/docs/how-to/resizing-a-cluster https://cloud.google.com/kubernetes-engine/docs/how-to/scaling-apps
upvoted 6 times
MaxNRG
2 years, 6 months ago
Correct answer 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