What is the primary purpose of using a Redis Cluster?
To enable efficient message queuing and pub/sub functionality.
To enhance data security with built-in encryption.
To improve the performance of complex sorted set operations.
To distribute data and handle larger datasets than a single Redis instance can manage.
What is a 'hash slot' in the context of Redis Cluster?
A type of data structure that stores key-value pairs using a hash function.
A physical slot on the Redis server where data is stored.
A security feature that encrypts data before storing it in the cluster.
A virtual slot used to determine data distribution across the cluster.
In Redis, what does the 'N' in the 'LRU' eviction policy stand for?
Next
Used
Node
Newest
Which Redis command is used to retrieve geospatial points within a specified radius?
GEOADD
GEODIST
GEORADIUS
GEOSEARCH
In a Redis transaction, what happens if one of the commands within the transaction fails?
Redis throws an error and halts all operations.
The entire transaction is rolled back, and no commands are executed.
Only the failed command is skipped, and the rest of the transaction continues.
The transaction remains pending until the failed command can be executed.
Which design pattern in Redis is MOST suitable for representing a queue-like structure with efficient push and pop operations?
Set
List
Sorted Set
HyperLogLog
In what scenarios would optimistic locking using WATCH be preferred over traditional locking in Redis?
WATCH
When minimizing latency and maximizing concurrency are crucial.
When data consistency is not a major concern, and some data loss is acceptable.
When the operations within the transaction are very time-consuming.
When the likelihood of concurrent modifications is very high.
You need to set a value and its expiration in a single atomic operation. Which command is most suitable?
EXPIRE
SETEX
MSET
SET
Which configuration parameter in the redis.conf file is crucial for enabling Redis Cluster mode?
redis.conf
cluster-node-timeout
appendonly
cluster-config-file
cluster-enabled
You have a key named 'temp:data' with an expiration time set. How would you remove the expiration time and make the key persist indefinitely?
There is no way to remove the expiration time once set
EXPIRE temp:data 0
PERSIST temp:data
TTL temp:data -1