Challenge - 5 Problems
RDB Snapshot Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ query_result
intermediate1: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?
Attempts:
2 left
💡 Hint
Think about when Redis saves snapshots and what happens if it crashes before the next save.
✗ Incorrect
Redis saves snapshots at configured intervals. If it crashes before the next scheduled save, the snapshot file only contains data up to the last successful save point, so recent changes are lost.
🧠 Conceptual
intermediate1:00remaining
RDB Snapshot Configuration Impact
Which Redis configuration setting controls how often RDB snapshots are saved to disk?
Attempts:
2 left
💡 Hint
Look for the setting related to snapshot intervals.
✗ Incorrect
The 'save' configuration defines the frequency of RDB snapshots by specifying time and number of changes.
🔧 Debug
advanced1: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?
Attempts:
2 left
💡 Hint
Consider how RDB snapshots work and when data is persisted.
✗ Incorrect
RDB snapshots only save data at intervals. If the server crashes before the next save, recent changes are lost because they were not persisted.
📝 Syntax
advanced1:00remaining
Correct Redis CLI Command to Trigger Manual RDB Save
Which Redis CLI command triggers an immediate RDB snapshot save to disk?
Attempts:
2 left
💡 Hint
One command saves synchronously, the other asynchronously.
✗ Incorrect
BGSAVE triggers an asynchronous background save of the RDB snapshot, allowing the server to continue processing commands. SAVE triggers a synchronous save, blocking the server until complete.
❓ optimization
expert2: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?
Attempts:
2 left
💡 Hint
The 'save' directive format is: save
✗ Incorrect
The 'save 60 100' means Redis saves a snapshot if 100 changes happen within 60 seconds.