What is the primary purpose of using MULTI and EXEC commands in Redis?
MULTI
EXEC
To create a new Redis database.
To execute multiple commands atomically.
To set a key-value pair with an expiration time.
To retrieve multiple keys simultaneously.
What is a key advantage of deploying Redis using a master-slave replication strategy?
Simplified data backup and recovery.
Automatic data sharding for horizontal scaling.
Elimination of the need for data persistence.
Improved write performance for high-traffic applications.
What is the primary purpose of using a Redis Cluster?
To distribute data and handle larger datasets than a single Redis instance can manage.
To enhance data security with built-in encryption.
To improve the performance of complex sorted set operations.
To enable efficient message queuing and pub/sub functionality.
You need to set a value and its expiration in a single atomic operation. Which command is most suitable?
MSET
SET
SETEX
EXPIRE
Which tool is used to orchestrate and manage the nodes in a Redis Cluster?
redis-benchmark
redis-cli
redis-server
redis-trib.rb
How does the WATCH command help in implementing optimistic locking in Redis?
WATCH
It prevents other clients from reading the watched keys.
It acquires an exclusive lock on the watched keys.
It monitors the watched keys for changes by other clients.
It sets a time-to-live (TTL) on the watched keys.
In a Redis Cluster, how is data distributed across the nodes?
Data is replicated to all nodes for high availability.
Data is manually partitioned by the user during setup.
Data is randomly assigned to any node.
Data is distributed using consistent hashing based on a key's hash slot.
What is the minimum number of Redis nodes required to create a functional Redis Cluster?
6
2
3
1
Which Redis feature allows you to persist data from memory to disk, providing some level of durability?
Replication
Persistence
Virtual Memory
Transactions
What is the primary advantage of using Redis HyperLogLogs over traditional sets for cardinality estimation?
HyperLogLogs provide exact cardinality counts.
HyperLogLogs support range queries on the stored elements.
HyperLogLogs consume significantly less memory for large cardinalities.
HyperLogLogs allow for storing duplicate elements.