Design a Batch Prediction Job Queue for Vertex AI Models

Last updated: November 29, 2026

Quick Overview

Design the system behind Vertex AI batch prediction where customers submit jobs that run a model over millions of input rows from Cloud Storage or BigQuery, with jobs queued, split into shards, run on accelerators, and resumable after failures.

Google
System Design
Machine Learning Engineer
Google
November 29, 2026
Machine Learning Engineer
System Design Round
System Design
Medium

0

0

0 solved


Design the system behind Vertex AI batch prediction where customers submit jobs that run a model over millions of input rows from Cloud Storage or BigQuery, with jobs queued, split into shards, run on accelerators, and resumable after failures.

Batch inference on Vertex AI is a job scheduling problem that mixes data partitioning and scarce GPU or TPU capacity. Interviewers look for clean job lifecycle states, shard-level checkpointing, and fair queueing across customers.

What the Interviewer Expects
  • Define the job lifecycle and persistent state
  • Split input into shards sized for retries and parallelism
  • Schedule shards onto accelerator pools with per-customer quotas
  • Make progress resumable at shard granularity
  • Write outputs atomically so partial failures do not corrupt results
Key Topics to Cover
job lifecycle
sharding
accelerator scheduling
checkpointing
idempotent outputs
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How do you size shards for a model with very variable latency per row?
  • How would you prioritize a customer with a deadline?
  • How do you handle a model that crashes on specific inputs?
  • How do you keep accelerators warm when jobs are bursty?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements
  • Submit job: model ID, input location, output location, machine type, max replicas.
  • States: QUEUED, RUNNING, SUCCEEDED, FAILED, CANCELLED, with progress and errors visible.
  • Jobs from 1,000 rows t...
High-Level Design
  • Job API writes the job record (Spanner) and enqueues it.
  • Planner reads input metadata and creates shards (for example 100,000 rows or 500 MB each), stored as shard records with state.
  • **...

Submit Your Answer
Markdown supported