A disc node stores its state on disk. It saves messages and queue information to disk, so it can recover data after a restart.
Click to reveal answer
beginner
What is a RAM node in a RabbitMQ cluster?
A RAM node keeps its state in memory only. It is faster but loses data if it restarts because it does not save state to disk.
Click to reveal answer
intermediate
Why would you use a RAM node in a RabbitMQ cluster?
RAM nodes are used to improve speed and reduce disk I/O. They are good for temporary or less critical data where fast access is important.
Click to reveal answer
intermediate
What happens if a disc node fails in a RabbitMQ cluster?
Since disc nodes save data on disk, they can recover their state after a restart, preserving messages and queues.
Click to reveal answer
beginner
Can a RabbitMQ cluster have both disc and RAM nodes?
Yes, a RabbitMQ cluster can mix disc and RAM nodes. This balances durability and performance by using disc nodes for persistence and RAM nodes for speed.
Click to reveal answer
What is the main difference between a disc node and a RAM node in RabbitMQ?
ARAM nodes save state to disk; disc nodes keep state in memory only.
BDisc nodes save state to disk; RAM nodes keep state in memory only.
CDisc nodes are faster than RAM nodes.
DRAM nodes cannot join a cluster.
✗ Incorrect
Disc nodes save their state on disk for durability, while RAM nodes keep state only in memory for speed.
Which node type loses its state after a restart?
ADisc node
BNeither disc nor RAM nodes
CBoth disc and RAM nodes
DRAM node
✗ Incorrect
RAM nodes keep state in memory only, so they lose their state after a restart.
Why might you add RAM nodes to a RabbitMQ cluster?
ATo increase cluster speed and reduce disk usage
BTo improve message durability
CTo store messages permanently
DTo prevent node failures
✗ Incorrect
RAM nodes improve speed and reduce disk I/O by keeping state in memory.
Can a RabbitMQ cluster function with only RAM nodes?
AYes, and data is saved on disk
BNo, disc nodes are required
CYes, but data is lost on restart
DNo, RAM nodes cannot form a cluster
✗ Incorrect
A cluster with only RAM nodes works but loses data on restart because RAM nodes do not save state to disk.
What is a benefit of having disc nodes in a RabbitMQ cluster?
AData persistence after node restart
BFaster message processing
CLess disk usage
DNo need for clustering
✗ Incorrect
Disc nodes save data to disk, allowing recovery after restart.
Explain the differences between disc nodes and RAM nodes in a RabbitMQ cluster.
Think about where the node stores its data and what happens on restart.
You got /5 concepts.
Describe why a RabbitMQ cluster might use both disc and RAM nodes together.
Consider the benefits of each node type and how they complement each other.
You got /4 concepts.
Practice
(1/5)
1. What is the main difference between a disc node and a RAM node in a RabbitMQ cluster?
easy
A. RAM nodes save data on disk, disc nodes keep data only in memory.
B. Disc nodes are faster than RAM nodes.
C. Disc nodes save data on disk, RAM nodes keep data only in memory.
D. RAM nodes cannot join a RabbitMQ cluster.
Solution
Step 1: Understand node types in RabbitMQ
Disc nodes persist data on disk for safety, RAM nodes store data in memory for speed but less durability.
Step 2: Compare data storage methods
Disc nodes write to disk, RAM nodes do not, making disc nodes safer but slower.
Final Answer:
Disc nodes save data on disk, RAM nodes keep data only in memory. -> Option C
Quick Check:
Disc = disk, RAM = memory [OK]
Hint: Disc nodes store on disk; RAM nodes store in memory [OK]
Common Mistakes:
Confusing which node type stores data on disk
Thinking RAM nodes are faster and safer
Believing RAM nodes cannot join clusters
2. Which command correctly adds a new RAM node named rabbit@node2 to an existing RabbitMQ cluster?
easy
A. rabbitmqctl join_cluster --ram rabbit@node1
B. rabbitmqctl join_cluster rabbit@node1
C. rabbitmqctl join_cluster rabbit@node1 --ram
D. rabbitmqctl join_cluster --disc rabbit@node1
Solution
Step 1: Recall syntax for joining a RAM node
The --ram option must come before the cluster node name in the command.
Step 2: Identify correct command structure
Correct command is rabbitmqctl join_cluster --ram rabbit@node1 to join as RAM node.
Final Answer:
rabbitmqctl join_cluster --ram rabbit@node1 -> Option A
Quick Check:
--ram before node name = correct syntax [OK]
Hint: Use --ram before node name to join as RAM node [OK]
Common Mistakes:
Placing --ram after the node name
Omitting --ram option for RAM nodes
Using --disc option for RAM nodes
3. Given a RabbitMQ cluster with one disc node and one RAM node, what happens if the disc node goes down?
medium
A. The cluster continues working normally with no data loss.
B. The cluster loses all data because RAM nodes do not persist data.
C. The RAM node automatically converts to a disc node.
D. The RAM node takes over and data is safe on disk.
Solution
Step 1: Understand data persistence roles
Disc nodes save data on disk; RAM nodes keep data only in memory and lose it if disc node fails.
Step 2: Analyze cluster behavior on disc node failure
Without the disc node, data is lost because RAM nodes do not persist data.
Final Answer:
The cluster loses all data because RAM nodes do not persist data. -> Option B
Quick Check:
Disc node failure = data loss if only RAM node left [OK]
Hint: RAM nodes lose data if disc node fails [OK]
Common Mistakes:
Assuming RAM nodes save data on disk
Thinking RAM nodes convert automatically
Believing cluster works normally without disc node
4. You tried to add a RAM node with the command rabbitmqctl join_cluster rabbit@node1 --ram but it failed. What is the likely cause?
medium
A. You must stop the RabbitMQ service before joining.
B. The node name is incorrect.
C. RAM nodes cannot join clusters.
D. The --ram option must come before the node name.
Solution
Step 1: Check command syntax for joining RAM node
The --ram option must be placed before the node name in the command.
Step 2: Identify error cause
Placing --ram after the node name causes the command to fail.
Final Answer:
The --ram option must come before the node name. -> Option D
Quick Check:
Correct option order fixes join_cluster command [OK]
Hint: Put --ram before node name to avoid syntax errors [OK]
Common Mistakes:
Placing --ram after node name
Assuming RAM nodes cannot join clusters
Stopping service unnecessarily
5. You have a RabbitMQ cluster with 2 disc nodes and 2 RAM nodes. You want to ensure data safety if one disc node fails. Which setup is best?
hard
A. Ensure disc nodes replicate data and RAM nodes join with --ram option.
B. Use only RAM nodes for speed and ignore disc nodes.
C. Convert all RAM nodes to disc nodes using --disc option.
D. Remove disc nodes and rely on RAM nodes with backups.
Solution
Step 1: Understand cluster node roles for safety
Disc nodes persist data and replicate it for safety; RAM nodes improve speed but do not persist data.
Step 2: Choose best setup for data safety and performance
Keep disc nodes replicating data and add RAM nodes with --ram for speed without losing safety.
Final Answer:
Ensure disc nodes replicate data and RAM nodes join with --ram option. -> Option A
Quick Check:
Disc nodes for safety + RAM nodes for speed = best practice [OK]
Hint: Keep disc nodes for safety; add RAM nodes for speed [OK]
Common Mistakes:
Using only RAM nodes ignoring data safety
Converting RAM nodes to disc nodes unnecessarily
Removing disc nodes risking data loss
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.