0
0
Redisquery~10 mins

Why Sentinel provides high availability in Redis - Test Your Understanding

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to check the Sentinel status command.

Redis
redis-cli [1]
Drag options to blanks, or click blank then click option'
ASENTINEL slaves mymaster
BSENTINEL masters
CSENTINEL get-master-addr-by-name mymaster
DPING
Attempts:
3 left
💡 Hint
Common Mistakes
Using PING instead of SENTINEL command
Using slaves command when asked for status
2fill in blank
medium

Complete the code to failover a master using Sentinel.

Redis
redis-cli [1] mymaster
Drag options to blanks, or click blank then click option'
ASENTINEL failover
BSENTINEL slaves
CSENTINEL reset
DSENTINEL monitor
Attempts:
3 left
💡 Hint
Common Mistakes
Using monitor instead of failover
Using reset which clears state
3fill in blank
hard

Fix the error in the command to get the master address.

Redis
redis-cli SENTINEL [1] mymaster
Drag options to blanks, or click blank then click option'
Aget-master-addr
Bget-master-name-by-addr
Cget-slave-addr-by-name
Dget-master-addr-by-name
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong command names
Confusing slave and master commands
4fill in blank
hard

Fill both blanks to create a Sentinel configuration command.

Redis
SENTINEL [1] mymaster [2] 6379
Drag options to blanks, or click blank then click option'
Amonitor
Bport
C127.0.0.1
Dfailover
Attempts:
3 left
💡 Hint
Common Mistakes
Using failover instead of monitor
Using port instead of IP address
5fill in blank
hard

Fill both blanks to create a command that resets Sentinel state for a master.

Redis
SENTINEL [1] [2]
Drag options to blanks, or click blank then click option'
Areset
Bmymaster
Dfailover
Attempts:
3 left
💡 Hint
Common Mistakes
Using failover instead of reset