Professional Cloud DevOps Engineer
Prepare and test your skills
Prepare and test your skills
Worked example. The correct answer is already marked and every option is explained below, so there is nothing to select here. To answer questions yourself, start the free trial.
A financial services organization runs a mission-critical web application on a Google Kubernetes Engine (GKE) cluster. During periodic traffic spikes, several application Pods experience termination due to out-of-memory (OOM) events, while during normal hours, computing resources are underutilized. You are tasked with analyzing workload metrics to optimize cost efficiency and right-size resource requests and limits while ensuring maximum stability and responsiveness during autoscaling events.
Which combination of resource sizing and autoscaling configurations should you implement according to Google Cloud best practices?
This solution implements Google Cloud Well-Architected and GKE cost-optimization best practices for container resource management and elasticity. It balances guaranteed stability for incompressible resources (memory) with flexible elasticity for compressible resources (CPU), guided by metric-driven autoscaling tools.
cgroups out-of-memory killer to terminate Pods. Setting requests.memory equal to limits.memory guarantees dedicated memory scheduling on nodes, preventing overcommitment and node destabilization.(1 - buff)/(1 + perc)) ensures new replicas are created ahead of traffic surges, mitigating scaling latency.This strategy resolves both instability and excessive cost. Unbounded CPU limits allow applications to burst without paying for permanently reserved high-tier machine types, while matching memory requests and limits eliminates unpredictable OOM kill events.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.