0
0
Redisquery~20 mins

Protected mode in Redis - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Redis Protected Mode Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
What is the purpose of Redis protected mode?
Redis protected mode is enabled by default. What is its main purpose?
ATo limit the number of client connections to Redis
BTo encrypt all data stored in Redis automatically
CTo prevent Redis from accepting connections from external IP addresses by default
DTo automatically backup Redis data every hour
Attempts:
2 left
💡 Hint
Think about security when Redis is started without a password and accessible from outside.
query_result
intermediate
2: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?
AConnection succeeds and allows all commands
BConnection succeeds but only read commands are allowed
CConnection is accepted but immediately disconnected
DConnection is refused with an error message about protected mode
Attempts:
2 left
💡 Hint
Protected mode blocks unauthorized remote connections.
📝 Syntax
advanced
2:00remaining
Which configuration disables Redis protected mode correctly?
You want to disable Redis protected mode by editing redis.conf. Which line is correct?
Aprotected-mode no
Bprotected_mode off
Cdisable-protected-mode yes
Dprotectedmode false
Attempts:
2 left
💡 Hint
Check the exact spelling and syntax of the configuration directive.
optimization
advanced
2: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?
ADisable protected mode and rely on firewall only
BDisable protected mode and set a strong password with 'requirepass' directive
CKeep protected mode enabled and connect remotely without authentication
DDisable protected mode and open Redis port to the internet without password
Attempts:
2 left
💡 Hint
Think about authentication and network access controls.
🔧 Debug
expert
3: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?
ARedis is bound only to localhost (127.0.0.1) in the 'bind' configuration
BRedis requires a password but none was set
CRedis server is not running
DProtected mode is still enabled by default
Attempts:
2 left
💡 Hint
Check the network interface Redis listens on.