All Questions
Redis hard

How does the Redis background snapshotting process (`BGSAVE`) leverage the operating system's `fork()` mechanism to minimize memory overhead?

  1. A It copies all RAM pages immediately to a secondary buffer, using system swap to handle the resulting memory overflow.
  2. B It uses Copy-on-Write (CoW); parent and child share physical pages until a write triggers a page-level duplication.
  3. C It pauses all incoming command execution to allow the kernel to perform a synchronous bit-for-bit memory clone.
  4. D It compresses the parent's memory pages in place before the child process starts reading them to reduce the I/O footprint.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions