0
0
Redisquery~10 mins

Cluster architecture 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 get the cluster nodes information.

Redis
redis-cli [1] nodes
Drag options to blanks, or click blank then click option'
Acluster
Binfo
Cget
Dlist
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'info' instead of 'cluster' will show general info, not cluster nodes.
Using 'get' or 'list' are not valid Redis CLI commands for cluster nodes.
2fill in blank
medium

Complete the code to add a node to the Redis cluster.

Redis
redis-cli --cluster [1] 127.0.0.1:7003 127.0.0.1:7000
Drag options to blanks, or click blank then click option'
Acreate
Bjoin
Cadd-node
Dconnect
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'create' is for creating a new cluster, not adding nodes.
Using 'join' or 'connect' are not valid Redis cluster commands.
3fill in blank
hard

Fix the error in the command to reshard slots in the cluster.

Redis
redis-cli --cluster [1] 127.0.0.1:7000
Drag options to blanks, or click blank then click option'
Amigrate
Breshard
Crebalance
Dresync
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'rebalance' or 'resync' are not valid Redis cluster commands.
Using 'migrate' is a different command for key migration, not cluster resharding.
4fill in blank
hard

Fill both blanks to check the cluster's slot allocation and node status.

Redis
redis-cli [1] cluster [2]
Drag options to blanks, or click blank then click option'
Ainfo
Bnodes
Cslots
Dstatus
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'nodes' or 'status' after 'info cluster' will cause errors or unexpected output.
Using 'nodes slots' is not a valid command sequence.
5fill in blank
hard

Fill all three blanks to create a Redis cluster with 3 nodes and 1 replica each.

Redis
redis-cli --cluster create [1] [2] [3] --cluster-replicas 1
Drag options to blanks, or click blank then click option'
A127.0.0.1:7000
B127.0.0.1:7001
C127.0.0.1:7002
D127.0.0.1:7003
Attempts:
3 left
💡 Hint
Common Mistakes
Including port 7003 is extra and not needed for this 3-node cluster.
Using fewer than three nodes will cause the cluster creation to fail.