1. A Cloud Workflows execution that orchestrates a multi-step data processing pipeline is failing with a QuotaExceeded error when calling the BigQuery Jobs API. The pipeline runs several times per day. What is the MOST appropriate way to handle this error within the Workflows definition?
- A. Add a try/except block in the workflow YAML that catches HTTP 429 errors, waits using sys.sleep with exponential backoff, and retries the BigQuery API call up to a configured maximum number of attempts.✓ Correct
- B. Increase the BigQuery Jobs API quota in the Google Cloud Console and redeploy the workflow without any error-handling changes.
- C. Switch from the BigQuery Jobs API to the BigQuery Storage Write API to avoid the quota limit.
- D. Add a parallel branch in the workflow that catches the error and immediately sends a Pub/Sub notification to an ops team, halting the workflow execution.
Explanation
Cloud Workflows natively supports try/except error handling and the sys.sleep step, making exponential backoff retry logic the idiomatic and correct solution for transient quota errors (HTTP 429 / QuotaExceeded). This is the recommended pattern in Google's Workflows documentation. Option B (quota increase) may be appropriate as a long-term fix but does not handle the error programmatically within the workflow — the next burst could still trigger the error. Option C confuses two unrelated APIs; the BigQuery Storage Write API is for streaming data ingestion, not for submitting query jobs, so it does not address the Jobs API quota. Option D notifies humans and halts execution, which is appropriate for unrecoverable errors but incorrect for a transient, retryable quota error — it introduces unnecessary manual intervention.