InterviewStack.io LogoInterviewStack.io

Infrastructure Scaling, Capacity Planning, and High Availability Questions

Making infrastructure grow and stay up: horizontal and vertical scaling, autoscaling, load balancing, capacity planning and forecasting, and high-availability and redundancy design. Covers sizing systems for demand, distributing load, and eliminating single points of failure so services remain available as they scale. The reliability-and-growth discipline.

EasyTechnical
95 practiced

Given a data freshness SLO of 99% (data available within 1 hour of ingestion), describe how you'd translate that SLO into capacity thresholds, monitoring alerts, and automatic remediation steps. Include example leading indicators and on-call playbook actions.

EasyTechnical
71 practiced

In Python, implement estimate_monthly_compute_hours(peak_qps, avg_cpu_per_request_ms, avg_request_duration_ms, hours_per_month=730) that estimates total vCPU-hours required per month. Assume a single-threaded vCPU processes one request at a time and ignore IO waits. Provide sample inputs and outputs and explain key assumptions in comments.

HardSystem Design
68 practiced

Design autoscaling and capacity management for a multi-region real-time ingestion pipeline where data must be pre-processed in the nearest region but certain global aggregates must converge and be consistent within five minutes. Discuss local versus global scaling triggers, cross-region replication architecture, network cost and bandwidth implications, leader election for global aggregation, and how to respond when a single region experiences an extreme surge.

HardTechnical
112 practiced

Implement a Terraform module conceptually that provisions an AWS Auto Scaling Group for Spark worker nodes using a mixed instances policy (spot + on-demand) and lifecycle hooks to gracefully drain Spark executors before instance termination. Describe the module inputs, outputs, and key resource blocks you would include (IAM, ASG, launch template, lifecycle hook).

HardTechnical
58 practiced

Design a system to detect model drift in capacity forecasts: define drift signals (increased residuals, change in seasonality), monitoring metrics, statistical tests, automated alerts, retraining triggers, and safety nets to avoid unstable provisioning changes when models are updated.

Unlock Full Question Bank

Get access to all Infrastructure Scaling, Capacity Planning, and High Availability interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.