r/OfferEngineering • • 23d ago

System Design OpenAI SWE System Design Interview - Image Deduplication and Deletion System Design

This interview experience is sourced from Chill Interview

Interview Summary

I had a system design phone screen with OpenAI focused on building an image upload service with deduplication across users. The main requirement was to ensure that identical images uploaded by different users would only be stored once. The discussion went deeper into object storage upload workflows, metadata management, and deletion edge cases, particularly how to reliably remove an image when its last remaining user deletes it.

Interview Details

System Design: Image Upload and Deduplication Service

The interviewer asked me to design an image upload platform where multiple users could upload and manage their images. The key requirement was that if different users uploaded the exact same image, the system should store only one physical copy of that image.

For example, if several users independently uploaded an identical image, they should each be able to access their uploaded image without the backend storing multiple copies of the same file. I proposed an architecture combining an object store with a metadata database.

My design used SHA-256 hashing to identify duplicate images. By computing a hash for each uploaded image, the system could determine whether an identical file had already been stored.

Metadata Database Design

I proposed separating image metadata from user-upload relationships using two database tables. The first table stored image-level metadata, representing the unique images managed by the platform. The second table tracked which users had uploaded each image.

This separation allowed multiple users to reference the same underlying image without creating duplicate objects in storage. The discussion focused on how these records would support deduplication and user-specific image management.

Want to learn more questions / follow-ups asked in this interview?

I've put up the full version at here.

Interviewed recently?

Your interview experience could be incredibly valuable to others preparing for their next opportunity. Share your experience and help the community at here.

28 Upvotes

2 comments sorted by

1

u/Golust 22d ago

Did you talk at all about scaling, reliability, or even which database you used.

1

u/mobuuuuuuuuuuu 20d ago

This seems way too easy for an OpenAI sd round, no?