A Redis key 'product:567' has a TTL of 60 seconds. What will be the TTL of this key after executing the command PERSIST product:567?
PERSIST product:567
-1
60
0
None of the above
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).
All of the above
When you require strict message ordering guarantees within a consumer group.
When your application needs to replay past events or access historical data.
Which design pattern in Redis is MOST suitable for representing a queue-like structure with efficient push and pop operations?
Sorted Set
List
HyperLogLog
Set
When a transaction is executed with EXEC, and a watched key has been modified, what is the expected return value?
EXEC
The integer 0.
The integer 1.
1
The string "OK".
An empty list ([]).
[]
What command is used to discard a transaction block in Redis, cancelling all queued commands?
DISCARD
UNDO
ROLLBACK
CANCEL
What happens when you execute RENAME key1 key2 and key2 already exists?
RENAME key1 key2
key2
The command blocks until key2 is deleted
key2 is renamed to a temporary name, and then key1 is renamed to key2
key1 is renamed to key2, overwriting the existing key2
An error is returned, and no changes are made
What is the primary use case for Redis Bitmaps?
Implementing rate limiting algorithms.
Storing and querying large sets of integers efficiently.
Storing sorted lists of strings.
Representing and manipulating geospatial data.
You want a Redis key to expire in exactly one hour. Which command, along with the appropriate arguments, would you use?
EXPIRE key 3600
SETEX key 3600 value
PERSIST key 3600
TTL key 3600
What is a common pattern for achieving message persistence in Redis Pub/Sub?
Using Redis Streams alongside Pub/Sub.
Relying on the inherent message durability of Pub/Sub.
Configuring Redis to use a disk-based persistence mode.
Implementing a message queue system directly within Redis.
Which of the following is NOT a typical use case for integrating Redis with a SQL database?
Offloading write operations from the database to handle high traffic.
Implementing a real-time leaderboard by leveraging Redis' sorted sets.
Storing large blobs of unstructured data like images or videos.
Caching frequently accessed data to improve read performance.