0
0
Redisquery~10 mins

Rename dangerous commands in Redis - Interactive Code Practice

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

Complete 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'
A"NO_FLUSHALL"
B"FLUSHALL_DISABLED"
C"DISABLE_FLUSHALL"
D"DISABLED_FLUSHALL"
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.
2fill in blank
medium

Complete 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'
A"DISABLED_CONFIG"
B"CONFIG_DISABLED"
C"NO_CONFIG"
D"DISABLE_CONFIG"
Attempts:
3 left
💡 Hint
Common Mistakes
Using a different new name than DISABLED_CONFIG.
Not quoting the new command name.
3fill in blank
hard

Fix 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'
ADISABLED_SHUTDOWN
B"DISABLED_SHUTDOWN"
C'DISABLED_SHUTDOWN'
DDISABLE_SHUTDOWN
Attempts:
3 left
💡 Hint
Common Mistakes
Not quoting the new command name.
Using single quotes instead of double quotes.
4fill in blank
hard

Fill 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'
A"DISABLED_DEBUG"
B"FLUSHDB_DISABLED"
C"DISABLED_FLUSHDB"
D"DEBUG_DISABLED"
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up the new names for the commands.
Not quoting the new command names.
5fill in blank
hard

Fill 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'
A"DISABLED_SAVE"
B"DISABLED_BGSAVE"
C"DISABLED_LASTSAVE"
D"SAVE_DISABLED"
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect new names.
Not quoting the new command names.