What data type does Redis primarily use to store values?
Float
Integer
Boolean
String
Which command is used to download and install Redis on a Debian-based Linux system?
brew install redis
apt-get install redis
yum install redis
wget redis.com
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
Which Redis persistence option offers a more durable approach, potentially reducing data loss?
AOF
Neither
Both are equally durable
RDB
Which command adds a new element to the beginning of a list in Redis?
RPUSH
LPUSH
ZADD
SADD
What is a potential drawback of using only RDB snapshots for persistence in Redis?
Slow write speeds
Potential data loss between snapshots
High memory usage
Complex configuration
What does AOF stand for in the context of Redis persistence?
Asynchronous Operation Format
Append-Only File
Automatic Output Function
Advanced Object Formatting
Which command is used to decrease the value of a key by 1 in Redis?
DECREMENT
SUB
DECR
MINUS
What does the following redis-py code do: r.incr('mycounter')?
r.incr('mycounter')
Increments the numeric value stored at 'mycounter' by 1
Checks if the key 'mycounter' exists and creates it if not
Retrieves the value at 'mycounter' and converts it to an integer
Adds a new key 'mycounter' with the value 1
What file extension is typically used for Redis's Append-Only File?
.log
.aof
.rdb
.redis