0
0
Redisquery~20 mins

Cluster failover in Redis - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Redis Cluster Failover Mastery
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
What happens during a Redis cluster failover?
In a Redis cluster, when a master node fails, what is the expected behavior during failover?
AA slave node is promoted to master to continue serving requests.
BThe cluster shuts down all nodes to prevent data loss.
CClients automatically reconnect to the failed master node.
DThe cluster deletes all data on the failed master node.
Attempts:
2 left
💡 Hint
Think about how Redis maintains availability when a master fails.
query_result
intermediate
2:00remaining
Identify the output of the failover status command
What is the output of the Redis CLI command `CLUSTER FAILOVER` when executed on a slave node during failover?
Redis
CLUSTER FAILOVER
A"PENDING"
B"FAIL"
CAn error: ERR This node is not a slave
D"OK"
Attempts:
2 left
💡 Hint
The command is used to trigger manual failover from a slave.
📝 Syntax
advanced
2:00remaining
Which command syntax triggers a manual failover with force?
Select the correct Redis command syntax to force a manual failover on a slave node.
ACLUSTER FAILOVER IMMEDIATE
BCLUSTER FAILOVER TAKEOVER
CCLUSTER FAILOVER NOW
DCLUSTER FAILOVER START
Attempts:
2 left
💡 Hint
The TAKEOVER option bypasses some checks during failover.
optimization
advanced
2:00remaining
Optimizing failover detection time in Redis cluster
Which configuration change will reduce the time Redis cluster takes to detect a master node failure and start failover?
ADecrease `cluster-node-timeout` value.
BIncrease `cluster-slave-no-failover` setting.
CDisable `cluster-require-full-coverage`.
DIncrease `cluster-replica-validity-factor` value.
Attempts:
2 left
💡 Hint
Failover detection depends on how quickly nodes consider others unreachable.
🔧 Debug
expert
2:00remaining
Why does manual failover fail with ERR when forced on a master node?
You run `CLUSTER FAILOVER TAKEOVER` on a Redis node that is currently a master. The command returns an error: `ERR This node is not a slave`. Why does this happen?
AThe cluster is not enabled on this node.
BThe node is in read-only mode and cannot failover.
CFailover can only be forced on slave nodes, not masters.
DThe node has no connected clients.
Attempts:
2 left
💡 Hint
Failover means promoting a slave to master, so the command must run on a slave.