Scalability Patterns and Techniques Questions

Scaling a system to handle growth in traffic and data: horizontal versus vertical scaling, statelessness, sharding and partitioning strategies, read replicas, and connection pooling. Covers capacity estimation, identifying bottlenecks, and the tradeoffs each scaling axis introduces. The general toolkit for taking a design from thousands to millions of users.

EasyTechnical
28 practiced

Compare stateless and stateful approaches to model serving. For an online recommendation model that relies on user session state and short-term interaction history, when would you prefer stateful serving over external state storage? Discuss the implications for scalability, fault tolerance, deployment complexity, and operational cost.

HardSystem Design
28 practiced

You operate many model services on heterogeneous hardware. Design an autoscaling and scheduling policy that optimizes cost subject to multiple SLOs (latency, throughput, model accuracy). Cover model placement, pre-warming, bin-packing, priority queues, and how you'd handle cold starts for large models.

HardTechnical
31 practiced

CPU-bound feature computations are the bottleneck in your inference path. Walk through a prioritized plan to address it: precomputing features, using approximate or quantized features, rewriting hot code with vectorized kernels or JIT compilation, and moving heavy transforms to a specialized service. What are the trade-offs in accuracy, staleness, and engineering cost?

MediumTechnical
28 practiced

You're responsible for capacity planning on a multi-tenant GPU cluster used for both nightly model training and real-time inference. How would you forecast GPU capacity needs over the next 12 months, define quotas and priorities across tenants, design scheduling and preemption policies, and handle bursty demand? What metrics and cost trade-offs matter most here?

EasyTechnical
50 practiced

Compare a monolithic multi-model inference service against decomposing into one microservice per model. Assume you need to serve a model at roughly 1,000 requests/sec with 50ms P95 latency. Weigh development velocity, deployment complexity, testability, coupling, observability, and resource utilization. For a small team starting from a proof of concept, which would you recommend, and why?

Unlock Full Question Bank

Get access to all 7 Scalability Patterns and Techniques interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.