Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the command to get general information about the Redis server.
Redis
redis-cli [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using GET or SET commands which are for key-value operations.
Using PING which only checks server responsiveness.
✗ Incorrect
The INFO command in Redis provides general information and statistics about the server.
2fill in blank
mediumComplete the command to get memory-related information from Redis.
Redis
redis-cli INFO [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'cpu' which returns CPU stats, not memory.
Using 'clients' which shows client connections.
✗ Incorrect
Using INFO memory returns memory usage statistics of the Redis server.
3fill in blank
hardFix 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using singular 'client' which is not recognized.
Using unrelated words like 'connection' or 'connections'.
✗ Incorrect
The correct section name is 'clients' to get info about connected clients.
4fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up memory or clients instead of server info.
Using singular forms or incorrect section names.
✗ Incorrect
INFO commandstats gives command usage stats; INFO server gives server details.
5fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'memory' instead of 'keyspace' for first blank.
Filtering wrong database number or wrong awk field.
✗ Incorrect
INFO keyspace shows database stats; grep db0 filters database 0; awk prints the first field (keys count).