0
0
Redisquery~10 mins

Why replication provides redundancy in Redis - Test Your Understanding

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set up a Redis replica.

Redis
replicaof [1] 6379
Drag options to blanks, or click blank then click option'
A0.0.0.0
Blocalhost
C192.168.1.100
D127.0.0.1
Attempts:
3 left
💡 Hint
Common Mistakes
Using an incorrect IP address that does not point to the master.
Using 'localhost' instead of '127.0.0.1' in some Redis configurations.
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'
Aslave
Bmaster
Crole
Dconnected
Attempts:
3 left
💡 Hint
Common Mistakes
Searching for 'master' or 'slave' directly instead of 'role'.
Using incorrect grep patterns that return no results.
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 underscores instead of spaces.
4fill in blank
hard

Fill both blanks to complete the Redis configuration for replication.

Redis
replicaof [1] [2]
Drag options to blanks, or click blank then click option'
A192.168.0.10
B6379
C6380
Dlocalhost
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping IP and port positions.
Using wrong port numbers.
5fill in blank
hard

Fill all three blanks to create a Redis command that sets a key with replication enabled.

Redis
redis-cli -h [1] -p [2] set [3] "value"
Drag options to blanks, or click blank then click option'
A127.0.0.1
B6379
Cmykey
Dlocalhost
Attempts:
3 left
💡 Hint
Common Mistakes
Using IP instead of hostname inconsistently.
Forgetting to specify the key name.