Challenge - 5 Problems
Redis Persistence Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Difference in Persistence Frequency
Which statement correctly describes how often Redis saves data to disk using RDB and AOF?
Attempts:
2 left
💡 Hint
Think about how each method balances performance and data safety.
✗ Incorrect
RDB snapshots the dataset at intervals, which is efficient but may lose recent changes. AOF logs every write command, providing better durability.
🧠 Conceptual
intermediate2:00remaining
Recovery Speed Comparison
When Redis restarts, which persistence method generally allows faster recovery of data?
Attempts:
2 left
💡 Hint
Consider the size and format of files each method uses during recovery.
✗ Incorrect
RDB loads a compact snapshot file, which is faster than replaying many commands from the AOF log.
❓ query_result
advanced2:00remaining
AOF File Growth Behavior
Given a Redis instance with frequent writes, what is the expected behavior of the AOF file size over time if no rewriting occurs?
Attempts:
2 left
💡 Hint
Think about how AOF logs every write operation.
✗ Incorrect
AOF appends every write command, so without rewriting, the file grows continuously.
🧠 Conceptual
advanced2:00remaining
Data Safety in Case of Crash
Which persistence method offers better data safety in case of a sudden Redis crash?
Attempts:
2 left
💡 Hint
Consider how often data is written to disk in each method.
✗ Incorrect
AOF with frequent fsync ensures minimal data loss by writing every command to disk immediately, unlike RDB which saves snapshots less often.
❓ schema
expert3:00remaining
Choosing Persistence Strategy for High Write Load
You manage a Redis server with very high write load and need to minimize data loss but also want to keep server performance high. Which persistence strategy is best?
Attempts:
2 left
💡 Hint
Balance durability and performance by combining methods.
✗ Incorrect
Using AOF with fsync every second balances durability and performance, while RDB snapshots provide a fallback recovery point.