0
0
Redisquery~20 mins

RDB vs AOF comparison in Redis - Practice Questions

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Redis Persistence Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Difference in Persistence Frequency
Which statement correctly describes how often Redis saves data to disk using RDB and AOF?
ARDB saves data at specified intervals, while AOF logs every write operation immediately or with minimal delay.
BRDB logs every write operation immediately, while AOF saves data only at specified intervals.
CBoth RDB and AOF save data only when Redis is shut down.
DRDB and AOF both save data continuously in real-time without delay.
Attempts:
2 left
💡 Hint
Think about how each method balances performance and data safety.
🧠 Conceptual
intermediate
2:00remaining
Recovery Speed Comparison
When Redis restarts, which persistence method generally allows faster recovery of data?
ABoth RDB and AOF take the same time to recover data.
BAOF allows faster recovery because it replays a small log file.
CRDB allows faster recovery because it loads a single snapshot file.
DNeither RDB nor AOF can recover data after restart.
Attempts:
2 left
💡 Hint
Consider the size and format of files each method uses during recovery.
query_result
advanced
2: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?
AThe AOF file size will randomly fluctuate without any pattern.
BThe AOF file size will continuously grow larger as every write is appended.
CThe AOF file size will shrink over time without any intervention.
DThe AOF file size will remain constant because old commands are deleted automatically.
Attempts:
2 left
💡 Hint
Think about how AOF logs every write operation.
🧠 Conceptual
advanced
2:00remaining
Data Safety in Case of Crash
Which persistence method offers better data safety in case of a sudden Redis crash?
AAOF with fsync set to every write offers better data safety than RDB snapshots.
BRDB snapshots offer better data safety than AOF regardless of fsync settings.
CBoth RDB and AOF offer the same data safety in case of a crash.
DNeither RDB nor AOF provide any data safety in case of a crash.
Attempts:
2 left
💡 Hint
Consider how often data is written to disk in each method.
schema
expert
3: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?
AUse only RDB snapshots at long intervals to reduce disk writes.
BDisable both AOF and RDB to maximize performance.
CUse AOF with fsync every write to maximize durability regardless of performance.
DUse AOF with fsync every second and enable RDB snapshots as a fallback.
Attempts:
2 left
💡 Hint
Balance durability and performance by combining methods.