Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to rename the dangerous command FLUSHALL to DISABLED_FLUSHALL.
Redis
CONFIG SET rename-command FLUSHALL [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting to put the new command name in quotes.
Using a different new name than the one asked.
Not using the CONFIG SET syntax.
✗ Incorrect
The correct syntax renames the command
FLUSHALL to DISABLED_FLUSHALL by passing the new name as a quoted string.2fill in blank
mediumComplete the code to disable the CONFIG command by renaming it to DISABLED_CONFIG.
Redis
CONFIG SET rename-command CONFIG [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using a different new name than
DISABLED_CONFIG.Not quoting the new command name.
✗ Incorrect
Renaming
CONFIG to DISABLED_CONFIG disables it. The new name must be quoted.3fill in blank
hardFix the error in the code to rename the SHUTDOWN command to DISABLED_SHUTDOWN.
Redis
CONFIG SET rename-command SHUTDOWN [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Not quoting the new command name.
Using single quotes instead of double quotes.
✗ Incorrect
The new command name must be a quoted string. Without quotes, Redis will error.
4fill in blank
hardFill both blanks to rename DEBUG to DISABLED_DEBUG and FLUSHDB to DISABLED_FLUSHDB.
Redis
CONFIG SET rename-command DEBUG [1] CONFIG SET rename-command FLUSHDB [2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up the new names for the commands.
Not quoting the new command names.
✗ Incorrect
The commands are renamed by passing the new names as quoted strings exactly as
"DISABLED_DEBUG" and "DISABLED_FLUSHDB".5fill in blank
hardFill all three blanks to rename SAVE to DISABLED_SAVE, BGSAVE to DISABLED_BGSAVE, and LASTSAVE to DISABLED_LASTSAVE.
Redis
CONFIG SET rename-command SAVE [1] CONFIG SET rename-command BGSAVE [2] CONFIG SET rename-command LASTSAVE [3]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect new names.
Not quoting the new command names.
✗ Incorrect
Each dangerous command is renamed by passing its new name as a quoted string exactly as instructed.