🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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 →
  1. Q1. How many different codes do 7 base62 characters give (approximately)?
  2. Q2. Why is a URL shortener considered read-heavy?
  3. Q3. Which redirect lets you count every click accurately?
  4. Q4. What does this print? (code)
  5. Q5. What's a good way to make click tracking not slow down redirects?
  6. Q6. Why does a URL shortener's read path benefit so much from a cache?
  7. Q7. What does this print? (code)
  8. Q8. What is a drawback of creating short codes by hashing the long URL and keeping 7 characters?
  9. Q9. Why give each API server its own range of IDs (for example 1–1,000,000) instead of one shared counter?
  10. Q10. About how many writes per second do 100 million new URLs per month mean?