0
0
Redisquery~10 mins

Multiple Sentinel instances 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 start a Redis Sentinel instance monitoring the master named 'mymaster'.

Redis
sentinel monitor [1] 127.0.0.1 6379 2
Drag options to blanks, or click blank then click option'
Aredis-master
Bmaster1
Cmymaster
Dprimary
Attempts:
3 left
💡 Hint
Common Mistakes
Using an incorrect master name causes Sentinel not to monitor the right instance.
2fill in blank
medium

Complete the code to configure the quorum for failover to 3 Sentinel instances.

Redis
sentinel set [1] quorum 3
Drag options to blanks, or click blank then click option'
Afailover
Bmymaster
Cquorum
Dmonitor
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'quorum' or 'failover' as the master name causes configuration errors.
3fill in blank
hard

Fix the error in the command to add a new Sentinel instance to monitor the master 'mymaster'.

Redis
sentinel monitor [1] 127.0.0.1 6379 2
Drag options to blanks, or click blank then click option'
Amymaster
Bmymaster 2
Cmymaster 1
Dmymaster 3
Attempts:
3 left
💡 Hint
Common Mistakes
Appending the quorum number to the master name causes syntax errors.
4fill in blank
hard

Fill both blanks to configure the failover timeout and parallel sync for 'mymaster'.

Redis
sentinel set [1] failover-timeout [2]
Drag options to blanks, or click blank then click option'
Amymaster
B5000
C10000
Dparallel-syncs
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'parallel-syncs' as a timeout value causes errors.
Using the wrong master name causes configuration to fail.
5fill in blank
hard

Fill all three blanks to create a dictionary of Sentinel instances with their IPs and ports.

Redis
sentinels = [1]: [2], [3]: 26379, '192.168.1.11': 26380}
Drag options to blanks, or click blank then click option'
A'192.168.1.10'
B26379
D26378
Attempts:
3 left
💡 Hint
Common Mistakes
Using integers as keys instead of strings.
Mixing up port numbers for different IPs.