0
0
Redisquery~20 mins

Multiple Sentinel instances 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!
🧠 Conceptual
intermediate
2:00remaining
Purpose of Multiple Sentinel Instances

Why is it recommended to run multiple Redis Sentinel instances monitoring the same master?

ATo enable Redis to store more data by distributing it across Sentinels
BTo increase the chance of automatic failover by achieving a quorum among Sentinels
CTo allow clients to connect to multiple masters simultaneously
DTo reduce the memory usage on the Redis master server
Attempts:
2 left
💡 Hint

Think about how Sentinel decides to promote a new master.

query_result
intermediate
2:00remaining
Sentinel Master Status Query Result

Given three Sentinel instances monitoring a Redis master, what will the SENTINEL masters command return?

Redis
SENTINEL masters
AAn error because multiple Sentinels cannot run simultaneously
BA list of all connected clients to the master
CA simple string with the master name only
DA list of dictionaries with details about each monitored master, including name, IP, port, and flags
Attempts:
2 left
💡 Hint

Consider what information Sentinel provides about monitored masters.

📝 Syntax
advanced
2:00remaining
Correct Sentinel Configuration for Multiple Instances

Which configuration snippet correctly sets up three Sentinel instances monitoring the same Redis master?

A
sentinel monitor mymaster 192.168.1.100 6379 2
sentinel down-after-milliseconds mymaster 5000
sentinel failover-timeout mymaster 10000
B
00001 retsamym tuoemit-revoliaf lenitnes
0005 retsamym sdnocesillim-retfa-nwod lenitnes
2 9736 001.1.861.291 retsamym rotinom lenitnes
C
sentinel monitor mymaster 192.168.1.100 6379 1
sentinel down-after-milliseconds mymaster 5000
sentinel failover-timeout mymaster 10000
D
sentinel monitor mymaster 192.168.1.100 6379 0
sentinel down-after-milliseconds mymaster 5000
sentinel failover-timeout mymaster 10000
Attempts:
2 left
💡 Hint

The quorum number must be the minimum number of Sentinels that agree to failover.

optimization
advanced
2:00remaining
Optimizing Sentinel Failover Decision Time

You want to reduce the time Sentinel takes to detect a master failure and start failover. Which configuration change helps achieve this without risking false failovers?

AIncrease both <code>down-after-milliseconds</code> and <code>failover-timeout</code>
BIncrease <code>down-after-milliseconds</code> and decrease <code>failover-timeout</code>
CDecrease both <code>down-after-milliseconds</code> and <code>failover-timeout</code> carefully
DDecrease <code>down-after-milliseconds</code> and increase <code>failover-timeout</code>
Attempts:
2 left
💡 Hint

Think about how quickly Sentinel detects failure and how long it waits before failover.

🔧 Debug
expert
2:00remaining
Diagnosing Sentinel Failover Failure

You have three Sentinel instances monitoring a Redis master with quorum set to 2. After the master crashes, failover does not occur. What is the most likely cause?

AAt least two Sentinels did not detect the master as down, so quorum was not reached
BThe master was not configured with <code>replicaof</code> pointing to Sentinels
CThe Sentinels were running on the same server, causing network partition
DThe <code>failover-timeout</code> was set to zero, disabling failover
Attempts:
2 left
💡 Hint

Consider how Sentinel decides to start failover based on quorum.