System Design AI

Junior vs senior vs staff system design answers: what changes

Candidates at different levels are often asked the same question. "Design a URL shortener" is a junior question and a staff question. What changes is the answer they expect.

The clearest way to see the difference is one problem answered three times. This post walks through the free worked URL shortener on System Design AI, which is drawn as three separate one-hour boards: junior, senior and staff.

The problem, and the numbers

Create a short link for a long URL, with an optional custom alias and expiry. Following the link redirects. Owners see click counts. Expired and deleted links stop working, and their codes are never handed to anyone else.

The worked design assumes 1 billion links stored and 1 billion clicks a day, which is about 11,600 redirects a second on average and up to 100,000 at peak, with one viral link alone reaching 50,000. A link is about 500 bytes, so all links together are about 500 GB. Size is not the hard part.

The junior answer: it works, and it cannot be wrong

The junior board has a Link API and a Redirect service sharing one DynamoDB table, with Redis in front of reads, and clicks counted off the redirect path through Kafka.

What it is judged on:

  • Every requirement works. Create, redirect, aliases, expiry, counts.
  • The data model makes wrong states impossible. Two links can never get one code, because the create is a conditional put that fails if the code exists. A deleted code is never reissued. An expired link never redirects, because expiry is checked on every read, not just by a cleanup job.
  • The redirect is a 302, and the candidate knows why. A 301 says the move is permanent, so browsers may cache it indefinitely and skip your service next time: you could no longer count those clicks, or take the link down.
  • A cache in front of a read-heavy path.
  • An honest limit, with a number. Where one region and one Redis node stop.

Notice what is missing: nothing about guessable codes, multiple regions or abuse. That is fine at this level.

The senior answer: drive to the hard questions

The senior board reuses the same skeleton and spends its time on four questions the candidate raises without being asked.

  • How are codes generated? Random codes, hashes and a counter each cost something in clashes, coordination or guessability. The worked design leases ranges of 1,000 numbers from a counter in DynamoDB, so each server hands out codes from memory. Then it permutes the numbers with a secret key, because sequential codes can be walked: if one code exists, so does the next.
  • How does a redirect stay fast at 100,000 a second, with one link at 50,000? Three layers of memory in front of the database: the CloudFront edge, the service's own memory, and Redis.
  • How does caching coexist with deletion? The edge may keep a redirect for up to 60 seconds, but browsers keep it for none, because you can invalidate your own edge and you can never reach into a browser.
  • How are clicks counted without slowing the redirect? Once the edge answers popular links itself, the service never sees those clicks, so counting moves to the edge's log, then to a stream processor that writes totals rather than increments, so a replay cannot double-count.

The senior answer gives a number for each choice. That is the pattern to copy: name the hard question, compare the options, pick one, and give the number that decides it.

The staff answer: run it for years

The staff board starts from the point that throughput is solved. The hard problems are now different:

  • Where do writes happen? Redirects are served from three regions, but every create goes to one writer region. Multi-region tables resolve conflicting writes by last writer wins, so two regions could each accept the same alias for different owners.
  • What happens when the writer region fails? Uniqueness has to survive the failover.
  • A destination can turn malicious later. A scan pipeline checks links after creation and keeps re-checking them, and a takedown has to reach every cache within a minute. A canary proves it by taking down a test link every five minutes and timing each region.
  • A code is a promise. Deleted links stay as tombstones so a code is never reused; a reused code would send old posters and QR codes to a stranger.
  • Operations. Service levels with numbers, configuration changes rolled out gradually with automatic rollback, and cost per million redirects on a dashboard.

The pattern behind the three

  • Junior: make it work, make it correct, know where it stops.
  • Senior: find the two or three questions that decide the design and answer each with options and numbers, without being led there.
  • Staff: treat the system as something run for years by people, across failures, abuse and change, and say how you would prove it works.

If you are interviewing at senior level, practise until the junior answer takes you fifteen minutes. That is how you buy the time for the deep dives.

Practise it

Read the free worked design, Design a URL Shortener: start with the board for your level, then read the next one up and note what it adds. Try the problem on paper before you look.

With Pro ($10/month) you can draw your answer on the practice canvas and get an AI review against the rubric.

Questions people ask

Can a senior candidate give a junior-level answer and still pass?

Usually not. A working design is expected at every level, but at senior level the interviewer is waiting for you to raise the hard questions yourself. If they have to lead you to each one, that reads as a lower level.

How do I show staff-level thinking in only 45 minutes?

Get through the basic design quickly, then spend your time on how the system behaves across regions, failures, abuse and change, and how you would measure it. Breadth of operations matters more than drawing more boxes.

Do these levels apply to every company?

The titles and the bar differ between companies and teams, so ask your recruiter what level you are being assessed at. The progression from a working design, to driving the hard questions, to running it safely is a useful way to prepare for any of them.