0
0
Redisquery~10 mins

Automatic failover in Redis - Interactive Code Practice

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

Complete the code to check the role of a Redis node.

Redis
[1]
Drag options to blanks, or click blank then click option'
AINFO
BROLE
CPING
DCONFIG
Attempts:
3 left
💡 Hint
Common Mistakes
Using INFO instead of ROLE
Using PING which only checks connectivity
2fill in blank
medium

Complete the command to failover a Redis slave to master.

Redis
SLAVEOF [1] [2]
Drag options to blanks, or click blank then click option'
ANO
B127.0.0.1
CONE
Dlocalhost
Attempts:
3 left
💡 Hint
Common Mistakes
Using IP address instead of NO ONE
Using a port number instead of ONE
3fill in blank
hard

Fix the error in the command to trigger a manual failover in Redis Sentinel.

Redis
SENTINEL [1] mymaster
Drag options to blanks, or click blank then click option'
Afailovered
Bfailovering
Cfailover
Dfailovers
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'failovering' or 'failovered' which are invalid commands
4fill in blank
hard

Fill both blanks to configure Redis Sentinel to monitor a master.

Redis
SENTINEL MONITOR [1] [2] 6379 2
Drag options to blanks, or click blank then click option'
Amymaster
B127.0.0.1
C192.168.1.100
Dlocalhost
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'localhost' instead of the actual IP
Using wrong master name
5fill in blank
hard

Fill all three blanks to check the current master of a monitored Redis master in Sentinel.

Redis
SENTINEL [1] | grep {{BLANK_3}}
Drag options to blanks, or click blank then click option'
Amasters
Bmymaster
Cname
Dslaves
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'slaves' instead of 'masters'
Using wrong grep keyword