0
0
Redisquery~20 mins

Resharding hash slots in Redis - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Redis Cluster Resharding Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
query_result
intermediate
2:00remaining
What is the output of the resharding command status?
After initiating a resharding operation in Redis Cluster, you run the command CLUSTER RESHARDING STATUS. What output do you expect if the resharding is currently moving slots?
AAn error message stating the command is unknown
BAn empty list indicating no resharding in progress
CA list showing the number of slots moved and the total slots to move
DA string with the cluster node IDs only
Attempts:
2 left
💡 Hint
Think about what information you want to see during resharding progress.
🧠 Conceptual
intermediate
2:00remaining
Why is resharding hash slots necessary in Redis Cluster?
Which of the following best explains why you would perform resharding of hash slots in a Redis Cluster?
ATo encrypt data stored in hash slots
BTo clear all data from the cluster quickly
CTo upgrade Redis version on all nodes simultaneously
DTo rebalance data when adding or removing nodes to maintain even load
Attempts:
2 left
💡 Hint
Think about cluster scaling and data distribution.
📝 Syntax
advanced
2:00remaining
Which command syntax correctly moves 50 hash slots from one node to another?
You want to move 50 hash slots from node A to node B in a Redis Cluster. Which command syntax is correct?
Aredis-cli --cluster reshard <cluster_ip>:<port> --slots 50 --from <nodeA_id> --to <nodeB_id>
BCLUSTER RESHARD --slots 50 --from <nodeA_id> --to <nodeB_id>
CCLUSTER SETSLOT 50 NODE <nodeB_id>
DCLUSTER MOVE 50 FROM <nodeA_id> TO <nodeB_id>
Attempts:
2 left
💡 Hint
Consider the official redis-cli cluster management commands.
🔧 Debug
advanced
2:00remaining
Why does the resharding command fail with 'MOVED' error?
You run the resharding command to move slots but get an error: MOVED 1234 10.0.0.2:7002. What is the most likely cause?
AThe Redis version is incompatible with resharding
BThe slots you want to move are already moved
CYou are connected to a node that does not own the slots you want to move
DThe cluster is down and cannot process commands
Attempts:
2 left
💡 Hint
The MOVED error indicates a redirection in Redis Cluster.
optimization
expert
3:00remaining
How to minimize downtime during resharding in a large Redis Cluster?
You have a large Redis Cluster and want to reshard hash slots with minimal downtime. Which approach is best?
AStop all clients, move all slots at once, then restart clients
BUse the redis-cli reshard command with small batch sizes and monitor progress
CManually edit cluster configuration files to reassign slots instantly
DRestart all nodes sequentially during resharding
Attempts:
2 left
💡 Hint
Think about gradual data movement and client availability.