0
0
RabbitMQdevops~20 mins

Backup and restore strategies in RabbitMQ - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
RabbitMQ Backup Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
2:00remaining
Understanding RabbitMQ Backup Methods

Which of the following is the recommended way to create a consistent backup of RabbitMQ data?

ACopy the RabbitMQ data directory while the server is running without stopping it.
BOnly backup the message queues by copying the queue files directly from the disk.
CUse the rabbitmqctl export_definitions command to export definitions and stop the server before copying data files.
DBackup the RabbitMQ log files as they contain all the message data.
Attempts:
2 left
💡 Hint

Think about how to avoid data corruption during backup.

💻 Command Output
intermediate
1:30remaining
Output of RabbitMQ Backup Export Command

What is the expected output when running rabbitmqctl export_definitions backup.json on a running RabbitMQ server?

RabbitMQ
rabbitmqctl export_definitions backup.json
APrints 'Error: Server must be stopped before exporting definitions.'
BExports all current definitions to backup.json and prints 'Exported definitions to backup.json'.
CCreates backup.json but leaves it empty.
DFails with 'command not found' error.
Attempts:
2 left
💡 Hint

Check if the server needs to be stopped for this command.

🔀 Workflow
advanced
2:30remaining
Steps to Restore RabbitMQ from Backup

Arrange the correct order of steps to restore RabbitMQ from a backup including definitions and data files.

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

Think about when the server should be stopped and started during restore.

Troubleshoot
advanced
2:00remaining
Troubleshooting RabbitMQ Restore Failure

After restoring RabbitMQ data files and starting the server, the queues are missing. What is the most likely cause?

AThe RabbitMQ server was not stopped before copying data files.
BThe definitions file was not imported after starting the server.
CThe backup data directory was copied to the wrong location.
DThe RabbitMQ logs were deleted during restore.
Attempts:
2 left
💡 Hint

Recall that the server must be stopped before copying data files for backup.

Best Practice
expert
3:00remaining
Best Practice for Automating RabbitMQ Backups

Which approach best ensures automated, consistent RabbitMQ backups with minimal downtime?

AOnly export definitions daily and rely on RabbitMQ's internal durability for messages.
BRun a script that copies data files while RabbitMQ is running and exports definitions afterward.
CUse a live snapshot of the server disk without stopping RabbitMQ and export definitions daily.
DSchedule a script to export definitions, stop RabbitMQ, copy data files, then start RabbitMQ again during low traffic hours.
Attempts:
2 left
💡 Hint

Consider data consistency and service availability.