Skip to content
Hard Design: URL Shortener (TinyURL)

Which data store is most appropriate for storing the core short_code → long_url mapping at scale?

— Tests your understanding of this concept.

Answer Options

A MySQL with full-text index
B DynamoDB with short_code as partition key
C Elasticsearch
D MongoDB with compound index

Want to see the correct answer?

Get the answer with a detailed explanation, plus practice 22+ more Design: URL Shortener (TinyURL) questions with adaptive quizzes and timed interviews.

See the Answer on Guru Sishya →

This question is from the Design: URL Shortener (TinyURL) topic (System Design Cases).

More Design: URL Shortener (TinyURL) Questions