Which configuration file is commonly used to modify Redis server settings?
redis.conf
config.redis
redis.ini
settings.redis
Which AOF configuration option tells Redis to rewrite the AOF file periodically to reduce its size?
aof_compact_size
aof_optimize
aof_rewrite_threshold
aof_rewrite_frequency
How do you set a key to expire after 20 seconds in Redis?
EXPIRE key 20
SETEX key 20 value
TIMEOUT key 20
PERSIST key 20
What Redis command would you use to change the name of a key from 'user:123' to 'customer:123'?
ALTER
UPDATE
RENAME
CHANGE
Which command would you use to retrieve the value associated with the key 'username' in Redis?
HGET username
SET username
LPUSH username
GET username
Which command is used to remove a field from a hash in Redis?
DEL
HDEL
HGET
SREM
Which Redis command is used to rename an existing key?
MOVE
COPY
What is a potential drawback of using only RDB snapshots for persistence in Redis?
Complex configuration
High memory usage
Potential data loss between snapshots
Slow write speeds
How do you establish a connection to a Redis server using redis-py?
Redis.new()
redis.Redis()
Redis.create_connection()
redis.connect()
Which command would you use to remove the key 'user:123' and its associated value from Redis?
DEL user:123
DROP user:123
DELETE user:123
REMOVE user:123