0
0
Redisquery~10 mins

What is Redis - Interactive Quiz & Practice

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

Complete the code to set a key named 'color' with the value 'blue' in Redis.

Redis
SET color [1]
Drag options to blanks, or click blank then click option'
A'blue'
B"blue"
Cblue
Dblue;
Attempts:
3 left
💡 Hint
Common Mistakes
Adding quotes around the value causes errors.
Adding a semicolon at the end is not needed.
2fill in blank
medium

Complete the code to get the value of the key 'color' from Redis.

Redis
[1] color
Drag options to blanks, or click blank then click option'
AEXPIRE
BGET
CDEL
DSET
Attempts:
3 left
💡 Hint
Common Mistakes
Using SET instead of GET returns an error.
Using DEL deletes the key instead of retrieving.
3fill in blank
hard

Fix the error in the command to delete the key 'color' from Redis.

Redis
[1] color
Drag options to blanks, or click blank then click option'
ADEL
BREMOVE
CDELETE
DERASE
Attempts:
3 left
💡 Hint
Common Mistakes
Using REMOVE or DELETE causes syntax errors.
Using ERASE is not a Redis command.
4fill in blank
hard

Fill both blanks to set a key 'count' with value 10 and then expire it after 60 seconds.

Redis
SET count [1]
EXPIRE count [2]
Drag options to blanks, or click blank then click option'
A10
B60
C100
D30
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing up the expiration time and value.
Using wrong numbers for expiration.
5fill in blank
hard

Fill all three blanks to increment the key 'visits' by 1, get its value, and then delete it.

Redis
INCR [1]
GET [2]
DEL [3]
Drag options to blanks, or click blank then click option'
Avisits
Bvisit
Cvisitor
Dvisit_count
Attempts:
3 left
💡 Hint
Common Mistakes
Using different key names causes errors or unexpected results.
Misspelling the key name.