What is the default port on which the Redis server listens for connections?
3306
80
6379
27017
Which command is used to download and install Redis on a Debian-based Linux system?
wget redis.com
yum install redis
brew install redis
apt-get install redis
Which command adds a new element to the beginning of a list in Redis?
RPUSH
SADD
LPUSH
ZADD
Which command would you use to retrieve the value associated with the key 'username' in Redis?
SET username
LPUSH username
GET username
HGET username
What is the primary effect of renaming a key in Redis?
Changes how the key is referenced.
Changes the data type of the key.
Changes the expiration time of the key.
Changes the value associated with the key.
How can you delete a key named 'mykey' from Redis using redis-py?
r.clear('mykey')
r.delete('mykey')
r.remove('mykey')
r.erase('mykey')
Which Redis configuration setting controls the interval (in seconds) for saving RDB snapshots?
snapshot_frequency
save_interval
rdb_save_seconds
rdb_snapshot_time
What is the correct way to set a key-value pair named 'mykey' with the value 'myvalue' using redis-py?
r.assign('mykey', 'myvalue')
r.set('mykey', 'myvalue')
r.insert('mykey', 'myvalue')
r.put('mykey', 'myvalue')
What type of data structures does Redis support?
Exclusively JSON documents
Strings, lists, sets, and hashes
Only strings
Only key-value pairs
Which method is used to check if a key exists in a Redis database using redis-py?
r.contains('mykey')
r.has_key('mykey')
r.check('mykey')
r.exists('mykey')