Challenge - 5 Problems
Redis Authentication Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ query_result
intermediate2:00remaining
What happens when you try to run a command without AUTH after setting requirepass?
Assume Redis is configured with
requirepass mysecret. What is the output of running GET key1 without authenticating first?Redis
GET key1
Attempts:
2 left
💡 Hint
Think about what Redis requires before allowing commands when requirepass is set.
✗ Incorrect
When requirepass is set, Redis blocks all commands except AUTH until the client authenticates. So running GET without AUTH returns an error.
❓ query_result
intermediate2:00remaining
What is the output of AUTH with wrong password?
If Redis is configured with
requirepass mysecret, what is the output of AUTH wrongpass?Redis
AUTH wrongpass
Attempts:
2 left
💡 Hint
What does Redis reply when the password is incorrect?
✗ Incorrect
Redis replies with an error message indicating the password is invalid when AUTH is called with a wrong password.
📝 Syntax
advanced2:00remaining
Which AUTH command syntax is correct to authenticate with password 'mypassword'?
Choose the correct Redis AUTH command syntax to authenticate with password 'mypassword'.
Attempts:
2 left
💡 Hint
AUTH command takes the password as a single argument without quotes or keywords.
✗ Incorrect
The AUTH command syntax is AUTH without quotes or keywords.
🧠 Conceptual
advanced2:00remaining
Why is setting requirepass important in Redis?
Select the best reason why setting
requirepass in Redis configuration is important.Attempts:
2 left
💡 Hint
Think about what security feature requirepass provides.
✗ Incorrect
requirepass forces clients to authenticate before executing commands, preventing unauthorized access.
🔧 Debug
expert3:00remaining
Why does this Redis client fail to authenticate?
A Redis client runs these commands:
1. SET key1 value1
2. AUTH mysecret
3. GET key1
Redis is configured with
requirepass mysecret. The client gets an error on the SET command. Why?Redis
SET key1 value1 AUTH mysecret GET key1
Attempts:
2 left
💡 Hint
Consider the order of commands and when authentication is required.
✗ Incorrect
When requirepass is set, Redis blocks all commands except AUTH until the client authenticates. Running SET before AUTH causes an error.