← All topics
Quiz: Design a URL Shortener: questions with answers
10 questions, each with the answer and a short explanation.
Take the timed quiz + get a certificate →- Q1. How many different codes do 7 base62 characters give (approximately)?
- Q2. Why is a URL shortener considered read-heavy?
- Q3. Which redirect lets you count every click accurately?
- Q4. What does this print? (code)
- Q5. What's a good way to make click tracking not slow down redirects?
- Q6. Why does a URL shortener's read path benefit so much from a cache?
- Q7. What does this print? (code)
- Q8. What is a drawback of creating short codes by hashing the long URL and keeping 7 characters?
- Q9. Why give each API server its own range of IDs (for example 1–1,000,000) instead of one shared counter?
- Q10. About how many writes per second do 100 million new URLs per month mean?