In a Redis Cluster, how is data distributed across the nodes?
Data is randomly assigned to any node.
Data is distributed using consistent hashing based on a key's hash slot.
Data is replicated to all nodes for high availability.
Data is manually partitioned by the user during setup.
Which use case is particularly well-suited for Redis Pub/Sub?
Maintaining a persistent, ordered log of events.
Implementing a real-time chat application.
Performing complex data aggregations.
Storing large JSON documents for retrieval.
In Redis Cluster, what happens if a node holding a primary key fails?
The cluster becomes inaccessible until the failed node is restored.
All other nodes in the cluster take over the data from the failed node.
Data on the failed node is lost permanently.
A replica of the failed node is promoted to master, ensuring data availability.
What is the core functionality of Redis Pub/Sub?
Storing key-value pairs persistently.
Executing Lua scripts for complex operations.
Guaranteeing message delivery with acknowledgments.
Enabling real-time one-way messaging.
Which Redis data structure is particularly well-suited for implementing a real-time leaderboard with ranked scores?
Sorted Set
String
List
Set
Which configuration parameter in the redis.conf file is crucial for enabling Redis Cluster mode?
redis.conf
cluster-config-file
cluster-enabled
cluster-node-timeout
appendonly
In what scenarios would optimistic locking using WATCH be preferred over traditional locking in Redis?
WATCH
When data consistency is not a major concern, and some data loss is acceptable.
When minimizing latency and maximizing concurrency are crucial.
When the operations within the transaction are very time-consuming.
When the likelihood of concurrent modifications is very high.
What command is used to discard a transaction block in Redis, cancelling all queued commands?
DISCARD
UNDO
ROLLBACK
CANCEL
Which of the following is a crucial aspect of CI/CD pipelines for Redis?
Avoiding the use of version control for Redis configurations.
Manually configuring Redis instances in production.
Storing Redis data directly within the CI/CD pipeline.
Running performance and load tests on Redis deployments.
What is the primary advantage of using Redis HyperLogLogs over traditional sets for cardinality estimation?
HyperLogLogs allow for storing duplicate elements.
HyperLogLogs provide exact cardinality counts.
HyperLogLogs consume significantly less memory for large cardinalities.
HyperLogLogs support range queries on the stored elements.