0
0
Redisquery~20 mins

Why Redis security matters - Challenge Your Understanding

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Redis Security Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Why is securing Redis important?

Redis is often used to store important data. What is the main risk if Redis is left unsecured on a public network?

ARedis will slow down and stop working.
BRedis will automatically delete all data after 24 hours.
CRedis will refuse all connections from clients.
DAnyone can read or change the data without permission.
Attempts:
2 left
💡 Hint

Think about what happens if anyone can connect to your Redis server.

query_result
intermediate
2:00remaining
What happens when Redis is accessed without authentication?

Assume Redis is configured with a password. What will happen if a client tries to run GET key1 without authenticating first?

Redis
GET key1
AReturns null without error.
B(error) NOAUTH Authentication required.
CServer crashes.
DReturns the value of key1.
Attempts:
2 left
💡 Hint

Redis requires clients to authenticate if a password is set.

📝 Syntax
advanced
2:00remaining
Which Redis configuration line enables password authentication?

Choose the correct line to add in the Redis configuration file to require clients to authenticate with password mypassword.

Arequirepass mypassword
Bauthpassword mypassword
Cpassword mypassword
Dsetpass mypassword
Attempts:
2 left
💡 Hint

Check the official Redis config directive for password protection.

optimization
advanced
2:00remaining
Best practice to limit Redis exposure on a server

You want to keep Redis running on your server but prevent it from being accessed from outside your local machine. What is the best configuration change?

ABind Redis to 127.0.0.1 only.
BBind Redis to 0.0.0.0 to accept all connections.
CDisable password authentication.
DIncrease maxclients to 10000.
Attempts:
2 left
💡 Hint

Think about restricting network access to only local connections.

🔧 Debug
expert
2:00remaining
Why does this Redis command fail with NOAUTH error?

You run the command SET user:1 "Alice" on a Redis server that has requirepass secret123 set in its config. The command returns (error) NOAUTH Authentication required.. What is the reason?

ARedis does not support string values.
BThe SET command is invalid syntax.
CYou did not run AUTH with the password before the SET command.
DThe password 'secret123' is incorrect.
Attempts:
2 left
💡 Hint

Think about the order of commands when authentication is required.