Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the command to view the slow log entries.
Redis
SLOWLOG [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect subcommands like GETLOG or GETSLOW.
Confusing slow log commands with other Redis commands.
✗ Incorrect
The correct command to view slow log entries is SLOWLOG GET.
2fill in blank
mediumComplete the command to reset the slow log entries.
Redis
SLOWLOG [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect subcommands like CLEAR or RESETLOGS.
Trying to delete slow logs with unrelated commands.
✗ Incorrect
The command to reset the slow log entries is SLOWLOG RESET.
3fill in blank
hardFix the error in the command to get the last 5 slow log entries.
Redis
SLOWLOG GET [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using words like 'five' instead of the number 5.
Putting the number inside quotes which causes errors.
✗ Incorrect
The correct way to specify the number of entries is with the integer 5, not a string or word.
4fill in blank
hardFill both blanks to retrieve slow log entries including ID and execution time.
Redis
SLOWLOG [1] [2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using RESET or CLEAR with a number, which is invalid.
Mixing subcommands and numbers incorrectly.
✗ Incorrect
Use SLOWLOG GET 10 to retrieve the last 10 slow log entries.
5fill in blank
hardFill all three blanks to retrieve the last 3 slow log entries and then reset the log.
Redis
SLOWLOG [1] [2]; SLOWLOG [3]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using CLEAR instead of RESET to reset the log.
Using strings instead of numbers for the count.
✗ Incorrect
First, use SLOWLOG GET 3 to get the last 3 entries, then SLOWLOG RESET to reset the log.