0
0
Redisquery~10 mins

Cluster 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 command to check the cluster nodes status.

Redis
redis-cli [1]
Drag options to blanks, or click blank then click option'
ACLUSTER NODES
BPING
CINFO
DGET
Attempts:
3 left
💡 Hint
Common Mistakes
Using INFO instead of CLUSTER NODES.
Using PING which only checks connectivity.
Using GET which is for keys, not cluster info.
2fill in blank
medium

Complete the command to trigger a manual failover on a Redis replica node.

Redis
redis-cli [1] FAILOVER
Drag options to blanks, or click blank then click option'
ACLUSTER
BREPLICA
CFAILOVER
DSLAVEOF
Attempts:
3 left
💡 Hint
Common Mistakes
Using REPLICA FAILOVER which is not a valid command.
Using FAILOVER alone without CLUSTER prefix.
Using SLAVEOF which is deprecated in cluster mode.
3fill in blank
hard

Fix the error in the command to check cluster slots allocation.

Redis
redis-cli [1] SLOTS
Drag options to blanks, or click blank then click option'
ANODES
BSLOT
CCLUSTER
DINFO
Attempts:
3 left
💡 Hint
Common Mistakes
Using SLOT instead of SLOTS.
Using INFO which does not show slots.
Using NODES which shows node info but not slots.
4fill in blank
hard

Fill both blanks to create a command that sets a node as a replica of another node.

Redis
redis-cli [1] [2] <master-node-id>
Drag options to blanks, or click blank then click option'
ACLUSTER
BREPLICAOF
CFAILOVER
DREPLICATE
Attempts:
3 left
💡 Hint
Common Mistakes
Using REPLICAOF which is not valid in cluster mode.
Using FAILOVER which triggers failover but does not assign master.
Using REPLICAOF alone without CLUSTER prefix.
5fill in blank
hard

Fill all three blanks to create a command that forces a replica to failover and become master immediately.

Redis
redis-cli [1] FAILOVER [2] [3]
Drag options to blanks, or click blank then click option'
ACLUSTER
BFORCE
CTAKEOVER
DABORT
Attempts:
3 left
💡 Hint
Common Mistakes
Using ABORT which cancels failover.
Omitting FORCE or TAKEOVER which delays failover.
Using FAILOVER alone without options.