0
0
Redisquery~20 mins

Sentinel architecture in Redis - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Redis Sentinel Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Role of Sentinel in Redis architecture
What is the primary role of Redis Sentinel in a Redis deployment?
ATo act as a caching layer between clients and Redis
BTo monitor Redis instances and perform automatic failover if the master fails
CTo provide a graphical user interface for Redis management
DTo store data persistently on disk for Redis
Attempts:
2 left
💡 Hint
Think about what happens when the master Redis server stops working.
query_result
intermediate
2:00remaining
Sentinel command output interpretation
Given the Redis Sentinel command SENTINEL masters, what kind of information does it return?
AA list of all monitored master nodes with their status and configuration
BThe memory usage statistics of the Redis server
CThe list of connected clients to the Redis server
DThe current keys stored in the Redis database
Attempts:
2 left
💡 Hint
Sentinel monitors masters, so the command should show details about them.
📝 Syntax
advanced
2: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?
Asentinel mymaster monitor 192.168.1.100 6379 2
Bmonitor sentinel mymaster 192.168.1.100 6379 2
Csentinel monitor mymaster 192.168.1.100 6379 2
Dmonitor mymaster sentinel 192.168.1.100 6379 2
Attempts:
2 left
💡 Hint
The correct syntax starts with the word 'sentinel' followed by 'monitor'.
optimization
advanced
2: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?
A2
B1
C5
D3
Attempts:
2 left
💡 Hint
Quorum should be a majority of Sentinels to avoid split-brain.
🔧 Debug
expert
2: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?
AThe quorum value is set higher than the number of available Sentinel nodes
BThe Redis slaves are configured with different passwords
CThe Redis master has persistence enabled
DThe Redis clients are using pipelining
Attempts:
2 left
💡 Hint
Failover requires enough Sentinels to agree; if quorum is too high, failover won't trigger.