Prepare and test your skills

Prepare and test your skills

Free sample question with answers and detailed explanation below. The Professional Machine Learning Engineer practice bank has an additional 974 practice questions.Try 10 free realistic questions: instant score, no credit card, and no account required.
Your organization is building an enterprise document-processing platform that invokes the Document AI API and Cloud Vision API to extract structured data from partner-uploaded files. External partner applications submit unpredictable bursts of requests and require strict authentication.
Your architecture must meet these requirements:
429 Resource Exhausted errors, partial batch failures, and TCP connection latency without duplicating side effects.Which integration architecture should you implement?
Connection: close on outbound requests.This design places Cloud CDN in front of storage uploads, uses Managed Service for Apache Airflow to run large monolithic batch jobs during peak hours, aborts entire batches upon a single-document error, and disables persistent HTTP connections.
429 Resource Exhausted errors for all concurrent workloads.Connection: close disables HTTP keep-alive, forcing a new TCP handshake for every outbound request and degrading throughput.SpikeArrest throttling, or asynchronous write queuing for dynamic uploads.429 errors at fixed 5-second intervals over new HTTP/1.1 connections for each request.This architecture uses Cloud Endpoints with static API keys for access control and routes partner requests through a synchronous blocking proxy that holds connections open until the Document AI API and Cloud Vision API finish processing. Failed calls are retried at fixed 5-second intervals over brand-new HTTP/1.1 TCP connections.
SpikeArrest or Quota policies to absorb bursty partner traffic.429 Resource Exhausted errors.OAuthV2, SpikeArrest, and Quota policies in front of an asynchronous Cloud Tasks queue configured with RateLimits and RetryConfig for idempotent truncated exponential backoff with jitter; isolate partial batch failures into a separate persistent retry queue, implement a circuit breaker, and reuse HTTP/2 or keep-alive connections.This design combines enterprise API management in Apigee with traffic shaping, asynchronous queuing, and resilient client error handling to consume Google Cloud AI APIs reliably at scale.
OAuthV2 and VerifyJWT policies), while SpikeArrest and Quota policies smooth traffic bursts and prevent backend Document AI and Vision API quota exhaustion.RateLimits (controlling max burst size and concurrency) and RetryConfig.429 Resource Exhausted retries never duplicate records or synchronize into retry storms. Failed items from partial batch failures are isolated into a separate persistent retry queue (or dead-letter topic) for targeted reprocessing. A circuit breaker prevents cascading failures when error rates spike, and HTTP/2 or HTTP keep-alive reuses persistent TCP connections to eliminate repeated handshake latency.Unlike synchronous proxies, static-key triggers, or peak-hour monolithic batches, this layered architecture protects quotas proactively at both the edge and worker tiers while guaranteeing zero data loss across partial failures.
429 responses indefinitely without a deadline or dead-letter queue.This pattern authenticates external partners using static service account keys, triggers Cloud Run functions directly on every object upload with unrestricted parallel scaling, and configures workers to retry 429 quota errors forever.
429 Resource Exhausted failures across the entire Google Cloud project.maximum-backoff cap and deadline ties up compute resources permanently. Without a dead-letter queue or persistent retry queue, unrecoverable documents or partial batch errors are either dropped or block processing.Answer them yourself and get your score the moment you finish. No account needed.
Full access includes
Keep the momentum going with these hand-picked practice scenarios
Last updated Validated