All jobs / Backend developer / Architecture
Backend developer interview question · 0–1 years
An interviewer says: “Design a URL shortener.” What do you do first?
The strongest answer
Ask what it must do and at what scale — reads vs writes, expiry, custom aliases, analytics — and state the assumptions you will design against before drawing anything
Why it works
Right. Requirements and numbers first; the boxes follow from them.
What a good answer covers
- Clarify functional and non-functional requirements first.
- State assumed scale in numbers.
- Only then draw.
- Check assumptions with the interviewer.
Answers that fall short
- Close, but not the strongest: Draw a load balancer, a web tier and a database, then adjust as they ask questions
Boxes before requirements is the most common way to lose the round. - Weak: Explain how hashing works, since that is the core of a shortener
Hashing is one detail; the design is the whole. - Red flag: Say it is simple and describe the table with two columns
Dismissing the problem tells them you have not seen it at scale.
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 load balancer do, and what does it not do?
- What is the difference between scaling up and scaling out?
- Why do interviewers keep asking whether a service is stateless?
- When does adding a cache help, and when does it not?
- In a design, why do you say which columns are indexed?
- What is a read replica for?
- Why would you put a queue between two parts of a system?
- What is the difference between latency and throughput?