Which of the following backup types in MongoDB allows you to capture the database state at a specific point in time without stopping the database?
Think about backups that do not require shutting down the database.
A hot backup captures the database while it is running, allowing continuous operations without downtime.
What is the expected output when running the command mongodump --db mydb --out /backup/?
Consider how mongodump organizes data when backing up a database.
mongodump creates a directory with the database name inside the specified output directory, containing BSON files for each collection.
Which of the following commands correctly restores a MongoDB database from a backup directory named '/backup/mydb'?
Check the official mongorestore syntax for specifying the database and source directory.
The correct syntax uses --db to specify the target database followed by the path to the backup directory.
You want to speed up the backup process of a large MongoDB database using mongodump. Which option will help achieve this?
Think about parallelizing work to improve speed.
--numParallelCollections allows mongodump to dump multiple collections simultaneously, improving speed.
You run mongorestore --db mydb /backup/mydb but get an error: Failed: error reading collection data. What is the most likely cause?
Consider if the backup files are compressed and how mongorestore handles them.
If the backup was compressed with --gzip, mongorestore must also use --gzip to read the files correctly.