What does AOF stand for in the context of Redis persistence?
Asynchronous Operation Format
Append-Only File
Automatic Output Function
Advanced Object Formatting
What is the default port on which the Redis server listens for connections?
6379
27017
3306
80
What is the result of executing 'INCR counter' if the 'counter' key does not exist in Redis?
Null
0
1
Error: Key not found
You need to store a leaderboard with scores for players. Which Redis data type is most appropriate?
Sorted Set
Hash
Set
List
Which command is used to remove a field from a hash in Redis?
SREM
HGET
DEL
HDEL
Which command would you use to retrieve the value associated with the key 'username' in Redis?
LPUSH username
HGET username
SET username
GET username
What is the expected return value of 'EXISTS user' if the 'user' key is present in Redis?
False
True
Which command adds a new element to the beginning of a list in Redis?
RPUSH
SADD
ZADD
LPUSH
How do you delete a key-value pair in Redis where the key is 'city'?
REMOVE city
ERASE city
DELETE city
DROP city
What does the following redis-py code do: r.incr('mycounter')?
r.incr('mycounter')
Retrieves the value at 'mycounter' and converts it to an integer
Increments the numeric value stored at 'mycounter' by 1
Checks if the key 'mycounter' exists and creates it if not
Adds a new key 'mycounter' with the value 1