0
0
RabbitMQdevops~20 mins

Network partitions and split-brain in RabbitMQ - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
RabbitMQ Split-Brain Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
What happens during a network partition in RabbitMQ?

Imagine a RabbitMQ cluster split into two groups by a network failure. What is the most likely outcome?

AThe cluster automatically merges messages without any risk of duplication.
BBoth groups continue accepting messages independently, risking data inconsistency (split-brain).
CAll nodes stop processing messages until the network is restored.
DOnly the master node processes messages; others become read-only.
Attempts:
2 left
💡 Hint

Think about what happens when two parts of a cluster can't communicate but still try to work.

💻 Command Output
intermediate
2:00remaining
Identify the output of RabbitMQ cluster status during a partition

Given a RabbitMQ cluster with nodes 'node1', 'node2', and 'node3', if 'node3' is isolated by a network partition, what will the rabbitmqctl cluster_status command show on 'node1'?

RabbitMQ
rabbitmqctl cluster_status
AShows 'node3' as running but with status 'stale'.
BShows all three nodes as running and connected.
CShows only 'node1' and 'node2' as running; 'node3' is missing or disconnected.
DShows an error and no cluster information.
Attempts:
2 left
💡 Hint

Consider what happens when a node is unreachable in a cluster status check.

Troubleshoot
advanced
2:00remaining
Resolving split-brain in RabbitMQ cluster

You notice two partitions in your RabbitMQ cluster, each accepting messages independently. Which step should you take to safely resolve the split-brain?

AForcefully stop one partition and restart it to rejoin the cluster.
BRestart all nodes simultaneously to reset the cluster state.
CDelete all queues on both partitions to avoid conflicts.
DIgnore the partitions; RabbitMQ will automatically merge data later.
Attempts:
2 left
💡 Hint

Think about how to safely restore cluster consistency without losing messages.

Best Practice
advanced
2:00remaining
Preventing split-brain in RabbitMQ clusters

Which configuration is best to prevent split-brain scenarios in RabbitMQ clusters?

AEnable the 'pause_minority' partition handling strategy.
BDisable all partition handling to keep nodes always running.
CUse manual node restarts after partitions occur.
DConfigure nodes to accept messages regardless of cluster state.
Attempts:
2 left
💡 Hint

Consider how RabbitMQ can automatically handle minority partitions.

🔀 Workflow
expert
3:00remaining
Order the steps to recover a RabbitMQ cluster after a network partition

Arrange the following steps in the correct order to safely recover a RabbitMQ cluster after a network partition causing split-brain.

A1,3,2,4
B2,3,1,4
C2,1,3,4
D1,2,3,4
Attempts:
2 left
💡 Hint

Think about identifying data first, then stopping minority, then restarting.