Code Room
System designMediumsd-g711
Subject Object storageLevel Mid–Senior~35 minCommon in Storage & CDN interviewsIndustries Technology

Question

Design a versioned object store (S3-versioning style) where every overwrite or delete creates a new version rather than destroying data, and customers attach lifecycle policies such as 'expire noncurrent versions after 30 days' or 'transition objects to cold storage after 90 days.' Buckets hold billions of objects, objects range from 1KB to 5GB, and reads dominate writes 50:1. How do you store versions and enforce lifecycle rules at this scale?

What a strong answer looks like

Clarify scale and constraints first. Propose a clean component breakdown, then go deep on the hard parts — data model, bottlenecks, consistency, failure modes — and name the trade-offs you are making.

Narrate your design
Loading whiteboard…
Run or narrate your approach, then ask the coach.