0
0
Redisquery~20 mins

Monitoring with Sentinel 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!
💻 Command Output
intermediate
1:30remaining
Sentinel Master Discovery Output
You run the command SENTINEL get-master-addr-by-name mymaster on a Redis Sentinel instance monitoring a master named mymaster. What is the expected output format?
AAn array with two elements: the IP address and the port of the current master
BA string with the master name only
CAn integer representing the number of connected slaves
DA boolean indicating if the master is reachable
Attempts:
2 left
💡 Hint
Think about what information Sentinel needs to provide to clients about the master.
🧠 Conceptual
intermediate
1:30remaining
Sentinel Quorum Role
What is the role of the quorum setting in Redis Sentinel configuration?
AIt sets the maximum number of slaves allowed per master
BIt controls the frequency of Sentinel health checks
CIt specifies the timeout for client connections to the master
DIt defines the minimum number of Sentinels that must agree a master is down before failover
Attempts:
2 left
💡 Hint
Quorum is about agreement among Sentinels.
Troubleshoot
advanced
2:00remaining
Sentinel Failover Not Triggering
You notice that your Redis Sentinel setup is not triggering failover even though the master is down. Which configuration mistake could cause this?
AThe master node has more than 5 connected slaves
BThe quorum value is set higher than the number of running Sentinel instances
CThe Sentinel port is set to the same port as the Redis master
DThe client timeout is set to 1000 milliseconds
Attempts:
2 left
💡 Hint
Failover depends on enough Sentinels agreeing the master is down.
🔀 Workflow
advanced
2:30remaining
Sentinel Automatic Failover Steps
Put the following Redis Sentinel failover steps in the correct order.
A1,3,2,4
B2,1,3,4
C1,2,3,4
D3,1,2,4
Attempts:
2 left
💡 Hint
Think about detection, agreement, promotion, then update.
Best Practice
expert
3:00remaining
Sentinel Deployment Best Practice
Which is the best practice for deploying Redis Sentinel instances to ensure high availability and avoid split-brain scenarios?
ADeploy an odd number of Sentinel instances on separate physical or virtual machines across different failure domains.
BDeploy all Sentinel instances on the same machine as the Redis master for faster communication.
CDeploy Sentinel instances only on slave nodes to reduce load on the master.
DDeploy a single Sentinel instance with a very low quorum value to speed up failover.
Attempts:
2 left
💡 Hint
Think about avoiding single points of failure and ensuring consensus.