You want to store a list of a user's recent activity in chronological order. What Redis data type is suitable?
Set
String
Hash
List
How can you check if a key, like 'product_name', exists in Redis?
VERIFY product_name
CONFIRM product_name
CHECK product_name
EXISTS product_name
What is the primary effect of renaming a key in Redis?
Changes the expiration time of the key.
Changes the value associated with the key.
Changes how the key is referenced.
Changes the data type of the key.
What happens if you try to rename a key to a name that already exists in Redis?
Redis creates a new key with a unique name.
The existing key is overwritten with the value of the renamed key.
An error is returned, and the original key remains unchanged.
The command is ignored.
How do you retrieve the value associated with the key 'mykey' in redis-py?
r.get('mykey')
r.fetch('mykey')
r.read('mykey')
r.retrieve('mykey')
Which command is used to download and install Redis on a Debian-based Linux system?
apt-get install redis
wget redis.com
brew install redis
yum install redis
What is the default port on which the Redis server listens for connections?
80
6379
3306
27017
Which command is used to remove a field from a hash in Redis?
HDEL
HGET
DEL
SREM
Which Redis command is used to rename an existing key?
RENAME
COPY
ALTER
MOVE
What is the primary difference between a Redis Set and a Redis List?
There is no difference
Sets do not allow duplicates, Lists allow duplicates
Sets allow duplicates, Lists do not
Sets are ordered, Lists are unordered