What Redis command would you use to change the name of a key from 'user:123' to 'customer:123'?
UPDATE
CHANGE
RENAME
ALTER
How do you establish a connection to a Redis server using redis-py?
Redis.create_connection()
Redis.new()
redis.Redis()
redis.connect()
How can you check if a key, like 'product_name', exists in Redis?
CONFIRM product_name
VERIFY product_name
EXISTS product_name
CHECK product_name
You want to store a list of a user's recent activity in chronological order. What Redis data type is suitable?
Set
String
Hash
List
Which command would you use to remove the key 'user:123' and its associated value from Redis?
DELETE user:123
DROP user:123
REMOVE user:123
DEL user:123
What is the expected return value of 'EXISTS user' if the 'user' key is present in Redis?
1
False
0
True
What Redis data type is best suited for storing a user profile with attributes like name, email, and age?
Which persistence option in Redis creates point-in-time snapshots of your data?
RDB
Redis Protocol
Replication
AOF
You need to store a leaderboard with scores for players. Which Redis data type is most appropriate?
Sorted Set
What is the result of executing 'INCR counter' if the 'counter' key does not exist in Redis?
Error: Key not found
Null