Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to start a Redis synchronization with the master.
Redis
redis-cli [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'connect' instead of 'sync'.
Trying 'start' which is not a Redis command.
✗ Incorrect
The sync command starts the synchronization process between Redis master and replica.
2fill in blank
mediumComplete the code to configure a Redis replica to connect to its master.
Redis
replicaof [1] [2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'localhost' instead of IP address.
Forgetting to specify the port.
✗ Incorrect
The replicaof command requires the master's IP and port. The default Redis port is 6379.
3fill in blank
hardComplete the command to stop replication.
Redis
replicaof [1] [2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'none' instead of 'no one'.
Omitting the second argument.
✗ Incorrect
To stop replication, use replicaof no one.
4fill in blank
hardFill both blanks to configure a Redis replica with IP and port.
Redis
replicaof [1] [2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong port like 6380.
Using 'localhost' instead of IP.
✗ Incorrect
Use the master's IP and default port 6379 to configure the replica.
5fill in blank
hardFill all three blanks to create a Redis replica and start sync.
Redis
replicaof [1] [2] redis-cli [3]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'no one' in place of 'sync' command.
Using wrong port number.
✗ Incorrect
First, set replicaof with IP and port, then run sync to start synchronization.