Challenge - 5 Problems
Redis Protected Mode Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
What is the purpose of Redis protected mode?
Redis protected mode is enabled by default. What is its main purpose?
Attempts:
2 left
💡 Hint
Think about security when Redis is started without a password and accessible from outside.
✗ Incorrect
Protected mode prevents Redis from accepting connections from external IPs unless explicitly configured, protecting it from unauthorized access.
❓ query_result
intermediate2:00remaining
What happens when you try to connect remotely to Redis in protected mode without authentication?
Assuming Redis is running with protected mode enabled and no password set, what will be the result of a remote connection attempt?
Attempts:
2 left
💡 Hint
Protected mode blocks unauthorized remote connections.
✗ Incorrect
Redis rejects remote connections without authentication in protected mode, showing an error about protected mode.
📝 Syntax
advanced2:00remaining
Which configuration disables Redis protected mode correctly?
You want to disable Redis protected mode by editing redis.conf. Which line is correct?
Attempts:
2 left
💡 Hint
Check the exact spelling and syntax of the configuration directive.
✗ Incorrect
The correct directive is 'protected-mode' followed by 'no' to disable it.
❓ optimization
advanced2:00remaining
How to safely allow remote connections while keeping Redis secure?
You want to allow remote clients to connect to Redis but keep it secure. Which approach is best?
Attempts:
2 left
💡 Hint
Think about authentication and network access controls.
✗ Incorrect
Disabling protected mode requires setting a password to prevent unauthorized access. Firewall alone is not enough.
🔧 Debug
expert3:00remaining
Why does Redis refuse remote connections despite disabling protected mode?
You disabled protected mode in redis.conf but remote clients still cannot connect. What could be the cause?
Attempts:
2 left
💡 Hint
Check the network interface Redis listens on.
✗ Incorrect
If Redis is bound only to localhost, remote connections cannot reach it even if protected mode is off.