0
0
Redisquery~10 mins

RDB vs AOF comparison in Redis - Interactive Practice

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

Complete the code to specify the Redis persistence method that saves snapshots of the dataset at intervals.

Redis
redis.conf setting for periodic snapshot saving is [1]
Drag options to blanks, or click blank then click option'
Asave
Bmaxmemory
Cappendonly
Dtimeout
Attempts:
3 left
💡 Hint
Common Mistakes
Confusing 'appendonly' with snapshot saving
Using 'maxmemory' which controls memory limits
2fill in blank
medium

Complete the code to enable the Redis append-only file persistence.

Redis
To enable AOF, set appendonly to [1] in redis.conf
Drag options to blanks, or click blank then click option'
Ayes
Bno
Cauto
Doff
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'no' or 'off' disables AOF
Using 'auto' is not a valid value
3fill in blank
hard

Fix the error in the command to rewrite the AOF file.

Redis
Use the command [1] to rewrite the appendonly.aof file safely.
Drag options to blanks, or click blank then click option'
AFLUSHALL
BBGREWRITEAOF
CBGSAVE
DSAVE
Attempts:
3 left
💡 Hint
Common Mistakes
Using SAVE or BGSAVE which only affect RDB files
Using FLUSHALL which clears all data
4fill in blank
hard

Fill both blanks to complete the Redis config lines for RDB and AOF persistence.

Redis
save [1]
appendonly [2]
Drag options to blanks, or click blank then click option'
A900 1
Byes
Cno
D300 10
Attempts:
3 left
💡 Hint
Common Mistakes
Putting 'no' for appendonly disables AOF
Using invalid save intervals
5fill in blank
hard

Fill all three blanks to complete the Redis config for AOF fsync policy and RDB snapshot interval.

Redis
appendonly [1]
appendfsync [2]
save [3]
Drag options to blanks, or click blank then click option'
Ayes
Beverysec
C900 1
Dno
Attempts:
3 left
💡 Hint
Common Mistakes
Setting appendonly to no disables AOF
Using 'always' or 'no' for appendfsync instead of 'everysec'