0
0
Redisquery~20 mins

Sentinel configuration in Redis - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Sentinel Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
query_result
intermediate
2:00remaining
Sentinel monitoring configuration output
Given the following Redis Sentinel configuration snippet, what will be the output of the SENTINEL masters command?

sentinel monitor mymaster 192.168.1.100 6379 2
sentinel down-after-milliseconds mymaster 5000
sentinel failover-timeout mymaster 60000
sentinel parallel-syncs mymaster 1
A[]
B[{"name":"mymaster","ip":"127.0.0.1","port":6379,"quorum":2}]
C[{"name":"mymaster","ip":"192.168.1.100","port":6380,"quorum":2}]
D[{"name":"mymaster","ip":"192.168.1.100","port":6379,"quorum":2}]
Attempts:
2 left
💡 Hint
Check the IP and port values in the sentinel monitor command.
🧠 Conceptual
intermediate
1:30remaining
Understanding Sentinel quorum
In Redis Sentinel configuration, what does the quorum number specify?
AThe number of seconds before a master is considered down
BThe number of replicas to promote during failover
CThe number of Sentinels that must agree a master is down before failover starts
DThe number of clients allowed to connect to the master
Attempts:
2 left
💡 Hint
Think about how Sentinels decide to start failover.
📝 Syntax
advanced
1:30remaining
Identify the syntax error in Sentinel config
Which of the following Sentinel configuration lines contains a syntax error?
Asentinel monitor mymaster 192.168.1.100 6379 2
Bsentinel parallel-syncs mymaster
Csentinel failover-timeout mymaster 60000
Dsentinel down-after-milliseconds mymaster 5000
Attempts:
2 left
💡 Hint
Check if all required parameters are present.
optimization
advanced
1:30remaining
Optimizing Sentinel failover timeout
You want to reduce the failover time in your Redis Sentinel setup. Which configuration change will most directly reduce the failover duration?
ADecrease the value of sentinel failover-timeout
BIncrease the value of sentinel down-after-milliseconds
CIncrease the quorum number
DDecrease the number of Sentinels monitoring the master
Attempts:
2 left
💡 Hint
Failover-timeout controls the maximum time for failover to complete.
🔧 Debug
expert
2:30remaining
Debugging Sentinel failover not triggering
You have 3 Sentinels monitoring a master with quorum set to 2. The master goes down, but failover does not start. Which is the most likely cause?
AOnly one Sentinel detected the master as down, so quorum was not reached
BThe failover-timeout is set too low
CThe master IP address is incorrect in the Sentinel config
DThe parallel-syncs value is set to zero
Attempts:
2 left
💡 Hint
Quorum requires multiple Sentinels to agree on master status.