MongoDB DBA Backup and Restore Quiz

Reviewed by Editorial Team
The ProProfs editorial team is comprised of experienced subject matter experts. They've collectively created over 10,000 quizzes and lessons, serving over 100 million users. Our team includes in-house content moderators and subject matter experts, as well as a global network of rigorously trained contributors. All adhere to our comprehensive editorial guidelines, ensuring the delivery of high-quality content.
Learn about Our Editorial Process
| By Thames
T
Thames
Community Contributor
Quizzes Created: 11982 | Total Attempts: 187,298
| Attempts: 11 | Questions: 20 | Updated: Aug 16, 2026
Please wait...
Question 1 / 21
🏆 Rank #-- ▾
0 %
0/100
Score 0/100

1. True or False: You can safely back up a MongoDB database while write operations are in progress using file system snapshots with journaling enabled.

Explanation

With journaling enabled, MongoDB can use the journal to recover a consistent database state after a file system snapshot, even if writes were underway when it was taken. The snapshot must capture the database files and journal consistently—ideally atomically across all relevant volumes—so the backup can be restored without applying partially written data.

Submit
Please wait...
About This Quiz
MongoDB DBA Backup and Restore Quiz - Quiz

This quiz evaluates your knowledge of MongoDB backup and restore operations essential for database administrators. Master backup strategies, restore procedures, point-in-time recovery, and data consistency techniques. Designed for college-level learners preparing for MongoDB Associate DBA certification, this assessment covers practical scenarios and configuration best practices.

2.

What first name or nickname would you like us to use?

You may optionally provide this to label your report, leaderboard, or certificate.

2. True or False: MongoDB Cloud Backup requires manual configuration of backup schedules and retention policies.

Explanation

MongoDB Cloud Backup automates backups through managed policies, so users do not have to manually create each backup or configure a schedule and retention policy to get started. These settings can be adjusted to meet specific requirements, but manual configuration is not a prerequisite for using the service.

Submit

3. To restore a specific collection from a backup, you use mongorestore with the ____ flag.

Explanation

Use the `--nsInclude` flag with `mongorestore` to specify the namespace to restore, such as `database.collection`. This limits the restore operation to the selected collection rather than restoring every collection in the backup.

Submit

4. Which of the following statements about backup encryption are correct? (Select all that apply)

Explanation

Backup encryption is typically provided by the file system or storage layer rather than by `mongodump` itself. TLS protects backup data while it is being transmitted, and encrypted volumes help protect stored backup files from unauthorized access.

Submit

5. True or False: You must drop the destination database before restoring a mongodump backup.

Explanation

You do not need to drop the destination database before restoring a `mongodump` backup. By default, `mongorestore` restores data into the destination and may add to or overwrite existing documents. Use the `--drop` option if you want it to drop each target collection before restoring it.

Submit

6. The oplog size in MongoDB is configured via the ____ parameter.

Explanation

MongoDB uses the `oplogSizeMB` parameter to set the size of the replication operation log in megabytes. This log records database operations so replica set members can synchronize their data.

Submit

7. Which backup method is best for large databases with minimal downtime tolerance?

Explanation

A file system snapshot captures the database’s data files quickly, avoiding the lengthy collection scans or exports required by other methods. Journaling helps MongoDB recover to a consistent state after the snapshot. This approach is therefore well suited to large databases where backup time and service interruption must be minimized, provided the snapshot is taken using a consistency-safe procedure.

Submit

8. True or False: Restoring a backup to a replica set requires stopping all secondary nodes first.

Explanation

False. Restoring a backup to a replica set does not inherently require stopping every secondary. The restore procedure depends on the backup method and deployment, and may involve restoring a particular member or using a rolling approach. Follow the backup tool’s instructions and ensure the restored data is consistent with the replica set.

Submit

9. When using mongoexport, the output format is typically ____.

Explanation

mongoexport typically writes exported MongoDB documents in JSON format, representing each document as a JSON object. It can also produce CSV output when configured with the appropriate options.

Submit

10. What does the --nsInclude flag in mongodump allow you to do?

Explanation

The `--nsInclude` flag filters the data included in a `mongodump` backup, so only the specified namespaces—typically databases or collections—are dumped.

Submit

11. Which MongoDB backup method captures a consistent snapshot without stopping write operations?

Explanation

A filesystem snapshot can capture MongoDB’s data files while the database continues handling writes. With journaling enabled, including the journal in the snapshot lets MongoDB recover to a consistent state when the snapshot is restored, without requiring write operations to stop during backup.

Submit

12. To ensure consistency during backup, journaling must be ____.

Explanation

Journaling must be enabled during backup so changes made to files or data can be tracked while the backup is in progress. This helps the backup process capture a consistent state and supports recovery if an interruption or failure occurs, reducing the risk of missing or inconsistent data.

Submit

13. Which of the following are valid backup strategies for MongoDB? (Select all that apply)

Explanation

File system snapshots can capture MongoDB data consistently when journaling is enabled and the snapshot is taken appropriately. `mongodump --oplog` records operations during the dump, helping produce a consistent backup for replica sets. MongoDB Cloud Backup provides a managed backup service. Manual collection exports alone may omit database-wide consistency and recovery information.

Submit

14. What is the purpose of the mongodump --archive flag?

Explanation

The `--archive` flag writes the dump as a single archive stream instead of creating separate files for each database collection. This stream can be sent to standard output or saved to a specified archive file, making it convenient to pipe or store the backup as one unit.

Submit

15. When restoring to a replica set, you should restore to the ____.

Explanation

Restore data to the primary because it is the replica set’s member that accepts writes. Once the data is restored there, MongoDB’s replication process can propagate the changes to the secondary members, helping keep the set consistent. This avoids attempting a restore on a secondary, which generally does not accept writes.

Submit

16. Which command restores a database from a mongodump backup?

Explanation

`mongorestore` restores a MongoDB database from files created by `mongodump`. It reads the BSON backup files and imports the database collections into a MongoDB server.

Submit

17. What does point-in-time recovery (PITR) require to restore a database to a specific moment?

Explanation

Point-in-time recovery uses a base backup as the starting state, then replays the recorded oplog entries to apply changes up to the desired moment. This lets the database be restored to a specific point between backups.

Submit

18. The --oplog flag in mongodump is used to ____.

Explanation

The `--oplog` option tells `mongodump` to include operations recorded in the replica set’s oplog while the dump runs. This accounts for writes made during the backup and supports a more consistent point-in-time snapshot when restored with oplog replay. It is intended for replica-set members, not standalone servers.

Submit

19. In a replica set, which member should you perform backups from to minimize impact?

Explanation

Backups can place a significant load on a replica set. Using a priority-0 secondary helps keep that load off the primary, while its configuration prevents it from becoming primary and disrupting normal operations.

Submit

20. What is the primary advantage of using mongodump over file system snapshots?

Explanation

`mongodump` creates a logical backup of MongoDB data rather than copying files tied to a particular filesystem or storage setup. This makes the dump easier to move and restore on another compatible MongoDB system. It is portable across MongoDB deployments, though it is not a format usable by unrelated database systems.

Submit
×
Saved
Thank you for your feedback!
View My Results
Cancel
  • All
    All (20)
  • Unanswered
    Unanswered ()
  • Answered
    Answered ()
True or False: You can safely back up a MongoDB database while write...
True or False: MongoDB Cloud Backup requires manual configuration of...
To restore a specific collection from a backup, you use mongorestore...
Which of the following statements about backup encryption are correct?...
True or False: You must drop the destination database before restoring...
The oplog size in MongoDB is configured via the ____ parameter.
Which backup method is best for large databases with minimal downtime...
True or False: Restoring a backup to a replica set requires stopping...
When using mongoexport, the output format is typically ____.
What does the --nsInclude flag in mongodump allow you to do?
Which MongoDB backup method captures a consistent snapshot without...
To ensure consistency during backup, journaling must be ____.
Which of the following are valid backup strategies for MongoDB?...
What is the purpose of the mongodump --archive flag?
When restoring to a replica set, you should restore to the ____.
Which command restores a database from a mongodump backup?
What does point-in-time recovery (PITR) require to restore a database...
The --oplog flag in mongodump is used to ____.
In a replica set, which member should you perform backups from to...
What is the primary advantage of using mongodump over file system...
play-Mute sad happy unanswered_answer up-hover down-hover success oval cancel Check box square blue
Alert!