0
0
Redisquery~10 mins

Slow log for performance analysis 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 view the slow log entries.

Redis
SLOWLOG [1]
Drag options to blanks, or click blank then click option'
AGET
BGETLOG
CGETSLOW
DGETSLOWLOG
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect subcommands like GETLOG or GETSLOW.
Confusing slow log commands with other Redis commands.
2fill in blank
medium

Complete the command to reset the slow log entries.

Redis
SLOWLOG [1]
Drag options to blanks, or click blank then click option'
ARESET
BCLEAR
CRESETLOG
DRESETLOGS
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect subcommands like CLEAR or RESETLOGS.
Trying to delete slow logs with unrelated commands.
3fill in blank
hard

Fix 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'
Afive
B5
C'5'
Dlast5
Attempts:
3 left
💡 Hint
Common Mistakes
Using words like 'five' instead of the number 5.
Putting the number inside quotes which causes errors.
4fill in blank
hard

Fill 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'
AGET
BRESET
C10
DCLEAR
Attempts:
3 left
💡 Hint
Common Mistakes
Using RESET or CLEAR with a number, which is invalid.
Mixing subcommands and numbers incorrectly.
5fill in blank
hard

Fill 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'
ACLEAR
BGET
C3
DRESET
Attempts:
3 left
💡 Hint
Common Mistakes
Using CLEAR instead of RESET to reset the log.
Using strings instead of numbers for the count.