In which scenario would you choose Kafka over Redis Streams for integrating with your application?
When handling extremely high throughput message ingestion (millions of messages per second).
When you require strict message ordering guarantees within a consumer group.
All of the above
When your application needs to replay past events or access historical data.
When a transaction is executed with EXEC, and a watched key has been modified, what is the expected return value?
EXEC
The integer 0.
0
The string "OK".
The integer 1.
1
An empty list ([]).
[]
How does containerization with Docker benefit Redis deployments?
It automatically scales Redis instances based on real-time traffic.
It provides a consistent and isolated environment for Redis.
It eliminates the need for configuring Redis persistence.
It enables running multiple Redis instances on a single port.
Can you use WATCH inside a MULTI/EXEC block in Redis?
WATCH
MULTI
No, WATCH must be used before starting a transaction with MULTI.
Yes, but only if the keys being watched are the same as those being modified within the transaction.
No, WATCH is not compatible with transactions and must be used separately.
Yes, you can use WATCH inside a MULTI/EXEC block to add keys to the watch list during a transaction.
What is a key advantage of using Redis Streams for data ingestion compared to directly pushing data to a message queue like Kafka?
Redis Streams offer more advanced message filtering capabilities.
Redis Streams allow for data persistence without relying on external systems.
Redis Streams eliminate the need for message acknowledgments, simplifying the architecture.
Redis Streams inherently support complex data transformations within the stream.
What is the primary advantage of using Redis HyperLogLogs over traditional sets for cardinality estimation?
HyperLogLogs provide exact cardinality counts.
HyperLogLogs allow for storing duplicate elements.
HyperLogLogs consume significantly less memory for large cardinalities.
HyperLogLogs support range queries on the stored elements.
In a Redis Cluster, how is data distributed across the nodes?
Data is distributed using consistent hashing based on a key's hash slot.
Data is randomly assigned to any node.
Data is manually partitioned by the user during setup.
Data is replicated to all nodes for high availability.
In Redis, what does the 'N' in the 'LRU' eviction policy stand for?
Newest
Used
Next
Node
What is a primary benefit of using Redis Hashes for storing related pieces of data instead of separate Strings?
Automatic data sorting
Reduced memory footprint
Improved data security
Faster key lookups
How does the WATCH command help in implementing optimistic locking in Redis?
It sets a time-to-live (TTL) on the watched keys.
It monitors the watched keys for changes by other clients.
It prevents other clients from reading the watched keys.
It acquires an exclusive lock on the watched keys.