0
0
Redisquery~5 mins

RDB configuration (save intervals) in Redis - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
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?
ASave the DB every 600 seconds regardless of changes
BSave the DB every 100 seconds if at least 600 keys changed
CSave the DB every 100 seconds regardless of changes
DSave the DB every 600 seconds if at least 100 keys changed
If you want Redis to never save snapshots automatically, what should you do?
ASet 'save 1 1' in the config
BSet 'save 0 0' in the config
CRemove or comment out all 'save' lines
DSet 'save 3600 1000' in the config
Which of these is NOT a valid Redis save interval configuration?
Asave 60 0
Bsave 300 10
Csave 60 10000
Dsave 900 1
What file does Redis create when it saves an RDB snapshot?
Adump.rdb
Bredis.rdb
Csnapshot.rdb
Dsave.rdb
If Redis is configured with 'save 900 1' and 'save 300 10', when will it save?
AOnly after 300 seconds if 10 changes
BAfter 900 seconds if 1 change OR after 300 seconds if 10 changes
COnly after 900 seconds if 1 change
DAfter 300 seconds regardless of changes
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.