Recall & Review
beginner
What does RDB stand for in Redis?
RDB stands for Redis Database Backup, which is a snapshot file format used to save the state of the Redis database to disk.
Click to reveal answer
beginner
What is the purpose of 'save intervals' in Redis RDB configuration?
Save intervals define when Redis automatically creates a snapshot of the database based on time and the number of changes made.
Click to reveal answer
intermediate
How is a save interval configured in the Redis configuration file?
Using the 'save' directive, for example: <br>save 900 1<br>means save after 900 seconds if at least 1 key changed.
Click to reveal answer
intermediate
What happens if you set multiple save intervals in Redis?
Redis will save the database snapshot if any of the conditions are met, for example:<br>save 900 1<br>save 300 10<br>save 60 10000<br>means save after 900 seconds if 1 change, or 300 seconds if 10 changes, or 60 seconds if 10000 changes.
Click to reveal answer
intermediate
How can you disable automatic RDB snapshots in Redis?
By removing all 'save' directives from the configuration file or commenting them out, Redis will not create automatic snapshots.
Click to reveal answer
What does the Redis configuration line 'save 600 100' mean?
✗ Incorrect
The format is 'save ', so it saves after 600 seconds if 100 or more keys changed.
If you want Redis to never save snapshots automatically, what should you do?
✗ Incorrect
Removing or commenting out all 'save' lines disables automatic snapshots.
Which of these is NOT a valid Redis save interval configuration?
✗ Incorrect
The number of changes must be greater than zero; 'save 60 0' is invalid.
What file does Redis create when it saves an RDB snapshot?
✗ Incorrect
Redis saves snapshots to a file named 'dump.rdb' by default.
If Redis is configured with 'save 900 1' and 'save 300 10', when will it save?
✗ Incorrect
Redis saves if any save condition is met.
Explain how Redis uses save intervals to create RDB snapshots.
Think about how Redis decides when to save based on time and changes.
You got /5 concepts.
Describe how to disable automatic RDB snapshots in Redis and why you might want to do that.
Consider what happens if Redis never saves snapshots automatically.
You got /3 concepts.