0
0
Redisquery~10 mins

Cluster creation 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 create a Redis cluster with 3 nodes.

Redis
redis-cli --cluster create [1]
Drag options to blanks, or click blank then click option'
A127.0.0.1:7000 127.0.0.1:7001 127.0.0.1:7002 --cluster-replicas 0
B127.0.0.1:6379 127.0.0.1:6380 127.0.0.1:6381
C127.0.0.1:7000 127.0.0.1:7001
Dlocalhost:7000 localhost:7001 localhost:7002
Attempts:
3 left
💡 Hint
Common Mistakes
Using default Redis ports (6379) which are not cluster nodes.
Omitting the --cluster-replicas option.
Providing fewer than 3 nodes.
2fill in blank
medium

Complete the command to add a node to an existing Redis cluster.

Redis
redis-cli --cluster add-node [1] 127.0.0.1:7000
Drag options to blanks, or click blank then click option'
A127.0.0.1:7001
B127.0.0.1:6380
C127.0.0.1:7002
Dlocalhost:7003
Attempts:
3 left
💡 Hint
Common Mistakes
Using non-cluster ports like 6380.
Using localhost instead of IP:port format.
Adding a node that is already part of the cluster.
3fill in blank
hard

Fix the error in the command to create a cluster with replicas.

Redis
redis-cli --cluster create 127.0.0.1:7000 127.0.0.1:7001 127.0.0.1:7002 [1] 1
Drag options to blanks, or click blank then click option'
A--cluster-replicas-count
B--cluster-replica
C--replicas
D--cluster-replicas
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect option names like --cluster-replica or --replicas.
Omitting the option entirely.
Using a wrong number format.
4fill in blank
hard

Fill both blanks to specify the cluster creation with 3 nodes and 1 replica each.

Redis
redis-cli --cluster create [1] --cluster-replicas [2]
Drag options to blanks, or click blank then click option'
A127.0.0.1:7000 127.0.0.1:7001 127.0.0.1:7002 127.0.0.1:7003 127.0.0.1:7004 127.0.0.1:7005
B127.0.0.1:7000 127.0.0.1:7001 127.0.0.1:7002
C1
D3
Attempts:
3 left
💡 Hint
Common Mistakes
Listing only 3 nodes when replicas are specified.
Setting replicas to 3 instead of 1.
Using wrong IP:port formats.
5fill in blank
hard

Fill all three blanks to create a cluster with 3 masters, 3 replicas, and assign replicas correctly.

Redis
redis-cli --cluster create [1] --cluster-replicas [2] --cluster-assign-replicas [3]
Drag options to blanks, or click blank then click option'
A127.0.0.1:7000 127.0.0.1:7001 127.0.0.1:7002 127.0.0.1:7003 127.0.0.1:7004 127.0.0.1:7005
B1
Ctrue
Dfalse
Attempts:
3 left
💡 Hint
Common Mistakes
Omitting some nodes.
Setting replicas to 0 or more than 1.
Using 'false' for replica assignment.