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 Associate Cloud Engineer Exam - Topic 3 Question 117 Discussion

(You are managing a stateful application deployed on Google Kubernetes Engine (GKE) that can only have one replica. You recently discovered that the application becomes unstable at peak times. You have identified that the application needs more CPU than what has been configured in the manifest at these peak times. You want Kubernetes to allocate the application sufficient CPU resources during these peak times, while ensuring cost efficiency during off-peak periods. What should you do?)
B) Configure a Vertical Pod Autoscaler on the Deployment.
A) Enable cluster autoscaling on the GKE cluster.
C) Configure a Horizontal Pod Autoscaler on the Deployment.
D) Enable node auto-provisioning on the GKE cluster.

Google Associate Cloud Engineer Exam - Topic 3 Question 117 Discussion

Actual exam question for Google's Associate Cloud Engineer exam
Question #: 117
Topic #: 3
[All Associate Cloud Engineer Questions]

(You are managing a stateful application deployed on Google Kubernetes Engine (GKE) that can only have one replica. You recently discovered that the application becomes unstable at peak times. You have identified that the application needs more CPU than what has been configured in the manifest at these peak times. You want Kubernetes to allocate the application sufficient CPU resources during these peak times, while ensuring cost efficiency during off-peak periods. What should you do?)

Show Suggested Answer Hide Answer
Suggested Answer: B

The Vertical Pod Autoscaler (VPA) in Kubernetes automatically adjusts the CPU and memory requests and limits of the containers within a pod based on historical and real-time resource usage. In this scenario, where a single-replica stateful application needs more CPU during peak times, VPA can dynamically increase the CPU allocated to the pod when needed and potentially decrease it during off-peak periods to optimize resource utilization and cost efficiency.

Option A: Cluster autoscaling adds or removes nodes in your GKE cluster based on the resource requests of your pods. While it can help with overall cluster capacity, it oesn't directly address the need for more CPU for a specific pod.

Option C: Horizontal Pod Autoscaler (HPA) scales the number of pod replicas based on observed CPU utilization or other select metrics. Since the application can only have one replica, HPA is not suitable.

Option D: Node auto-provisioning is similar to cluster autoscaling, automatically creating and deleting node pools based on workload demands. It doesn't directly manage the resources of individual pods.

Reference to Google Cloud Certified - Associate Cloud Engineer Documents:

The functionality and use cases of the Vertical Pod Autoscaler (VPA) are detailed in the Google Kubernetes Engine documentation, specifically within the resource management and autoscaling sections. Understanding how VPA can dynamically adjust pod resources is relevant to the Associate Cloud Engineer certification.


Contribute your Thoughts:

0/2000 characters
Dierdre
26 days ago
Wait, can you really use Vertical Pod Autoscaler with only one replica?
upvoted 0 times
...
Chandra
1 month ago
I disagree, A might be better for overall cluster management.
upvoted 0 times
...
Lai
1 month ago
B is the way to go! Vertical Pod Autoscaler can adjust CPU as needed.
upvoted 0 times
...
Jonell
1 month ago
D is more about nodes, not the pod's CPU needs. B is the best choice!
upvoted 0 times
...
Susana
2 months ago
C is not an option since we can only have one replica, right?
upvoted 0 times
...
Vashti
2 months ago
Wait, can we really trust autoscalers to manage peak loads? Sounds risky!
upvoted 0 times
...
Veda
2 months ago
I think A could work too, but it might not be as efficient.
upvoted 0 times
...
Jeanice
2 months ago
Definitely go with B, Vertical Pod Autoscaler is the way to handle CPU needs!
upvoted 0 times
...
Michel
2 months ago
I’m leaning towards the Vertical Pod Autoscaler too, but I wonder if there are any cost implications during those peak times that I might be missing.
upvoted 0 times
...
Murray
2 months ago
Enabling cluster autoscaling sounds like a good option, but I feel like it might not directly address the CPU needs of a single pod.
upvoted 0 times
...
Honey
3 months ago
I remember practicing a question about autoscalers, and I think the Horizontal Pod Autoscaler is more for scaling out replicas, which we can't do here.
upvoted 0 times
...
Fletcher
3 months ago
I think the Vertical Pod Autoscaler might be the right choice since it adjusts the resources for the pod itself, but I'm not entirely sure how it works with stateful applications.
upvoted 0 times
...

Save Cancel