Interview practice question
Sharing files with a link
System Design · Design: Commerce and Media · Beginner
Users want to share a file with anyone via a link that expires after 7 days. How would you design this?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Generate random unguessable token.
- Store token → file, expiry, permissions.
- Serve via pre-signed object storage URL.
- Check expiry and revocation.
- Log access.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.