In Redis, replication means copying data from one server (master) to another (slave). Why does this help keep data safe and available?
Think about what happens if the main server stops working.
Replication creates copies of data on other servers. If the main server fails, these copies can take over, so data is not lost and remains accessible.
Which statement best explains how replication helps reduce downtime in Redis?
Think about how spreading work helps keep the system fast and available.
Slaves can handle read requests, so the master is less busy and can focus on writes. If the master fails, slaves can take over quickly, reducing downtime.
Assume a Redis master has a key count set to 10. It replicates to a slave. Then the master increments count by 5. What value will the slave return for count after replication?
MASTER: SET count 10 SLAVE: GET count MASTER: INCRBY count 5 SLAVE: GET count
Remember slaves update their data after the master changes.
The slave initially has 10 for count. After the master increments it to 15, the slave updates to 15 too.
A Redis slave is not showing the latest data after the master updates a key. Which reason explains this behavior?
Check the connection status between master and slave.
If the slave is disconnected, it cannot get updates from the master, so its data is stale.
Choose the best explanation why replication is a form of redundancy in Redis systems.
Think about what redundancy means in data storage.
Redundancy means having extra copies of data so if one copy is lost or damaged, others remain available. Replication achieves this by copying data to multiple servers.