Hint: Memory limit uses set_vm_memory_high_watermark with fraction [OK]
Common Mistakes:
Using set_memory_limit which is invalid
Confusing disk limit command with memory limit
Trying to enable flow control directly
3. Given the command rabbitmqctl set_disk_free_limit 50000000, what happens when RabbitMQ's free disk space falls below this limit?
medium
A. RabbitMQ restarts automatically
B. RabbitMQ deletes old messages automatically
C. RabbitMQ increases memory usage to compensate
D. RabbitMQ pauses message publishing to prevent disk exhaustion
Solution
Step 1: Understand disk free limit effect
The disk free limit sets a threshold for minimum free disk space before flow control activates.
Step 2: Identify system behavior below limit
When free disk space is below the limit, RabbitMQ pauses message publishing to avoid running out of disk.
Final Answer:
RabbitMQ pauses message publishing to prevent disk exhaustion -> Option D
Quick Check:
Disk limit triggers pause on low space [OK]
Hint: Low disk space triggers pause in publishing [OK]
Common Mistakes:
Assuming messages get deleted automatically
Thinking memory usage increases instead
Believing RabbitMQ restarts on low disk
4. You set rabbitmqctl set_vm_memory_high_watermark 0.8 but flow control does not activate when memory is high. What is a likely cause?
medium
A. The value 0.8 is too low to trigger flow control
B. The command syntax is incorrect and was not applied
C. The system has enough memory, so flow control is not needed
D. Disk free limit is set too high, blocking flow control
Solution
Step 1: Check meaning of high watermark value
A value of 0.8 means flow control triggers when memory usage reaches 80%, which is high but valid.
Step 2: Consider system memory usage
If flow control does not activate, likely the memory usage has not reached that threshold yet.
Final Answer:
The system has enough memory, so flow control is not needed -> Option C
Quick Check:
High watermark reached? No = no flow control [OK]
Hint: Flow control triggers only when usage exceeds limit [OK]
Common Mistakes:
Assuming 0.8 is too low instead of high
Thinking command syntax is wrong without checking
Confusing disk limit with memory limit
5. You want to ensure RabbitMQ flow control activates before memory usage reaches 60% and disk free space falls below 100MB. Which commands should you run?
hard
A. rabbitmqctl set_vm_memory_high_watermark 1.0\nrabbitmqctl set_disk_free_limit 10000000
B. rabbitmqctl set_vm_memory_high_watermark 0.6\nrabbitmqctl set_disk_free_limit 100000000
C. rabbitmqctl set_vm_memory_high_watermark 0.8\nrabbitmqctl set_disk_free_limit 200000000
D. rabbitmqctl set_vm_memory_high_watermark 0.4\nrabbitmqctl set_disk_free_limit 50000000
Solution
Step 1: Set memory watermark below 60%
To activate flow control before 60% memory usage, set set_vm_memory_high_watermark to 0.6.
Step 2: Set disk free limit below 100MB
Set set_disk_free_limit to 100000000 bytes (100MB) to trigger flow control before disk space is too low.
Final Answer:
rabbitmqctl set_vm_memory_high_watermark 0.6 and rabbitmqctl set_disk_free_limit 100000000 -> Option B
Quick Check:
Memory < 0.6 and disk < 100MB triggers flow control [OK]
Hint: Set memory fraction and disk bytes below desired limits [OK]
Common Mistakes:
Setting memory watermark too high to trigger early
Using disk limit values not matching bytes
Mixing up memory and disk commands
Recommended
Ready to prove it?
Pass the test and this pattern moves unknownstrongwhile earning +1 Grip toward your certificate.