InterviewStack.io LogoInterviewStack.io

Performance Engineering and Cost Optimization Questions

Engineering practices and trade offs for meeting performance objectives while controlling operational cost. Topics include setting latency and throughput targets and latency budgets; benchmarking profiling and tuning across application database and infrastructure layers; memory compute serialization and batching optimizations; asynchronous processing and workload shaping; capacity estimation and right sizing for compute and storage to reduce cost; understanding cost drivers in cloud environments including network egress and storage tiering; trade offs between real time and batch processing; and monitoring to detect and prevent performance regressions. Candidates should describe measurement driven approaches to optimization and be able to justify trade offs between cost complexity and user experience.

MediumTechnical
49 practiced
Tail latency (p99.9) is causing SLAs to be violated even though p95 is fine. Describe techniques to diagnose and mitigate tail latency in ML serving—cover queuing/backpressure, request hedging, prioritized scheduling, circuit breakers, and resource isolation—and recommend which to try first with justification.
EasyTechnical
59 practiced
Compare online (real-time) feature computation and batch feature computation for online ML inference. For a user-personalization model that needs 100ms p95 latency, list trade-offs in latency, freshness, cost, and operational complexity and recommend when to use hybrid approaches.
HardTechnical
55 practiced
Design a scheduler for large background retraining jobs that minimizes peak compute costs and avoids impacting online services. Include constraints: retraining can use spot instances but must finish within 48 hours, online SLOs must not degrade, and retraining can be preempted and resumed. Outline scheduling algorithm and fault tolerance mechanisms.
EasyTechnical
61 practiced
Explain model quantization and model pruning. For each technique, describe when it is appropriate to apply it, the impact on latency, memory footprint, inference throughput, and potential accuracy loss. Provide examples of models or layers where quantization is risky.
MediumTechnical
53 practiced
Describe memory optimization techniques to reduce peak memory usage during batched inference of deep learning models. Discuss zero-copy I/O, memory pooling, tensor memory formats, garbage collection tuning, and model sharding. For each, give one scenario where it's most effective.

Unlock Full Question Bank

Get access to hundreds of Performance Engineering and Cost Optimization interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.