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.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.
Last updated
A global retail company is architecting an event-driven transaction processing system on Google Cloud to handle millions of checkout events per minute during seasonal flash sales. The event processing workload runs on Google Kubernetes Engine (GKE) worker pods.
The architecture must meet the following requirements:
Which Pub/Sub consumption pattern and configuration should the cloud architect implement?
Configure a Pub/Sub push subscription targeting an HTTPS endpoint exposed by an ingress load balancer in GKE
Configure a Pub/Sub pull subscription using the unary Pull API in a synchronous loop with the returnImmediately parameter enabled
Configure an Eventarc trigger routed to a Cloud Workflows destination that pulls Pub/Sub messages sequentially using scheduled sleep steps
Configure a Pub/Sub pull subscription using the high-level client library with StreamingPull and subscriber flow control limits enabled
Configure a Pub/Sub push subscription targeting an HTTPS endpoint exposed by an ingress load balancer in GKE
Configure a Pub/Sub pull subscription using the unary Pull API in a synchronous loop with the returnImmediately parameter enabled
Configure an Eventarc trigger routed to a Cloud Workflows destination that pulls Pub/Sub messages sequentially using scheduled sleep steps
Configure a Pub/Sub pull subscription using the high-level client library with StreamingPull and subscriber flow control limits enabled
Pub/Sub StreamingPull is a bidirectional streaming RPC mechanism implemented by Google Cloud high-level client libraries. It establishes a persistent, open gRPC connection between the subscriber client and Pub/Sub servers, allowing messages to be streamed immediately to the subscriber as soon as they are published. Subscriber flow control is a client-side setting that limits the maximum number of outstanding unacknowledged messages or total message bytes held in memory simultaneously.
Compared to push subscriptions or unary pull loops, StreamingPull via high-level client libraries provides optimal performance for heavy enterprise workloads, ensuring resilient backpressure handling and avoiding worker crashes under high load.