You have a key named 'temp:data' with an expiration time set. How would you remove the expiration time and make the key persist indefinitely?
TTL temp:data -1
PERSIST temp:data
There is no way to remove the expiration time once set
EXPIRE temp:data 0
Which Redis command is used to retrieve geospatial points within a specified radius?
GEOADD
GEORADIUS
GEOSEARCH
GEODIST
What is a key consideration when designing a system using Redis Pub/Sub for high message volume?
Implementing a mechanism to handle slow subscribers to prevent message backlog.
Configuring Redis to prioritize Pub/Sub messages over other commands.
Ensuring that all messages are acknowledged by subscribers to prevent data loss.
Using persistent storage for all messages to facilitate auditing and replay.
What is a common pattern for achieving message persistence in Redis Pub/Sub?
Using Redis Streams alongside Pub/Sub.
Configuring Redis to use a disk-based persistence mode.
Implementing a message queue system directly within Redis.
Relying on the inherent message durability of Pub/Sub.
Which of the following is a crucial aspect of CI/CD pipelines for Redis?
Running performance and load tests on Redis deployments.
Manually configuring Redis instances in production.
Storing Redis data directly within the CI/CD pipeline.
Avoiding the use of version control for Redis configurations.
What technique involves splitting your data across multiple Redis instances to handle datasets larger than the memory of a single server?
Data Pipelining
Sharding
Hashing
Replication
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 the operations within the transaction are very time-consuming.
When data consistency is not a major concern, and some data loss is acceptable.
What command is used to discard a transaction block in Redis, cancelling all queued commands?
ROLLBACK
UNDO
DISCARD
CANCEL
Which design pattern in Redis is MOST suitable for representing a queue-like structure with efficient push and pop operations?
Sorted Set
HyperLogLog
Set
List
Which cloud platform offers a managed Redis service called 'ElastiCache'?
Microsoft Azure
Google Cloud Platform (GCP)
Amazon Web Services (AWS)
DigitalOcean