Intrigued by the art of cloud architecture? Discover how to design, develop, and manage robust, secure, scalable, and dynamic solutions on Google Cloud as you prepare for the Professional Cloud Architect exam!
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.
An online retail company hosts its core ordering service on Google Kubernetes Engine (GKE). The application experiences predictable, massive traffic spikes every morning at the start of business hours, followed by minimal activity overnight.
To ensure responsiveness during the morning rush, the team currently maintains a high static minReplicas value in the Horizontal Pod Autoscaler (HPA) configuration. However, management noticed that this setting prevents the cluster from scaling down during off-peak night hours, resulting in substantial unnecessary infrastructure costs.
You need to design a scaling architecture that handles the predictable morning surges without overpaying for idle capacity overnight.
Which scaling strategy should you implement?
Scheduled autoscaling on Google Kubernetes Engine combines standard Kubernetes autoscaling mechanisms with time-based triggers. Because standard Horizontal Pod Autoscaling (HPA) reacts dynamically to resource metrics like CPU or memory utilization, it can suffer from a slight lag during sudden, sharp traffic surges. By utilizing Cloud Monitoring custom metrics alongside scheduled jobs (such as CronJobs), you can programmatically publish metric values at specific times to scale application replicas up ahead of business hours and down during low-traffic windows.
This solution directly balances performance and cost. Rather than keeping expensive infrastructure running all night, scheduled custom metrics anticipate regular traffic spikes while letting standard dynamic scaling handle unexpected daytime fluctuations.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.