Redis uses synchronization to keep data consistent between the master and replicas. What is the main goal of this synchronization?
Think about why replicas exist in Redis.
The synchronization process ensures that replicas have the same data as the master so they can serve read requests and provide fault tolerance.
INFO replication show during synchronization?When you run INFO replication on a Redis replica during synchronization, what key information will you see?
Look for synchronization status details in the replication info.
The INFO replication command shows the master link status and the replication offset, which indicate synchronization progress.
Choose the command that forces the master to send a full data snapshot to the replica for synchronization.
This command is used when the replica has no previous data or lost connection.
The SYNC command triggers a full synchronization by sending a snapshot of the entire dataset to the replica.
Redis supports partial resynchronization to reduce data sent after a brief disconnection. Which mechanism enables this optimization?
Look for a command that resumes sync from where it left off.
The PSYNC command allows partial resynchronization by sending only the missing data since the last offset, reducing bandwidth.
During partial resynchronization, if the replica's replication ID does not match the master's, what response will the master send?
Think about what happens when partial sync cannot continue.
If replication IDs mismatch, Redis cannot do partial sync and responds with a "FULLRESYNC