0
0
Redisquery~10 mins

REPLICAOF command 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 make the current Redis server a replica of another server at IP 192.168.1.10 and port 6379.

Redis
REPLICAOF [1] 6379
Drag options to blanks, or click blank then click option'
Alocalhost
B192.168.1.10
C127.0.0.1
D0.0.0.0
Attempts:
3 left
💡 Hint
Common Mistakes
Using localhost instead of the actual IP address.
Using the wrong port number.
2fill in blank
medium

Complete the command to stop replication and make the Redis server a master again.

Redis
REPLICAOF [1] [2]
Drag options to blanks, or click blank then click option'
ANO
BONE
CNONE
D0 0
Attempts:
3 left
💡 Hint
Common Mistakes
Using REPLICAOF NONE 0 0 which is invalid.
Using only one argument after REPLICAOF.
3fill in blank
hard

Fix the error in the command to replicate from master at IP 10.0.0.5 and port 6380.

Redis
REPLICAOF [1] 6380
Drag options to blanks, or click blank then click option'
A10.0.0.5
B10.0.0.5:6380
Clocalhost
D6380
Attempts:
3 left
💡 Hint
Common Mistakes
Combining IP and port with a colon.
Using the port number as the IP argument.
4fill in blank
hard

Fill both blanks to replicate from master at IP 172.16.0.2 and port 7000.

Redis
REPLICAOF [1] [2]
Drag options to blanks, or click blank then click option'
A172.16.0.2
B7000
C6379
Dlocalhost
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping IP and port arguments.
Using default port 6379 instead of 7000.
5fill in blank
hard

Fill all four blanks to replicate from master at IP 192.168.100.50, port 6381, and then stop replication.

Redis
REPLICAOF [1] [2]
REPLICAOF [3] [4]
Drag options to blanks, or click blank then click option'
A192.168.100.50
B6381
CNO
DONE
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong IP or port in first command.
Incorrect syntax to stop replication.