0
0
Redisquery~20 mins

RDB configuration (save intervals) in Redis - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Redis RDB Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
query_result
intermediate
1:30remaining
What is the effect of this Redis configuration snippet?
Given the Redis configuration line:
save 900 1
What does this setting do?
Redis
save 900 1
ARedis saves the DB every 900 seconds regardless of changes.
BRedis disables saving the DB automatically.
CRedis saves the DB if at least 1 key changed within 900 seconds.
DRedis saves the DB if at least 900 keys changed within 1 second.
Attempts:
2 left
💡 Hint
Think about the meaning of the two numbers in the 'save' directive.
🧠 Conceptual
intermediate
1:30remaining
Why might you configure multiple 'save' intervals in Redis?
Redis allows multiple 'save' directives like:
save 900 1
save 300 10
save 60 10000
Why would an administrator set multiple save intervals?
ATo save the DB more frequently when many keys change and less frequently when fewer keys change.
BTo save the DB only once at the shortest interval specified.
CTo disable saving when the number of changes is below the smallest threshold.
DTo save the DB only if all conditions are met simultaneously.
Attempts:
2 left
💡 Hint
Think about how different thresholds affect save frequency.
📝 Syntax
advanced
1:30remaining
Identify the syntax error in this Redis save configuration line
Which option contains a syntax error in Redis 'save' configuration?
Asave 900 1
Bsave 60
Csave 300 5
Dsave 120 100
Attempts:
2 left
💡 Hint
The 'save' directive requires two arguments.
optimization
advanced
2:00remaining
Which Redis save interval configuration best balances performance and durability for a busy server?
Consider a Redis server with frequent writes. Which save configuration is best to reduce performance impact but keep data safe?
A
save 900 1
save 300 10
save 60 10000
B
save 60 1
save 30 5
save 10 10
Csave 3600 10000
Dsave 1 100000
Attempts:
2 left
💡 Hint
Think about how often saves happen and how many changes trigger them.
🔧 Debug
expert
2:30remaining
Why does this Redis server never save snapshots despite 'save' directives present?
A Redis server has these lines in redis.conf:
save 900 1
save 300 10
But it never creates RDB snapshots. What is the most likely cause?
AThe server is running in cluster mode which disables RDB saving.
BThe server has no keys, so no changes trigger saving.
CThe server is configured with 'appendonly yes' which disables RDB snapshots.
DThe 'save' directives are overridden by a 'save ""' directive disabling snapshots.
Attempts:
2 left
💡 Hint
Check if any configuration disables saving explicitly.