0
0
Redisquery~10 mins

Master-replica architecture 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 set a Redis instance as a replica of a master.

Redis
replicaof [1] [2]
Drag options to blanks, or click blank then click option'
A192.168.1.100 6380
B127.0.0.1 6379
Clocalhost 6379
Dmaster 6379
Attempts:
3 left
💡 Hint
Common Mistakes
Using an incorrect hostname or port.
Omitting the port number.
2fill in blank
medium

Complete the command to check the role of a Redis instance.

Redis
info replication | grep [1]
Drag options to blanks, or click blank then click option'
Astatus
Bmaster
Creplica
Drole
Attempts:
3 left
💡 Hint
Common Mistakes
Using master or replica directly instead of the key.
Using unrelated keys like status.
3fill in blank
hard

Fix the error in the command to promote a replica to master.

Redis
redis-cli [1]
Drag options to blanks, or click blank then click option'
Areplicaof noone
Breplicaof no one
Creplicaof none
Dreplicaof no_one
Attempts:
3 left
💡 Hint
Common Mistakes
Writing 'noone' as one word.
Using 'none' or 'no_one' which are invalid.
4fill in blank
hard

Fill both blanks to configure a replica to follow a master at IP 10.0.0.5 and port 6380.

Redis
replicaof [1] [2]
Drag options to blanks, or click blank then click option'
A10.0.0.5
B6380
C6379
Dlocalhost
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping IP and port positions.
Using default port 6379 instead of 6380.
5fill in blank
hard

Fill all three blanks to create a Redis configuration snippet that sets a replica to follow master at 192.168.0.10 port 6379 and disables replica read-only mode.

Redis
replicaof [1] [2]
replica-read-only [3]
Drag options to blanks, or click blank then click option'
A192.168.0.10
B6379
Cno
Dyes
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'yes' for replica-read-only which keeps replica read-only.
Mixing up IP and port order.