InterviewStack.io LogoInterviewStack.io

AI System Scalability Questions

Covers designing and operating machine learning systems to handle growth in data volume, model complexity, and traffic. Topics include distributed training strategies such as data parallelism, model parallelism, and pipeline parallelism; coordination and orchestration approaches like parameter servers, gradient aggregation, and framework tools such as PyTorch distributed, Horovod, and TensorFlow strategies; data pipeline and I O considerations including sharding, efficient formats, preprocessing bottlenecks, streaming and batch ingestion; serving and inference scaling including model sharding, batching for throughput, autoscaling, request routing, caching, and latency versus throughput tradeoffs. Also includes monitoring, profiling, checkpointing and recovery, reproducibility, cost and resource optimization, and common bottleneck analysis across network, storage, CPU preprocessing, and accelerator utilization.

HardTechnical
31 practiced
You must upgrade a model architecture by renaming layers and changing some layer sizes but want to reuse as many weights as possible from older checkpoints. Describe a robust mapping strategy to match old tensors to new ones by name and shape, fallback rules for partial matches, initialization strategies for unmatched layers, and validation steps to ensure transferred weights behave sensibly.
MediumTechnical
33 practiced
GPU utilization is 30% while CPU is 100% because image decoding and augmentation are the bottleneck. Provide a prioritized list of fixes (code-level and infrastructure-level) to reduce CPU bottleneck and increase GPU utilization. For each fix estimate implementation complexity, likely uplift, and discuss trade-offs like reproducibility and latency.
HardTechnical
28 practiced
Training throughput drops 40% when scaling from 64 to 512 GPUs. Provide a step-by-step profiling and root-cause analysis plan covering network, storage I/O, CPU preprocessing, GPU kernel utilization, and scheduler queuing. For each domain list key metrics, low-level tools to use (e.g., nvidia-smi, nsight, iostat, tcpdump), and likely mitigations.
MediumTechnical
31 practiced
Explain how converting a dataset of millions of small JPEG files into sharded binary formats (TFRecord, sharded tar, or Parquet for tabular features) improves training throughput. Discuss trade-offs around ingestion flexibility, incremental updates, random access patterns, host CPU parsing cost, and a migration plan.
MediumTechnical
31 practiced
List practical steps to make distributed training reproducible across runs and clusters: set and record seeds for all RNGs, capture and checkpoint RNG state, use deterministic ops where available, pin CUDA/cuDNN/library versions, log dataset ordering and sharding, and capture hardware topology and hyperparameters. Explain limitations when using mixed-precision and nondeterministic kernels.

Unlock Full Question Bank

Get access to hundreds of AI System Scalability interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.