Challenge - 5 Problems
Replication Lag Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate1:30remaining
Check replication lag using Redis INFO command
You run the command
INFO replication on a Redis replica. Which field indicates the current replication lag in seconds?Redis
INFO replication
Attempts:
2 left
💡 Hint
Look for a field that shows how long ago the last interaction with the master happened.
✗ Incorrect
The master_last_io_seconds_ago field shows how many seconds ago the replica last communicated with the master, which reflects replication lag.
🧠 Conceptual
intermediate1:30remaining
Understanding replication lag causes
Which of the following is the most common cause of replication lag in Redis?
Attempts:
2 left
💡 Hint
Think about what delays the data transfer from master to replica.
✗ Incorrect
Network latency is the most common cause of replication lag because it delays the data sent from master to replica.
❓ Troubleshoot
advanced2:00remaining
Diagnose replication lag from Redis logs
You see the following log entry on a Redis replica:
"SYNC failed: OOM command not allowed when used memory > 'maxmemory'." What is the most likely cause of replication lag?Attempts:
2 left
💡 Hint
Look at the error about memory usage.
✗ Incorrect
The error indicates the replica exceeded its memory limit and cannot accept replication commands, causing lag.
🔀 Workflow
advanced2:30remaining
Steps to monitor replication lag continuously
Which sequence of steps correctly describes how to monitor Redis replication lag continuously using built-in commands?
Attempts:
2 left
💡 Hint
Think about the logical order: get data, extract value, alert, then log.
✗ Incorrect
The correct order is to run the command, extract the lag value, alert if needed, and log for history.
✅ Best Practice
expert3:00remaining
Choosing the best metric for replication lag alerting
Which Redis metric is the most reliable for alerting on replication lag to avoid false positives caused by temporary network glitches?
Attempts:
2 left
💡 Hint
Consider a metric that measures actual data delay rather than connection status.
✗ Incorrect
The difference between slave_repl_offset and master_repl_offset shows how far behind the replica is in bytes, which is a precise lag measure.