0
0
Redisquery~20 mins

Redis configuration file - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Redis Config Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
query_result
intermediate
1: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
A["maxmemory", "104857600"]
B["maxmemory", "100mb"]
C["maxmemory", "100"]
D["maxmemory", "100000000"]
Attempts:
2 left
💡 Hint
Redis stores memory sizes in bytes internally.
📝 Syntax
intermediate
1:30remaining
Identify the syntax error in this Redis config line
Which option shows a syntax error in Redis configuration file for setting the port?
Aport=6379
Bport 6379
Cport 0
Dport 6380
Attempts:
2 left
💡 Hint
Redis config lines use space, not equal sign.
optimization
advanced
2:00remaining
Which configuration optimizes Redis persistence for minimal data loss?
To minimize data loss in Redis, which configuration setting is best?
Asave "900 1"
Bappendfsync no
Cappendfsync everysec
Dappendonly yes
Attempts:
2 left
💡 Hint
Consider how often Redis writes data to disk.
🔧 Debug
advanced
2: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 -100
Amaxclients must be a string, not a number
Bmaxclients cannot be set in config file
Cmaxclients must be zero or positive
DNegative maxclients value is invalid
Attempts:
2 left
💡 Hint
Check allowed value ranges for maxclients.
🧠 Conceptual
expert
2:30remaining
What is the effect of setting protected-mode no in Redis config?
Choose the correct effect of protected-mode no in Redis configuration.
AEnables password authentication for all clients
BDisables security protections, allowing external connections without authentication
CLimits Redis to accept connections only from localhost
DEnables encryption for all Redis traffic
Attempts:
2 left
💡 Hint
Protected mode is a safety feature for Redis servers exposed to networks.