Google
PROFESSIONAL-CLOUD-ARCHITECT · Question #233
Your company has a Kubernetes application that pulls messages from Pub/Sub and stores them in Filestore. Because the application is simple, it was deployed as a single pod. The infrastructure team…
The correct answer is D. Configure a Kubernetes autoscaling deployment based on the subscription/. num_undelivered_messages metric can indicate if subscribers are keeping up with message https://cloud.google.com/pubsub/docs/monitoring#monitoring_the_backlog
Submitted by javi_es· Mar 30, 2026Managing and provisioning cloud solution infrastructure
Question
Your company has a Kubernetes application that pulls messages from Pub/Sub and stores them in Filestore. Because the application is simple, it was deployed as a single pod. The infrastructure team has analyzed Pub/Sub metrics and discovered that the application cannot process the messages in real time. Most of them wait for minutes before being processed. You need to scale the elaboration process that is I/O-intensive. What should you do?
Options
- AUse kubectl autoscale deployment APP_NAME --max 6 --min 2 --cpu-percent 50 to configure
- BConfigure a Kubernetes autoscaling deployment based on the subscription/
- CUse the --enable-autoscaling flag when you create the Kubernetes cluster.
- DConfigure a Kubernetes autoscaling deployment based on the subscription/
How the community answered
(37 responses)- A5% (2)
- B22% (8)
- C8% (3)
- D65% (24)
Explanation
num_undelivered_messages metric can indicate if subscribers are keeping up with message https://cloud.google.com/pubsub/docs/monitoring#monitoring_the_backlog
Topics
#Kubernetes HPA#Pub/Sub backlog metrics#I/O-bound autoscaling#custom metrics
Community Discussion
No community discussion yet for this question.