0
0
Redisquery~20 mins

Replication lag monitoring in Redis - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Replication Lag Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
1: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
Amaster_last_io_seconds_ago
Bslave_repl_offset
Cmaster_link_down_since_seconds
Dmaster_repl_offset
Attempts:
2 left
💡 Hint
Look for a field that shows how long ago the last interaction with the master happened.
🧠 Conceptual
intermediate
1:30remaining
Understanding replication lag causes
Which of the following is the most common cause of replication lag in Redis?
AReplica running out of disk space
BReplica configured with a different Redis version
CMaster CPU overload causing slow command processing
DNetwork latency between master and replica
Attempts:
2 left
💡 Hint
Think about what delays the data transfer from master to replica.
Troubleshoot
advanced
2: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?
AReplica is out of memory and cannot process replication commands
BMaster is down and not sending data
CNetwork partition between master and replica
DReplica has a corrupted RDB file
Attempts:
2 left
💡 Hint
Look at the error about memory usage.
🔀 Workflow
advanced
2:30remaining
Steps to monitor replication lag continuously
Which sequence of steps correctly describes how to monitor Redis replication lag continuously using built-in commands?
A1,3,2,4
B1,2,3,4
C2,1,3,4
D1,2,4,3
Attempts:
2 left
💡 Hint
Think about the logical order: get data, extract value, alert, then log.
Best Practice
expert
3: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?
Amaster_last_io_seconds_ago
Bmaster_link_down_since_seconds
Cslave_repl_offset difference from master_repl_offset
Dinstantaneous_input_kbps on replica
Attempts:
2 left
💡 Hint
Consider a metric that measures actual data delay rather than connection status.