What is the default port on which the Redis server listens for connections?
80
27017
6379
3306
What does AOF stand for in the context of Redis persistence?
Advanced Object Formatting
Append-Only File
Asynchronous Operation Format
Automatic Output Function
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
Which command would you use to retrieve the value associated with the key 'username' in Redis?
SET username
GET username
LPUSH username
HGET username
What is the primary effect of renaming a key in Redis?
Changes the value associated with the key.
Changes the expiration time of the key.
Changes the data type of the key.
Changes how the key is referenced.
How can you delete a key named 'mykey' from Redis using redis-py?
r.clear('mykey')
r.erase('mykey')
r.delete('mykey')
r.remove('mykey')
Which of these is NOT a common use case for Redis?
Storing large blobs of unstructured data
Caching
Session management
Leaderboards and real-time analytics
How do you establish a connection to a Redis server using redis-py?
Redis.create_connection()
redis.connect()
Redis.new()
redis.Redis()
Which command is used to decrease the value of a key by 1 in Redis?
SUB
MINUS
DECR
DECREMENT
You have a key with an expiration time set. If you overwrite this key with a new value using SET, what happens to the expiration?
SET
The expiration time is reset to its default value.
The expiration time is removed, making the key persistent.
An error occurs because you cannot overwrite an expiring key.
The expiration time is retained.