Challenge - 5 Problems
Redis Config Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ query_result
intermediate1:30remaining
What is the output of this Redis command?
Given the Redis configuration file has
maxmemory 100mb set, what will the command CONFIG GET maxmemory return?Redis
CONFIG GET maxmemory
Attempts:
2 left
💡 Hint
Redis stores memory sizes in bytes internally.
✗ Incorrect
The maxmemory value is returned in bytes. 100mb equals 100 * 1024 * 1024 = 104857600 bytes.
📝 Syntax
intermediate1:30remaining
Identify the syntax error in this Redis config line
Which option shows a syntax error in Redis configuration file for setting the port?
Attempts:
2 left
💡 Hint
Redis config lines use space, not equal sign.
✗ Incorrect
Redis configuration lines use space to separate directive and value. Using '=' causes syntax error.
❓ optimization
advanced2:00remaining
Which configuration optimizes Redis persistence for minimal data loss?
To minimize data loss in Redis, which configuration setting is best?
Attempts:
2 left
💡 Hint
Consider how often Redis writes data to disk.
✗ Incorrect
Setting 'appendfsync everysec' makes Redis sync the append-only file every second, balancing performance and data safety.
🔧 Debug
advanced2:00remaining
Why does Redis fail to start with this config line?
Given the config line
maxclients -100, why does Redis fail to start?Redis
maxclients -100Attempts:
2 left
💡 Hint
Check allowed value ranges for maxclients.
✗ Incorrect
maxclients must be a positive integer; negative values cause startup failure.
🧠 Conceptual
expert2:30remaining
What is the effect of setting
protected-mode no in Redis config?Choose the correct effect of
protected-mode no in Redis configuration.Attempts:
2 left
💡 Hint
Protected mode is a safety feature for Redis servers exposed to networks.
✗ Incorrect
Setting protected-mode to no disables the default safety feature that blocks external connections without authentication.