Reported interview periodApr 2026–Aug 2026
Design Photo Sharing with Content Deduplication
Design a photo-sharing service where users upload images, view their libraries, and share content. Identical bytes should be stored once, while near-duplicate detection may assist organization or moderation.
Practice focusRequirements - Define upload, finalize, view, share, and delete APIs. - Hash content during upload and map user-owned logical objects to immutable blobs. - Preserve authorization: discovering that another user uploaded the same bytes must not leak their identity or metadata. - Make concurrent identical uploads safe and avoid duplicate blob writes. - Delete a blob only after no authorized logical object references it, including delayed or failed workflows.…