Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using localhost instead of the actual IP address.
Using the wrong port number.
✗ Incorrect
The REPLICAOF command requires the IP address of the master server. Here, 192.168.1.10 is the correct IP.
2fill in blank
mediumComplete 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using REPLICAOF NONE 0 0 which is invalid.
Using only one argument after REPLICAOF.
✗ Incorrect
To stop replication, use REPLICAOF NO ONE.
3fill in blank
hardFix 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Combining IP and port with a colon.
Using the port number as the IP argument.
✗ Incorrect
The REPLICAOF command requires the IP address and port as separate arguments. Using '10.0.0.5:6380' is invalid syntax.
4fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping IP and port arguments.
Using default port 6379 instead of 7000.
✗ Incorrect
The first blank is the master's IP address, the second blank is the master's port number.
5fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong IP or port in first command.
Incorrect syntax to stop replication.
✗ Incorrect
First command sets replication to the master IP and port. Second command stops replication by using NO ONE.