You deployed an application into a large Standard Google Kubernetes Engine (GKE) cluster. The application is stateless and multiple pods run at the same time. Your application receives inconsistent traffic. You need to ensure that the user experience remains consistent regardless of changes in traffic. and that the resource usage of the cluster is optimized.
What should you do?
Suggested Answer: B
Get Premium Professional Cloud DevOps Engineer Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
27 comments · newest first
CA
Carey
1 year ago
B is the best choice, it scales based on demand!
VI
Virgina
1 year ago
Surprised no one mentioned D, cluster autoscaling can really help too!
TR
Tracey
1 year ago
A cron job? That seems outdated for this scenario.
CI
Ciara
1 year ago
I disagree, C might be better for optimizing resource usage.
GA
Garry
1 year ago
Definitely go with B, Horizontal Pod Autoscaler is the way to handle inconsistent traffic.
VI
Vincent
1 year ago
Cluster autoscaling sounds useful, but I feel like it’s more about managing nodes rather than ensuring consistent user experience with pod scaling.
PA
Paris
1 year ago
I practiced a similar question where we had to optimize resource usage. I think the Vertical Pod Autoscaler might help, but it focuses more on resource limits rather than scaling pods.
BR
Brittney
1 year ago
I'm a bit unsure about the cron job option. It seems like it wouldn't handle the inconsistent traffic as effectively as an autoscaler would.
JA
James
1 year ago
I remember studying about autoscalers, and I think the Horizontal Pod Autoscaler would be the right choice here since it adjusts the number of pods based on traffic.
CL
Clorinda
1 year ago
Cluster autoscaling seems like the most comprehensive solution. It can scale both the pods and the underlying nodes. I'd probably go with that to optimize the whole cluster.
SH
Shawna
1 year ago
Vertical Pod Autoscaler could be an interesting option here. It can automatically adjust the resources for each pod based on usage. Might be worth exploring that.
LO
Lonny
1 year ago
Hmm, not sure about that. Cron jobs might be a simpler solution to scale on a schedule. I'll have to think this through a bit more.
RO
Rosio
1 year ago
This looks like a classic Kubernetes scaling problem. I'd go with the Horizontal Pod Autoscaler to automatically scale the pods based on resource usage.
AL
Aliza
1 year ago
I'm a little unsure about this one. The wording is a bit tricky, and I'm not entirely sure what the "licensing issue" refers to. I'll need to read through the options carefully and try to figure out the best approach.
AL
Alyce
1 year ago
Hmm, I'm a bit confused by this question. I'm not sure if "Run" or "Robot defaults" would be the right options for publishing locally. I'll have to think this through carefully.
PR
Providencia
1 year ago
I'm a bit confused here. Do I need to add a network interface to VMSS1 or a public IP address to each member? I'll have to double-check the requirements.
LO
Lon
3 years ago
Definitely, the HPA is the clear winner here. Although the cluster autoscaling option might work as well, it's overkill for this scenario and would involve more complexity than necessary.
MO
Mona
3 years ago
Yeah, the HPA is definitely the way to go. A cron job to scale the deployment on a schedule wouldn't be flexible enough to handle the inconsistent traffic, and the Vertical Pod Autoscaler is more for scaling the resources of individual pods, not the overall deployment.
MO
Moira
3 years ago
I agree, the HPA sounds like the most appropriate solution here. It can dynamically scale the number of pods up and down based on the resource utilization, which should help maintain a consistent user experience even with fluctuating traffic.
DE
Delmy
3 years ago
Hmm, this seems like a tricky one. The question is asking how to ensure consistent user experience and optimize resource usage in a GKE cluster with inconsistent traffic. I'm leaning towards the Horizontal Pod Autoscaler (HPA) option, as that seems like the best way to automatically scale the number of pods based on the traffic demand.
MA
Marion
3 years ago
I think we've found the solution to the problem with the HPA option.
BE
Bethanie
3 years ago
Using HPA will keep things running smoothly regardless of traffic changes.
CO
Corrinne
3 years ago
The Horizontal Pod Autoscaler ensures the user experience remains consistent.
DE
Desirae
3 years ago
It definitely seems like the best option for optimizing resource usage.
LA
Laura
3 years ago
I agree. It sounds like the most efficient way to handle varying traffic.
CA
Carla
3 years ago
That's a good choice. HPA can adjust the number of pods based on traffic.
RY
Ryan
3 years ago
B) Configure a Horizontal Pod Autoscaler.