← Questions

Design TinyURL: a URL shortener with fast redirects

0
OpenAIGoogleAmazon+5System designLast asked Oct 2026

A system design interview question asked in Snowflake's two coding screens round and at SpaceXAI, Uber and 5 more companies, last asked Oct 2026. It tests hashing, caching and key generation.

Design a URL shortener like TinyURL. It turns a long URL into a short link (for example https://s.example.com/aZ9k2Qx) and redirects visitors to the original URL.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Snowflake · Two coding screens · Last asked Oct 202660 min · Two back-to-back live coding rounds, often on the same day; some loops pair coding with system design · Varies: some screens forbid AI, some 2026 screens allow it. The scheduling email says.
  • SpaceXAI · System design · Last asked Sep 2026Scope a vague prompt, then write working code for it
  • Uber · System design · Last asked Aug 202660 min · Whiteboard and discussion
  • Microsoft · System design · Last asked Jun 202660 min · Design discussion
  • Nvidia · System design · Last asked Feb 2026Design discussion, often narrow and concrete
  • OpenAI · Technical screen: system design · Last asked Jan 202660 min · Design discussion, sometimes drawn in Excalidraw; for some roles, on the same day as the coding screen
  • Amazon · System design · Last asked Sep 202555 min · Design discussion
  • Google

What it tests

hashing · caching · key generation

Your canvas and the AI tutor open when you unlock this question.