Grokking the System Design Interview
Vote

0% completed

Quiz - Designing URL Shortner

Design
Test Your Knowledge
Check your understanding and reinforce the key concepts covered in this section with a short, targeted assessment.
17 Questions
~26 mins
Your progress is saved automatically
Jeremiah Stones

Jeremiah Stones

· a month ago

Preventing Malicious URL Key Use

How can the system prevent a single malicious user from consuming all available URL keys?

"By implementing rate limiting on URL creations and redirections."

While rate limiting the redirections on a single URL is generally a good idea, redirect rate limiting is a separate protection against abusive traffic and does not prevent URL-key consumption. It's not answering the question. We rate limit the URL creations to prevent somebody from consuming all available URL keys. The answer should align with the question; this one does not. Also it's not clear whether it's asking about protecting a users limit on URL creations or all API keys in general. I know from reading the editorial that it's the former, but the question should be more clear about that

Show 1 reply
Jeremiah Stones

Jeremiah Stones

· a month ago

Typo in answer choice for "Why does this design partition by a hash of the short key rather than by ranges of the key?"

"Range partitioning would concentrate traffic on the letters that URLs happen to start with."

missing word at end

Show 1 reply

Reading Progress

0%


Vote for new content