Complete the code to connect to a Redis read-only replica.
redis-cli -h [1] -p 6379 --readonly
The read-only replica is usually a separate server. Use its hostname or IP to connect.
Complete the command to check the role of the connected Redis instance.
redis-cli INFO [1]The INFO replication command shows if the Redis instance is a master or a replica.
Fix the error in the command to make the replica read-only.
redis-cli CONFIG SET [1] [2]
In modern Redis versions, the correct config name is replica-read-only. Setting it to yes makes the replica read-only.
Fill in the blank to create a Redis replica of a master at 192.168.1.10 port 6379.
redis-cli [1] 192.168.1.10 6379
The command REPLICAOF 192.168.1.10 6379 sets the current Redis instance as a replica of the given host and port.
Fill all three blanks to configure a Redis replica with password authentication.
redis-cli -h [1] -p [2] -a [3] --readonly
Connect to the replica host replica.redis.local on port 6380 using password replicaPass123 and enable read-only mode.