0
0
Redisquery~20 mins

RDB snapshots (point-in-time) in Redis - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
RDB Snapshot Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
query_result
intermediate
1:30remaining
Understanding RDB Snapshot Timing
If a Redis server is configured to save an RDB snapshot every 60 seconds, what will be the state of the data in the snapshot file if the server crashes after 45 seconds of the last snapshot?
AThe snapshot contains all data up to the last 60-second save point, missing changes made in the last 45 seconds.
BThe snapshot contains all data including the last 45 seconds before the crash.
CThe snapshot file will be empty because the server crashed before the next save.
DThe snapshot contains only the data from the last 10 seconds before the crash.
Attempts:
2 left
💡 Hint
Think about when Redis saves snapshots and what happens if it crashes before the next save.
🧠 Conceptual
intermediate
1:00remaining
RDB Snapshot Configuration Impact
Which Redis configuration setting controls how often RDB snapshots are saved to disk?
Atimeout
Bappendonly
Cmaxmemory-policy
Dsave
Attempts:
2 left
💡 Hint
Look for the setting related to snapshot intervals.
🔧 Debug
advanced
1:30remaining
Diagnosing Missing Data After Crash
A Redis server is configured to save snapshots every 30 seconds. After a crash, the RDB file is loaded but recent data is missing. Which of the following is the most likely cause?
AThe append-only file (AOF) was corrupted and Redis ignored it.
BThe server crashed before the next snapshot was saved, so recent changes were lost.
CThe snapshot file was overwritten with an empty file during the crash.
DThe Redis server was configured to never save snapshots.
Attempts:
2 left
💡 Hint
Consider how RDB snapshots work and when data is persisted.
📝 Syntax
advanced
1:00remaining
Correct Redis CLI Command to Trigger Manual RDB Save
Which Redis CLI command triggers an immediate RDB snapshot save to disk?
ASAVEALL
BBGSAVE
CSAVE
DSNAPSHOT
Attempts:
2 left
💡 Hint
One command saves synchronously, the other asynchronously.
optimization
expert
2:00remaining
Optimizing RDB Snapshot Frequency for Data Safety and Performance
You want to configure Redis to balance data safety and server performance by saving RDB snapshots only when at least 100 changes have occurred within 60 seconds. Which 'save' configuration line achieves this?
Asave 60 100
Bsave 100 60
Csave 60 1
Dsave 100 60 1
Attempts:
2 left
💡 Hint
The 'save' directive format is: save