Challenge - 5 Problems
Redis Sentinel Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate2:00remaining
Role of Sentinel in Redis architecture
What is the primary role of Redis Sentinel in a Redis deployment?
Attempts:
2 left
💡 Hint
Think about what happens when the master Redis server stops working.
✗ Incorrect
Redis Sentinel monitors Redis servers and automatically promotes a slave to master if the current master fails, ensuring high availability.
❓ query_result
intermediate2:00remaining
Sentinel command output interpretation
Given the Redis Sentinel command
SENTINEL masters, what kind of information does it return?Attempts:
2 left
💡 Hint
Sentinel monitors masters, so the command should show details about them.
✗ Incorrect
The SENTINEL masters command returns details about all master nodes Sentinel is monitoring, including their health and configuration.
📝 Syntax
advanced2:00remaining
Correct Sentinel configuration snippet
Which of the following Redis Sentinel configuration snippets correctly defines a master named
mymaster running on IP 192.168.1.100 and port 6379 with quorum 2?Attempts:
2 left
💡 Hint
The correct syntax starts with the word 'sentinel' followed by 'monitor'.
✗ Incorrect
The correct syntax for monitoring a master in Sentinel config is: sentinel monitor <master-name> <ip> <port> <quorum>.
❓ optimization
advanced2:00remaining
Optimizing Sentinel quorum for failover
In a Redis Sentinel setup with 5 Sentinel nodes, what is the recommended quorum value to ensure reliable failover without risking split-brain?
Attempts:
2 left
💡 Hint
Quorum should be a majority of Sentinels to avoid split-brain.
✗ Incorrect
With 5 Sentinels, quorum should be at least 3 to ensure a majority agrees on failover, preventing split-brain scenarios.
🔧 Debug
expert2:00remaining
Diagnosing Sentinel failover failure
A Redis Sentinel cluster is not performing failover when the master goes down. Which of the following is the most likely cause?
Attempts:
2 left
💡 Hint
Failover requires enough Sentinels to agree; if quorum is too high, failover won't trigger.
✗ Incorrect
If quorum is set higher than the number of Sentinels running, failover cannot be agreed upon and will not happen.