professional-cloud-data-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.
Your team is building a real-time streaming Dataflow pipeline that processes incoming customer feedback from Pub/Sub. The pipeline must enrich the unstructured text and attached images using pre-trained Google Cloud APIs, including the Cloud Translation API and Cloud Vision API, before writing structured records to BigQuery.
During peak traffic events, the pipeline experiences throughput degradation, high processing lag, and failed execution cycles caused by 429 (Rate Limit Exceeded) quota errors from the external AI APIs.
Which design pattern should you implement in the Dataflow pipeline to manage API quotas, handle transient errors gracefully, and maximize throughput?
This architecture combines Apache Beam micro-batching transforms (GroupIntoBatches), lifecycle optimization (setup method in DoFn), client-side rate limiting/backoff, and dead-letter queuing (side outputs) to integrate pre-trained AI APIs cleanly into high-throughput Dataflow pipelines.
GroupIntoBatches groups incoming streaming elements into multi-item payloads, maximizing payload efficiency against API batch endpoints.429 (Rate Limit Exceeded) errors when burst limits are approached, allowing temporary quota windows to reset.setup() lifecycle method of the DoFn ensures that connection pools and authentication tokens are reused across multiple bundles on a worker rather than reinstantiated for every element.429 and 503 responses without crashing pipeline stages.This pattern directly addresses the root causes of streaming pipeline stalls when communicating with rate-limited external REST/gRPC endpoints. It optimizes compute and network efficiency while guaranteeing pipeline continuity under heavy load.
Keep the momentum going with these hand-picked practice scenarios
Want more questions like this?
Get a free certification question every week.