What will Redis return if you execute 'GET score' and the 'score' key does not exist?
0
False
Error
Null
Which command is used to remove a field from a hash in Redis?
HGET
DEL
SREM
HDEL
How does Redis differ from a traditional relational database like MySQL?
Redis is optimized for complex joins and queries, while MySQL is not
Redis is schema-less, while MySQL enforces a strict schema
Redis is primarily disk-based, while MySQL is in-memory
Redis is not suitable for storing persistent data, while MySQL is
What is the correct syntax to set a key-value pair in Redis where the key is 'name' and the value is 'John'?
PUT name John
STORE name John
SET name John
CREATE name John
You need to store a leaderboard with scores for players. Which Redis data type is most appropriate?
Sorted Set
List
Hash
Set
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
An error occurs because you cannot overwrite an expiring key.
The expiration time is reset to its default value.
The expiration time is retained.
The expiration time is removed, making the key persistent.
What is the default port on which the Redis server listens for connections?
27017
80
6379
3306
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 configuration file is commonly used to modify Redis server settings?
redis.ini
redis.conf
config.redis
settings.redis
How do you delete a key-value pair in Redis where the key is 'city'?
ERASE city
DROP city
DELETE city
REMOVE city