0
0
Redisquery~10 mins

Monitoring with INFO command 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 get general information about the Redis server.

Redis
redis-cli [1]
Drag options to blanks, or click blank then click option'
ASET
BGET
CPING
DINFO
Attempts:
3 left
💡 Hint
Common Mistakes
Using GET or SET commands which are for key-value operations.
Using PING which only checks server responsiveness.
2fill in blank
medium

Complete the command to get memory-related information from Redis.

Redis
redis-cli INFO [1]
Drag options to blanks, or click blank then click option'
Amemory
Bpersistence
Cclients
Dcpu
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'cpu' which returns CPU stats, not memory.
Using 'clients' which shows client connections.
3fill in blank
hard

Fix the error in the command to get stats about connected clients.

Redis
redis-cli INFO [1]
Drag options to blanks, or click blank then click option'
Aclient
Bclients
Cconnection
Dconnections
Attempts:
3 left
💡 Hint
Common Mistakes
Using singular 'client' which is not recognized.
Using unrelated words like 'connection' or 'connections'.
4fill in blank
hard

Fill both blanks to get command statistics and server info.

Redis
redis-cli INFO [1] && redis-cli INFO [2]
Drag options to blanks, or click blank then click option'
Acommandstats
Bmemory
Cserver
Dclients
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up memory or clients instead of server info.
Using singular forms or incorrect section names.
5fill in blank
hard

Fill all three blanks to create a dictionary of keyspace info filtered by database number and keys count.

Redis
redis-cli INFO [1] | grep db[2] | awk -F',' '{{print $[3]'
Drag options to blanks, or click blank then click option'
Akeyspace
B0
C1
Dmemory
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'memory' instead of 'keyspace' for first blank.
Filtering wrong database number or wrong awk field.