0
0
Redisquery~10 mins

Redis persistence overview (RDB, AOF) - Interactive Code Practice

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

Complete the command to save the current Redis database state to disk immediately.

Redis
[1]
Drag options to blanks, or click blank then click option'
ASAVE
BBGSAVE
CDUMP
DPERSIST
Attempts:
3 left
💡 Hint
Common Mistakes
Using BGSAVE when you need an immediate synchronous save.
Using DUMP which serializes a single key, not the entire database.
2fill in blank
medium

Complete the command to append every write operation to the AOF file.

Redis
CONFIG SET appendonly [1]
Drag options to blanks, or click blank then click option'
Ano
Byes
Cmaybe
Dauto
Attempts:
3 left
💡 Hint
Common Mistakes
Setting appendonly to 'no' disables AOF.
Using invalid values like 'maybe' or 'auto'.
3fill in blank
hard

Choose the correct command to rewrite the AOF file in the background.

Redis
[1]
Drag options to blanks, or click blank then click option'
ABGREWRITEAOF now
BBGREWRITEAOF
CBGREWRITEAOF force
DREWRITEAOF
Attempts:
3 left
💡 Hint
Common Mistakes
Adding arguments like 'now' or 'force' which are not valid.
Using REWRITEAOF which is not a valid Redis command.
4fill in blank
hard

Fill both blanks to configure Redis to save RDB snapshots every 60 seconds if at least 1000 keys changed.

Redis
CONFIG SET save "[1] [2]"
Drag options to blanks, or click blank then click option'
A60
B1000
C30
D500
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the two numbers.
Using incorrect values like 30 seconds or 500 changes.
5fill in blank
hard

Fill all three blanks to configure AOF to fsync every second and use the 'everysec' policy.

Redis
CONFIG SET appendfsync [1]
CONFIG SET appendonly [2]
CONFIG SET no-appendfsync-on-rewrite [3]
Drag options to blanks, or click blank then click option'
Aalways
Byes
Cno
Deverysec
Attempts:
3 left
💡 Hint
Common Mistakes
Setting appendfsync to 'always' causes more disk writes.
Disabling AOF by setting appendonly to 'no'.
Incorrectly enabling no-appendfsync-on-rewrite.