0
0
Redisquery~10 mins

TYPE command for key type check 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 the type of the key 'user:1'.

Redis
TYPE [1]
Drag options to blanks, or click blank then click option'
Auser
Buser1
C1
Duser:1
Attempts:
3 left
💡 Hint
Common Mistakes
Using a key name without the colon ':'
Using only part of the key name
Adding quotes around the key name
2fill in blank
medium

Complete the command to check the type of the key stored in variable 'keyName'.

Redis
TYPE [1]
Drag options to blanks, or click blank then click option'
AkeyName
B$keyName
C"keyName"
Dkeyname
Attempts:
3 left
💡 Hint
Common Mistakes
Adding quotes around the key name
Using shell variable syntax like $keyName
Changing the case of the key name
3fill in blank
hard

Fix the error in the command to check the type of key 'session123'.

Redis
TYPE [1]
Drag options to blanks, or click blank then click option'
A'session123'
B$session123
Csession123
D"session123"
Attempts:
3 left
💡 Hint
Common Mistakes
Using quotes around the key name
Using shell variable notation
Misspelling the key name
4fill in blank
hard

Fill both blanks to check the type of key 'cache:data'.

Redis
TYPE [1][2]
Drag options to blanks, or click blank then click option'
Acache
Bcache:data
C:data
Dcache_data
Attempts:
3 left
💡 Hint
Common Mistakes
Splitting the key name into two separate arguments
Replacing ':' with '_'
Using only part of the key name
5fill in blank
hard

Fill all three blanks to check the type of key 'user:profile:100'.

Redis
TYPE [1][2][3]
Drag options to blanks, or click blank then click option'
Auser
B:profile
C:100
Duser_profile_100
Attempts:
3 left
💡 Hint
Common Mistakes
Replacing colons with underscores
Omitting parts of the key name
Adding spaces between parts