You want to store a list of a user's recent activity in chronological order. What Redis data type is suitable?
String
Hash
List
Set
What is the purpose of the SADD command in Redis?
SADD
Adds an element to a sorted set.
Adds an element to a set only if it doesn't already exist.
Adds an element to the beginning of a list.
Retrieves a value from a hash.
What Redis command would you use to change the name of a key from 'user:123' to 'customer:123'?
CHANGE
RENAME
ALTER
UPDATE
What does AOF stand for in the context of Redis persistence?
Advanced Object Formatting
Append-Only File
Asynchronous Operation Format
Automatic Output Function
Which method is used to check if a key exists in a Redis database using redis-py?
r.exists('mykey')
r.contains('mykey')
r.check('mykey')
r.has_key('mykey')
What is the primary effect of renaming a key in Redis?
Changes how the key is referenced.
Changes the expiration time of the key.
Changes the data type of the key.
Changes the value associated with the key.
What is the default port on which the Redis server listens for connections?
3306
6379
27017
80
Which command would you use to remove the key 'user:123' and its associated value from Redis?
DROP user:123
REMOVE user:123
DEL user:123
DELETE user:123
Which of these is NOT a common use case for Redis?
Storing large blobs of unstructured data
Session management
Leaderboards and real-time analytics
Caching
How do you delete a key-value pair in Redis where the key is 'city'?
ERASE city
DROP city
REMOVE city
DELETE city