Complete the command to enable both RDB and AOF persistence in Redis.
redis-cli CONFIG SET [1] yesThe appendonly option enables AOF persistence in Redis.
Complete the command to configure Redis to save RDB snapshots every 60 seconds if at least 1000 keys changed.
redis-cli CONFIG SET save "[1] 1000"
The save option uses pairs of seconds and changes. Here, 60 seconds is the time interval.
Fix the error in the command to set AOF fsync policy to every second.
redis-cli CONFIG SET appendfsync [1]The correct value for fsync every second is everysec.
Fill both blanks to configure Redis to save RDB snapshots every 300 seconds if at least 10 keys changed.
redis-cli CONFIG SET save "[1] [2]"
The save option requires pairs of seconds and number of changes. Here, 300 seconds and 10 changes.
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-cli CONFIG SET [1] yes && redis-cli CONFIG SET appendfsync [2] && redis-cli CONFIG SET save "[3] 50"
This command enables AOF (appendonly), sets fsync to every second (everysec), and saves RDB snapshots every 900 seconds if 50 keys changed.