What does the down-after-milliseconds setting specify?
medium
A. The time Sentinel waits before declaring the master as down
B. The time Redis waits before accepting writes
C. The timeout for client connections to Redis
D. The time Sentinel waits before starting a failover
Solution
Step 1: Understand 'down-after-milliseconds'
This setting defines how long Sentinel waits to consider the master unreachable.
Step 2: Differentiate from failover timeout
Failover timeout is different; it controls failover duration, not detection.
Final Answer:
The time Sentinel waits before declaring the master as down -> Option A
Quick Check:
down-after-milliseconds = detection wait time [OK]
Hint: 'down-after-milliseconds' means detection delay [OK]
Common Mistakes:
Confusing with failover timeout
Thinking it affects client connections
Assuming it controls Redis write delay
4. You have this Sentinel configuration line:
sentinel monitor mymaster 10.0.0.1 6379
What is wrong with this configuration?
medium
A. IP address format is incorrect
B. Master name should be 'master' not 'mymaster'
C. Port number should be 6380 for Sentinel
D. Missing the quorum number at the end
Solution
Step 1: Check required parameters for sentinel monitor
The command requires master name, IP, port, and quorum number.
Step 2: Identify missing quorum
The quorum number (minimum votes to failover) is missing in the line.
Final Answer:
Missing the quorum number at the end -> Option D
Quick Check:
Quorum number required in sentinel monitor [OK]
Hint: Sentinel monitor needs quorum number last [OK]
Common Mistakes:
Ignoring quorum number
Changing port unnecessarily
Assuming master name must be 'master'
5. You want to configure Redis Sentinel to monitor a master and automatically failover if it is down. Which combination of settings is necessary to ensure Sentinel detects failure quickly and performs failover within 1 minute?
hard
A. Set down-after-milliseconds to 60000 only
B. Set down-after-milliseconds to 5000 and failover-timeout to 60000
C. Set failover-timeout to 5000 only
D. Set down-after-milliseconds to 60000 and failover-timeout to 5000
Solution
Step 1: Understand 'down-after-milliseconds'
This controls how fast Sentinel marks master as down; 5000 ms means 5 seconds.
Step 2: Understand 'failover-timeout'
This controls how long failover can take; 60000 ms means 60 seconds (1 minute).
Step 3: Combine settings for quick detection and failover
Setting down-after-milliseconds to 5000 and failover-timeout to 60000 ensures detection in 5 seconds and failover within 1 minute.
Final Answer:
Set down-after-milliseconds to 5000 and failover-timeout to 60000 -> Option B
Quick Check:
Fast detection + 1 min failover = Set down-after-milliseconds to 5000 and failover-timeout to 60000 [OK]
Hint: Fast detection needs low down-after; failover-timeout sets max failover time [OK]
Common Mistakes:
Swapping values of down-after and failover-timeout
Setting only one parameter
Using too high down-after-milliseconds
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.