0
0
Redisquery~10 mins

Adding and removing nodes 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 add a new node to a Redis cluster.

Redis
redis-cli --cluster add-node [1] 127.0.0.1:7001 127.0.0.1:7000
Drag options to blanks, or click blank then click option'
A127.0.0.1:7005
B127.0.0.1:7003
C127.0.0.1:7004
D127.0.0.1:7002
Attempts:
3 left
💡 Hint
Common Mistakes
Using the same address as an existing node.
Mixing up the order of node addresses.
2fill in blank
medium

Complete the command to remove a node from a Redis cluster by its node ID.

Redis
redis-cli --cluster del-node 127.0.0.1:7000 [1]
Drag options to blanks, or click blank then click option'
A1234567890abcdef1234567890abcdef12345678
Babcdef1234567890abcdef1234567890abcdef12
Cfedcba0987654321fedcba0987654321fedcba09
D0987654321fedcba0987654321fedcba09876543
Attempts:
3 left
💡 Hint
Common Mistakes
Using the IP address instead of the node ID.
Using an incorrect or partial node ID.
3fill in blank
hard

Fix the error in the command to add a node to the cluster by filling the blank.

Redis
redis-cli --cluster add-node 127.0.0.1:7000 [1]
Drag options to blanks, or click blank then click option'
A127.0.0.1
B127.0.0.1:7001
C7001
Dlocalhost:7001
Attempts:
3 left
💡 Hint
Common Mistakes
Providing only the port number.
Using hostname instead of IP address.
4fill in blank
hard

Fill both blanks to create a command that removes a node by ID from the cluster.

Redis
redis-cli --cluster del-node [1] [2]
Drag options to blanks, or click blank then click option'
A127.0.0.1:7000
Babcdefabcdefabcdefabcdefabcdefabcdefabcd
C1234567890abcdef1234567890abcdef12345678
D127.0.0.1:7001
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping the node address and node ID.
Using an invalid node ID.
5fill in blank
hard

Fill all three blanks to create a command that adds a node and assigns slots to it.

Redis
redis-cli --cluster add-node [1] [2] --cluster-slots [3]
Drag options to blanks, or click blank then click option'
A127.0.0.1:7002
B127.0.0.1:7000
C0-5460
D127.0.0.1:7001
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up the order of node addresses.
Using invalid slot ranges.