0
0
Redisquery~10 mins

Memory usage analysis (INFO memory) in Redis - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to check Redis memory usage.

Redis
INFO [1]
Drag options to blanks, or click blank then click option'
Astats
Bclients
Cmemory
Dpersistence
Attempts:
3 left
💡 Hint
Common Mistakes
Using INFO stats instead of INFO memory.
Using INFO clients which shows client info, not memory.
2fill in blank
medium

Complete the command to get the peak memory usage in Redis.

Redis
INFO memory | grep [1]
Drag options to blanks, or click blank then click option'
Aused_memory_peak
Bmemory_fragmentation_ratio
Cused_memory
Dmaxmemory
Attempts:
3 left
💡 Hint
Common Mistakes
Using used_memory which shows current usage, not peak.
Using maxmemory which is a config limit, not usage.
3fill in blank
hard

Fix the error in the command to show memory fragmentation ratio.

Redis
INFO memory | grep [1]
Drag options to blanks, or click blank then click option'
Amemory_fragmentation
Bmem_fragmentation_ratio
Cfragmentation_ratio
Dmem_fragment_ratio
Attempts:
3 left
💡 Hint
Common Mistakes
Using incomplete or incorrect field names causing no output.
Misspelling fragmentation or ratio.
4fill in blank
hard

Fill both blanks to create a command that shows used memory and peak memory.

Redis
INFO memory | grep -E '[1]|[2]'
Drag options to blanks, or click blank then click option'
Aused_memory
Bused_memory_peak
Cmaxmemory
Dmemory_fragmentation_ratio
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong field names causing no matches.
Forgetting to quote the pattern or use -E option.
5fill in blank
hard

Fill all three blanks to create a command that shows used memory, peak memory, and fragmentation ratio.

Redis
INFO memory | grep -E '[1]|[2]|[3]'
Drag options to blanks, or click blank then click option'
Aused_memory
Bused_memory_peak
Cmem_fragmentation_ratio
Dmaxmemory
Attempts:
3 left
💡 Hint
Common Mistakes
Using maxmemory instead of fragmentation ratio.
Missing quotes or incorrect field names.