Which of the following best describes the relationship between publishers and subscribers in Redis Pub/Sub?
One-to-many, with one publisher broadcasting to multiple subscribers.
All of the above are possible scenarios.
Many-to-one, with multiple publishers sending messages to a single subscriber.
One-to-one, with each publisher dedicated to a single subscriber.
What units can be used to specify the radius in the GEORADIUS command?
GEORADIUS
Only meters
Only kilometers
Meters, kilometers, miles, feet
Only degrees
Which Redis command is used to retrieve geospatial points within a specified radius?
GEOSEARCH
GEODIST
GEOADD
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 the likelihood of concurrent modifications is very high.
When data consistency is not a major concern, and some data loss is acceptable.
When the operations within the transaction are very time-consuming.
What is the primary advantage of using Redis HyperLogLogs over traditional sets for cardinality estimation?
HyperLogLogs allow for storing duplicate elements.
HyperLogLogs support range queries on the stored elements.
HyperLogLogs consume significantly less memory for large cardinalities.
HyperLogLogs provide exact cardinality counts.
What happens when you execute RENAME key1 key2 and key2 already exists?
RENAME key1 key2
key2
An error is returned, and no changes are made
key1 is renamed to key2, overwriting the existing key2
key2 is renamed to a temporary name, and then key1 is renamed to key2
The command blocks until key2 is deleted
What technique involves splitting your data across multiple Redis instances to handle datasets larger than the memory of a single server?
Data Pipelining
Replication
Sharding
Hashing
Which command is used to set a specific bit in a Redis Bitmap?
SETBIT
GETBIT
BITOP
BITCOUNT
What command is used to discard a transaction block in Redis, cancelling all queued commands?
DISCARD
UNDO
ROLLBACK
CANCEL
In a Redis transaction, what happens if one of the commands within the transaction fails?
Redis throws an error and halts all operations.
Only the failed command is skipped, and the rest of the transaction continues.
The transaction remains pending until the failed command can be executed.
The entire transaction is rolled back, and no commands are executed.