0
0
Redisquery~10 mins

Monitoring with Sentinel in Redis - Interactive Code Practice

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

Complete the command to start a Redis Sentinel instance using the configuration file.

Redis
redis-sentinel [1]
Drag options to blanks, or click blank then click option'
Amaster.conf
Bredis.conf
Csentinel.conf
Dnode.conf
Attempts:
3 left
💡 Hint
Common Mistakes
Using the Redis server config file instead of the Sentinel config file.
Omitting the configuration file argument.
2fill in blank
medium

Complete the Sentinel configuration line to monitor a master named 'mymaster' on port 6379 with quorum 2.

Redis
sentinel monitor mymaster 127.0.0.1 [1] 2
Drag options to blanks, or click blank then click option'
A6379
B6380
C26379
D6378
Attempts:
3 left
💡 Hint
Common Mistakes
Using the Sentinel port (26379) instead of the master port.
Using a random port number.
3fill in blank
hard

Fix the error in the Sentinel command to set the failover timeout to 15000 milliseconds.

Redis
sentinel [1] mymaster 15000
Drag options to blanks, or click blank then click option'
Afailover-timeout
BfailoverTimeout
Cfailover-timeout-ms
Dfailover_timeout
Attempts:
3 left
💡 Hint
Common Mistakes
Using underscores instead of hyphens.
Using camelCase which is invalid in Sentinel config.
4fill in blank
hard

Fill both blanks to configure Sentinel to notify a script and set the client reconfiguration timeout.

Redis
sentinel notification-script mymaster [1]
sentinel client-reconfig-script mymaster [2]
Drag options to blanks, or click blank then click option'
A/usr/local/bin/notify.sh
B/usr/local/bin/reconfig.sh
C/etc/redis/notify.sh
D/etc/redis/reconfig.sh
Attempts:
3 left
💡 Hint
Common Mistakes
Using the same script path for both directives.
Using non-executable or incorrect script paths.
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension that maps each Sentinel master name to its quorum if the quorum is greater than 1.

Redis
masters_quorum = [1]: [2] for [3], quorum in sentinel_masters.items() if quorum > 1
Drag options to blanks, or click blank then click option'
Aname
Bquorum
Attempts:
3 left
💡 Hint
Common Mistakes
Using inconsistent variable names for keys and loop variables.
Using the wrong variable for the value.