0
0
Redisquery~10 mins

Combined RDB + AOF in Redis - Interactive Code Practice

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

Complete the command to enable both RDB and AOF persistence in Redis.

Redis
redis-cli CONFIG SET [1] yes
Drag options to blanks, or click blank then click option'
Asave
Bappendfsync
Cappendonly
Drdbcompression
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'save' which controls RDB snapshots, not AOF.
Confusing 'appendfsync' which controls fsync frequency.
Using 'rdbcompression' which controls RDB file compression.
2fill in blank
medium

Complete the command to configure Redis to save RDB snapshots every 60 seconds if at least 1000 keys changed.

Redis
redis-cli CONFIG SET save "[1] 1000"
Drag options to blanks, or click blank then click option'
A60
B30
C900
D300
Attempts:
3 left
💡 Hint
Common Mistakes
Using 30 seconds which is too short for this setting.
Using 900 or 300 which are longer intervals.
3fill in blank
hard

Fix the error in the command to set AOF fsync policy to every second.

Redis
redis-cli CONFIG SET appendfsync [1]
Drag options to blanks, or click blank then click option'
Aalways
Bnever
Cno
Deverysec
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'always' which fsyncs after every write and is slower.
Using 'no' or 'never' which disables fsync.
4fill in blank
hard

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

Redis
redis-cli CONFIG SET save "[1] [2]"
Drag options to blanks, or click blank then click option'
A300
B10
C100
D60
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the order of seconds and changes.
Using too large or too small numbers.
5fill in blank
hard

Fill all three blanks to create a command that enables AOF, sets fsync policy to every second, and configures RDB save interval to 900 seconds with 50 changes.

Redis
redis-cli CONFIG SET [1] yes && redis-cli CONFIG SET appendfsync [2] && redis-cli CONFIG SET save "[3] 50"
Drag options to blanks, or click blank then click option'
Aappendonly
Beverysec
C900
Dsave
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'save' instead of 'appendonly' for enabling AOF.
Using 'always' instead of 'everysec' for fsync.
Using wrong save interval values.