0
0
Redisquery~10 mins

Authentication with requirepass 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 authenticate with Redis using the password.

Redis
AUTH [1]
Drag options to blanks, or click blank then click option'
Amypassword
Bpassword123
C123456
Dadmin
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong password string.
Omitting the AUTH command before the password.
2fill in blank
medium

Complete the code to set the requirepass in the Redis configuration file.

Redis
requirepass [1]
Drag options to blanks, or click blank then click option'
Apassword123
Bletmein
Credispass
Dadmin
Attempts:
3 left
💡 Hint
Common Mistakes
Using an empty password.
Not restarting Redis after changing the config.
3fill in blank
hard

Fix the error in the command to authenticate with Redis.

Redis
AUTH [1]
Drag options to blanks, or click blank then click option'
Aauth password123
BAUTH password123
Cpassword123
Dpassword
Attempts:
3 left
💡 Hint
Common Mistakes
Repeating the AUTH keyword.
Including extra text in the blank.
4fill in blank
hard

Fill both blanks to authenticate and then set a key in Redis.

Redis
AUTH [1]
SET mykey [2]
Drag options to blanks, or click blank then click option'
Apassword123
Bhello
Cworld
Dadmin
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong password in AUTH.
Setting the key to an incorrect value.
5fill in blank
hard

Fill all three blanks to authenticate, set a key, and retrieve it.

Redis
AUTH [1]
SET [2] [3]
GET mykey
Drag options to blanks, or click blank then click option'
Apassword123
Bmykey
Chello
Dadmin
Attempts:
3 left
💡 Hint
Common Mistakes
Using different key names in SET and GET.
Incorrect password in AUTH.