InterviewStack.io LogoInterviewStack.io

Optimization Under Constraints Questions

Technical approaches for optimizing code and systems when operating under constraints such as limited memory, strict frame or latency budgets, network bandwidth limits, or device specific limitations. Topics include profiling and instrumentation to identify bottlenecks, algorithmic complexity improvements, memory and data structure trade offs, caching and data locality strategies, parallelism and concurrency considerations, and platform specific tuning. Emphasize measurement driven optimization, benchmarking, risk of premature optimization, graceful degradation strategies, and communicating performance trade offs to product and engineering stakeholders.

HardTechnical
29 practiced
You have a multi-region BI pipeline whose monthly cloud cost has grown beyond budget. Under a strict cost cap, propose a prioritized plan to reduce costs while maintaining 95th percentile latency and correctness for dashboards. Include quick wins, trade-offs (freshness, retention), and how to measure the cost vs SLA impact.
MediumTechnical
33 practiced
When parallelizing ETL tasks to speed up a long-running job, what factors determine whether you should increase parallelism or instead change batch sizes? Discuss trade-offs including resource contention, transactional semantics, network overhead, and failure handling.
EasyTechnical
26 practiced
Explain query folding in Power BI / Power Query. Why is query folding important for performance when connecting to large databases or warehouses? Give two examples of transformations that preserve folding and two that typically break folding.
HardTechnical
30 practiced
Discuss approaches to compressing analytics payloads over constrained networks while maintaining necessary security and privacy requirements. Include choices between compress-then-encrypt vs encrypt-then-compress, trade-offs for CPU and latency on client devices, and implications for caching at intermediaries.
MediumSystem Design
33 practiced
Design a near-real-time analytics pipeline that must deliver aggregated metrics with an end-to-end latency under 2 seconds from event arrival to dashboard update. Constraints: limited memory on processing nodes (4GB), events per second 10k, and events are produced across three regions. Describe components, storage choices, backpressure handling, and how to meet the latency SLO while controlling cost.

Unlock Full Question Bank

Get access to hundreds of Optimization Under Constraints interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.