Recall & Review
beginner
What is Redis RDB persistence?
RDB persistence saves a snapshot of your Redis data to disk at specific intervals. It creates a compact file representing the database state at a point in time.
Click to reveal answer
beginner
What does AOF stand for in Redis persistence?
AOF stands for Append Only File. It logs every write operation received by the server, allowing Redis to rebuild the dataset by replaying these commands.
Click to reveal answer
intermediate
How does RDB differ from AOF in Redis?
RDB saves snapshots at intervals, so data between saves can be lost on crash. AOF logs every write, so it can recover more recent data but the file is larger and slower to write.
Click to reveal answer
intermediate
When might you prefer RDB persistence over AOF?
Use RDB when you want faster restarts and smaller files, and can tolerate some data loss between snapshots, like for caching scenarios.
Click to reveal answer
advanced
What is a common strategy to combine RDB and AOF in Redis?
Many use both: RDB for fast snapshots and AOF for durability. Redis can load RDB first, then replay AOF to recover the latest data.
Click to reveal answer
What does Redis RDB persistence do?
✗ Incorrect
RDB persistence saves snapshots of the database at intervals to disk.
Which Redis persistence method logs every write command?
✗ Incorrect
AOF (Append Only File) logs every write command to rebuild data.
What is a downside of using only RDB persistence?
✗ Incorrect
RDB snapshots happen at intervals, so data written after the last snapshot can be lost on crash.
Why might AOF files be larger than RDB files?
✗ Incorrect
AOF logs every write command, so the file grows with every operation.
What is a common Redis persistence setup for durability and speed?
✗ Incorrect
Combining RDB and AOF gives fast restarts and better durability.
Explain the main differences between Redis RDB and AOF persistence methods.
Think about how often data is saved and how Redis recovers data.
You got /4 concepts.
Describe a scenario where using both RDB and AOF persistence together is beneficial.
Consider what happens during Redis restart and crash recovery.
You got /3 concepts.