All jobs / Backend developer / Architecture
Backend developer interview question · 0–1 years
How do you estimate storage for 100 million short URLs?
The strongest answer
Pick a per-record size — say a few hundred bytes for the code, the long URL and metadata — multiply, and round: a few hundred bytes times 100 million is tens of gigabytes, so one database handles it and the interesting problem is reads, not storage
Why it works
Right. Rough units, a multiplication, a conclusion.
What a good answer covers
- Per-record size times count.
- Round to a power of ten.
- Draw a conclusion from it.
- Say what the real constraint is.
Answers that fall short
- Close, but not the strongest: Say it is big data and needs a distributed store
Tens of gigabytes is not big data. - Weak: Skip it; storage is cheap
Estimating is the point of the exercise. - Red flag: Ask the interviewer what the number is
They want your estimate, not theirs.
Who gets asked this
- Backend developer
- Full-stack developer
- DevOps / SRE / cloud
- Data engineer
- Data science / ML / AI
- Engineering manager / tech lead
- Solutions / cloud architect
- AI engineer
More Architecture questions
- What does a CDN do for a web application?
- Why would a class take its database client as a constructor parameter instead of creating one inside itself?
- The interviewer asks: “Should this service be CQRS?” Strongest answer?
- The interviewer asks: “Event-driven or request/response for “order placed → email + warehouse”?” Strongest…
- The interviewer asks: “How do you change an event payload that old consumers still read?” Strongest answer?
- The interviewer asks: “Billing keeps importing Order's entity. What's the design problem?” Strongest answer?
- The interviewer asks: “How do you isolate tenants in a multi-tenant backend?” Strongest answer?
- The interviewer asks: “A bad deploy took all regions with it. What architecture would have contained it?”…