Challenge - 5 Problems
Redis Cluster Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ query_result
intermediate2:00remaining
What is the output of the command
CLUSTER INFO in Redis Cluster?You run the Redis command
CLUSTER INFO on a node in a Redis Cluster. What kind of information does this command return?Attempts:
2 left
💡 Hint
Think about what general cluster status information you might want to check.
✗ Incorrect
The
CLUSTER INFO command provides high-level information about the cluster's state, including how many slots are assigned and the cluster size.🧠 Conceptual
intermediate2:00remaining
How does Redis Cluster handle key distribution?
In Redis Cluster, how are keys distributed across different nodes?
Attempts:
2 left
💡 Hint
Think about how consistent hashing or slot assignment works in distributed systems.
✗ Incorrect
Redis Cluster uses a fixed number of hash slots (16384). Each key is hashed to one slot, and slots are assigned to nodes, distributing keys evenly.
📝 Syntax
advanced2:00remaining
Which command correctly adds a new node to an existing Redis Cluster?
You want to add a new node to your Redis Cluster. Which command syntax is correct for this operation?
Attempts:
2 left
💡 Hint
Look for the official command to add a node to a cluster.
✗ Incorrect
The correct command to add a node to an existing Redis Cluster is
redis-cli --cluster add-node followed by the new node and an existing node.❓ optimization
advanced2:00remaining
How can you optimize Redis Cluster to handle failover smoothly?
Which configuration or setup helps Redis Cluster handle failover smoothly without data loss?
Attempts:
2 left
💡 Hint
Think about how redundancy helps in failover scenarios.
✗ Incorrect
Having replicas assigned to each master allows automatic failover if a master node fails, improving cluster availability.
🔧 Debug
expert2:00remaining
What error occurs if you try to run a multi-key command on keys located in different Redis Cluster slots?
You run the command
MGET key1 key2 where key1 and key2 hash to different slots in a Redis Cluster. What error will Redis return?Attempts:
2 left
💡 Hint
Think about Redis Cluster's slot-based key distribution and multi-key command restrictions.
✗ Incorrect
Redis Cluster requires all keys in a multi-key command to be in the same hash slot. Otherwise, it returns a CROSSSLOT error.