0
0
Redisquery~10 mins

Protected mode in Redis - Interactive Code Practice

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

Complete the code to check if Redis is running in protected mode.

Redis
CONFIG GET [1]
Drag options to blanks, or click blank then click option'
Amaxclients
Brequirepass
Ctimeout
Dprotected-mode
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'requirepass' instead of 'protected-mode'.
Using 'timeout' which is unrelated to protected mode.
2fill in blank
medium

Complete the command to disable protected mode in Redis configuration.

Redis
CONFIG SET [1] [2]
Drag options to blanks, or click blank then click option'
Arequirepass
Bprotected-mode
Ctimeout
Dno
Attempts:
3 left
💡 Hint
Common Mistakes
Setting 'protected-mode' to 'yes' instead of 'no'.
Using unrelated parameters like 'requirepass'.
3fill in blank
hard

Fix the error in the command to enable protected mode.

Redis
CONFIG SET protected-mode [1]
Drag options to blanks, or click blank then click option'
Ayes
Bno
Cdisable
Doff
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'no' or 'off' which disables protected mode.
Using 'disable' which is not a valid value.
4fill in blank
hard

Fill both blanks to check the current protected mode status and set it to 'no'.

Redis
CONFIG GET [1]
CONFIG SET [2] no
Drag options to blanks, or click blank then click option'
Aprotected-mode
Brequirepass
Ctimeout
Dmaxclients
Attempts:
3 left
💡 Hint
Common Mistakes
Using different parameters for get and set commands.
Using unrelated parameters like 'requirepass'.
5fill in blank
hard

Fill all three blanks to get, set protected mode to 'yes', and verify the change.

Redis
CONFIG GET [1]
CONFIG SET [2] [3]
CONFIG GET protected-mode
Drag options to blanks, or click blank then click option'
Aprotected-mode
Bno
Cyes
Drequirepass
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'no' instead of 'yes' to enable protected mode.
Using different parameter names for get and set.