0
0
Redisquery~20 mins

Monitoring with INFO command in Redis - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Redis INFO Command Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate
2:00remaining
Output of INFO command for memory stats
What is the output of the following Redis command snippet when querying memory stats?

INFO memory

Assume Redis server is running normally with some keys stored.
Redis
INFO memory
AShows a JSON object with memory usage details
BReturns only the total number of keys stored in Redis
CContains lines like 'used_memory:', 'used_memory_rss:', and 'mem_fragmentation_ratio:' with numeric values
DOutputs an error saying 'unknown command INFO memory'
Attempts:
2 left
💡 Hint
INFO command sections are divided by categories like memory, server, clients, etc.
🧠 Conceptual
intermediate
1:30remaining
Understanding INFO command sections
Which of the following is NOT a valid section you can query with the Redis INFO command?
Aserver
Bnetwork
Cpersistence
Dclients
Attempts:
2 left
💡 Hint
Check Redis documentation for INFO command sections.
Troubleshoot
advanced
2:00remaining
Diagnosing missing INFO command output
You run INFO on your Redis server but get an empty response. What is the most likely cause?
Redis
INFO
AYou connected to the wrong port where no Redis server is running
BRedis server is running in protected mode and INFO command is disabled
CThe Redis server is running but has no data stored yet
DThe INFO command requires authentication and you did not authenticate
Attempts:
2 left
💡 Hint
Check your connection and server status.
Best Practice
advanced
1:30remaining
Using INFO command for monitoring in production
Which practice is best when using the Redis INFO command for monitoring in a production environment?
AAvoid using INFO command and rely only on Redis logs
BRun INFO command frequently (every second) to get real-time stats
CRun INFO command only once after server restart
DRun INFO command periodically (e.g., every minute) and parse output for key metrics
Attempts:
2 left
💡 Hint
Consider performance impact and usefulness of data.
🔀 Workflow
expert
2:30remaining
Interpreting INFO command output for memory troubleshooting
Given this snippet of Redis INFO memory output:
used_memory:10485760
used_memory_rss:20971520
mem_fragmentation_ratio:2.0

What does this indicate about Redis memory usage?
Redis
INFO memory
ARedis is using twice as much memory from the OS than it actually needs, indicating possible memory fragmentation
BRedis memory usage is normal and fragmentation ratio below 1.0
CRedis is using less memory than allocated, so no fragmentation is present
DRedis has a memory leak causing used_memory to be zero
Attempts:
2 left
💡 Hint
Compare used_memory and used_memory_rss values and fragmentation ratio.