Recall & Review
beginner
What does RDB stand for in Redis?
RDB stands for Redis Database Backup, which is a snapshotting persistence method that saves the dataset to disk at specified intervals.
Click to reveal answer
beginner
What does AOF stand for in Redis?
AOF stands for Append Only File, a persistence method that logs every write operation received by the server, allowing data recovery by replaying these commands.
Click to reveal answer
intermediate
How does RDB persistence affect Redis performance?
RDB saves snapshots at intervals, so it has low overhead during normal operation but can lose recent data if Redis crashes between snapshots.
Click to reveal answer
intermediate
What is a key advantage of AOF over RDB?
AOF provides better durability because it logs every write operation, minimizing data loss by replaying commands after a crash.
Click to reveal answer
intermediate
What is a common downside of using AOF compared to RDB?
AOF files are usually larger and can slow down Redis performance due to frequent disk writes, especially if fsync is set to always.
Click to reveal answer
Which Redis persistence method saves data by creating snapshots at intervals?
✗ Incorrect
RDB saves snapshots of the dataset at specified intervals.
Which persistence method logs every write operation to disk?
✗ Incorrect
AOF logs every write operation to allow replaying commands for recovery.
What is a main risk when using only RDB persistence?
✗ Incorrect
RDB can lose data written after the last snapshot if Redis crashes.
Which persistence method generally results in larger disk files?
✗ Incorrect
AOF files tend to be larger because they log every write operation.
Which persistence method can impact Redis performance more due to frequent disk writes?
✗ Incorrect
AOF can slow performance because it writes every command to disk.
Explain the main differences between RDB and AOF persistence methods in Redis.
Think about how each method saves data and the trade-offs.
You got /4 concepts.
Describe a scenario where you might prefer RDB over AOF for Redis persistence.
Consider the balance between speed and data safety.
You got /4 concepts.