0
0
Redisquery~10 mins

RDB snapshots (point-in-time) in Redis - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to save a snapshot of the Redis database.

Redis
redis-cli [1]
Drag options to blanks, or click blank then click option'
ASAVE
BGET
CDEL
DSET
Attempts:
3 left
💡 Hint
Common Mistakes
Using GET instead of SAVE will only retrieve data, not save it.
DEL deletes keys, not snapshots.
SET sets values, not snapshots.
2fill in blank
medium

Complete the code to trigger a background save of the Redis database.

Redis
redis-cli [1]
Drag options to blanks, or click blank then click option'
ASAVE
BBGSAVE
CFLUSHDB
DEXPIRE
Attempts:
3 left
💡 Hint
Common Mistakes
Using SAVE blocks Redis until the save is complete.
FLUSHDB deletes all keys in the current database.
EXPIRE sets a timeout on keys, not related to saving.
3fill in blank
hard

Fix the error in the command to check the last save time of Redis.

Redis
redis-cli [1]
Drag options to blanks, or click blank then click option'
ASAVETIME
BLASTSAVE_TIME
CGETLASTSAVE
DLASTSAVE
Attempts:
3 left
💡 Hint
Common Mistakes
Using commands that do not exist like LASTSAVE_TIME or GETLASTSAVE.
Trying to use SAVETIME which is not a Redis command.
4fill in blank
hard

Fill both blanks to configure Redis to save a snapshot every 5 minutes if at least 100 keys changed.

Redis
save [1] [2]
Drag options to blanks, or click blank then click option'
A300
B60
C100
D10
Attempts:
3 left
💡 Hint
Common Mistakes
Using 60 seconds instead of 300 for 5 minutes.
Confusing the order of time and number of keys.
5fill in blank
hard

Fill all three blanks to create a Redis configuration line that saves a snapshot every 15 minutes if at least 50 keys changed.

Redis
save [1] [2] save [3] 1
Drag options to blanks, or click blank then click option'
A900
B50
C300
D1
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up the time values for 15 and 5 minutes.
Using incorrect number of keys for the second save.