Complete the command to save the current Redis database state to disk immediately.
[1]The SAVE command performs a synchronous save of the Redis dataset to disk as an RDB snapshot. It blocks the server until complete, unlike BGSAVE which runs in the background.
Complete the command to append every write operation to the AOF file.
CONFIG SET appendonly [1]Setting appendonly to yes enables AOF persistence, which logs every write operation.
Choose the correct command to rewrite the AOF file in the background.
[1]The BGREWRITEAOF command takes no arguments. It triggers a background rewrite of the AOF file to compact it. Adding arguments like 'now' or 'force' causes errors.
Fill both blanks to configure Redis to save RDB snapshots every 60 seconds if at least 1000 keys changed.
CONFIG SET save "[1] [2]"
The save configuration uses pairs of seconds and number of changes. Here, 60 seconds and 1000 changes trigger a snapshot.
Fill all three blanks to configure AOF to fsync every second and use the 'everysec' policy.
CONFIG SET appendfsync [1] CONFIG SET appendonly [2] CONFIG SET no-appendfsync-on-rewrite [3]
Setting appendfsync to everysec makes Redis fsync the AOF file every second. appendonly set to yes enables AOF. no-appendfsync-on-rewrite set to no disables skipping fsync during rewrite.