InterviewStack.io LogoInterviewStack.io

Cost Optimization at Scale Questions

Addresses cost conscious design and operational practices for systems operating at large scale and high volume. Candidates should discuss measuring and improving unit economics such as cost per request or cost per customer, multi tier storage strategies and lifecycle management, caching, batching and request consolidation to reduce resource use, data and model compression, optimizing network and input output patterns, and minimizing egress and transfer charges. Senior discussions include product level trade offs, prioritization of cost reductions versus feature velocity, instrumentation and observability for ongoing cost measurement, automation and runbook approaches to enforce cost controls, and organizational practices to continuously identify, quantify, and implement savings without compromising critical service level objectives. The topic emphasizes measurement, benchmarking, risk assessment, and communicating expected savings and operational impacts to stakeholders.

MediumSystem Design
77 practiced
Design a multi-tier storage strategy for a petabyte-scale data lake with Hot, Warm, Cold, and Archive tiers. Define criteria to move datasets between tiers (access frequency, business-critical tags, size), the expected cost savings per tier, and how you'd enforce and monitor tier transitions programmatically.
MediumTechnical
39 practiced
Propose a scheduling and checkpointing pattern to maximize use of spot instances for ETL jobs while minimizing interruption risk. Include job classification, checkpoint frequency, retry/backoff policies, and example metrics to decide which jobs are good candidates for spot vs on-demand.
HardTechnical
45 practiced
Provide pseudocode for an automated runbook script that detects runaway ETL jobs by monitoring cost-rate (USD/hour) per job, sends an alert to Slack, attempts a safe checkpoint using the job's checkpoint API, and terminates the job if the cost rate exceeds a threshold for a sustained period. Include retry/backoff logic, safe-failover steps, and logging/audit details.
EasyTechnical
56 practiced
Write a Python function specification: given a list of hourly event sizes in bytes and a per-GB storage cost (USD), compute estimated monthly storage cost and cost per million events. Assume 30 days per month. Describe edge cases you would handle (empty lists, missing hours, streaming averages) and the algorithmic complexity (target O(n)).
MediumBehavioral
51 practiced
Tell me about a time when you convinced stakeholders to accept a change that temporarily reduced feature velocity but substantially lowered infrastructure cost. Use the STAR format, include how you quantified expected impact, what objections you faced, and what the final outcome and learnings were.

Unlock Full Question Bank

Get access to hundreds of Cost Optimization at Scale interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.