← Questions

Design Amazon Kindle (object-oriented)

0
AmazonOO designLast asked Jan 2026

An object-oriented design interview question asked in Amazon's coding round, last asked Jan 2026. It tests object-oriented design.

Design the object model behind an e-reader service: users buy books, download them to their devices, read them in several formats, and pick up on any device where they left off. Readers can also highlight passages and add notes, which sync too.

Requirements

  • Functional: browse and buy books from a catalog; keep each user's library of purchased books; download a book to a device in a format it supports; track reading position per book and sync it, so opening the book on another device offers the furthest position; create, edit and delete highlights and notes, synced across devices; limit how many devices can hold a book at once if the publisher requires it.
  • Non-functional: reading works offline, and changes made offline sync later; adding a new file format does not change the library code.

Clarifying questions

  • Which formats must be supported, and are conversions done on the server?
  • If two devices are read offline and both move ahead, which position wins?
  • Are samples, lending and family sharing in scope?
  • Are there limits on devices per account or per book?
  • Should highlights be shareable or exportable?

What a strong answer covers

  • Core classes: User and Account, Device (type, supported formats), Book (metadata), BookEdition or BookFile (format, file), Library (the books a user owns), Purchase, ReadingProgress (user, book, position, device, timestamp), Annotation with Highlight and Note (position range, text, timestamps), and a SyncService.
  • Separating the book a user owns from the files for each format, with a FormatRenderer or converter interface per format.
  • Positions in a format-independent unit so a position from one format maps to another.
  • Sync rules: furthest read position with a prompt to jump, last-write-wins per annotation with tombstones for deletes, and queuing changes made offline.
  • Device limits and entitlement checks at download time.
  • Tests: two devices syncing positions, an annotation deleted on one device and edited on another.

Follow-ups

  • Add lending a book to a friend for 14 days.
  • Add audiobook sync, so listening and reading share one position.
  • How would you show popular highlights from all readers of a book?

Where it's asked

  • Amazon · Coding · Last asked Jan 202655 min · Usually two rounds; one is often an object-oriented design built in steps · No AI

What it tests

object-oriented design

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing