Challenge - 5 Problems
Redis Command Renamer
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:30remaining
Why rename dangerous Redis commands?
What is the main reason to rename dangerous Redis commands like
FLUSHALL or CONFIG in a production environment?Attempts:
2 left
💡 Hint
Think about what could happen if someone runs
FLUSHALL by mistake.✗ Incorrect
Renaming dangerous commands helps protect the database from accidental or malicious actions that could delete data or expose sensitive configurations.
❓ query_result
intermediate1:30remaining
Effect of renaming FLUSHALL command
If you rename the
FLUSHALL command to DISABLE_FLUSHALL in Redis configuration, what happens when you try to run FLUSHALL?Attempts:
2 left
💡 Hint
Renaming a command means the original name no longer exists.
✗ Incorrect
When a command is renamed, the original command name is disabled and Redis will not recognize it, returning an error.
📝 Syntax
advanced2:00remaining
Correct syntax to rename CONFIG command
Which of the following is the correct way to rename the
CONFIG command to DISABLE_CONFIG in the Redis configuration file?Attempts:
2 left
💡 Hint
Check the exact spelling and spacing of the rename command.
✗ Incorrect
The correct syntax uses a hyphen and no spaces inside the command name: rename-command CONFIG DISABLE_CONFIG.
❓ optimization
advanced2:00remaining
Best practice for renaming multiple dangerous commands
You want to rename multiple dangerous commands in Redis to prevent accidental use. Which approach is best?
Attempts:
2 left
💡 Hint
Think about security and manageability.
✗ Incorrect
Renaming each command to a unique name prevents accidental execution and keeps commands manageable and traceable.
🔧 Debug
expert2:30remaining
Why does renaming a command fail to take effect?
You added
rename-command FLUSHDB DISABLE_FLUSHDB to your Redis config file but the FLUSHDB command still works as usual after restart. What is the most likely reason?Attempts:
2 left
💡 Hint
Check if your changes were applied after restart.
✗ Incorrect
If the config file changes are not saved, Redis will load the old config and the rename will not apply.