Learn Labs
Persistence

Self-test

Check your understanding

Self-test11 questions

—/11
  1. How does BGSAVE take a consistent snapshot while Redis keeps accepting writes?

  2. Why can a background save nearly double Redis's memory use?

  3. What can RDB-only persistence lose, and what is it good for?

  4. Compare the three appendfsync policies on durability and cost.

  5. Redis acknowledges a write before it's fsynced. What does that mean for a client that sees OK?

  6. What does an AOF rewrite do, and what are the three files in a multi-part AOF?

  7. The module's durability lab lost acknowledged writes after only a process kill under everysec. What does that teach you about relying on documented guarantees?

  8. Why does persistence not protect you from a failover losing writes?

  9. Why should backups run from a replica?

  10. You restored a dump.rdb but Redis still has the old data. What went wrong?

  11. Design question

    Write the backup and restore runbook for a 20 GB Redis session store: schedule, retention, storage, monitoring, and a quarterly restore test.