This set of MongoDB Multiple Choice Questions & Answers (MCQs) focuses on “MongoDB Administration”.
1. To get a correct snapshot of a running mongod process, you must have _________ enabled.
a) journaling
b) replication
c) MMS
d) all of the mentioned
View Answer
Explanation: Without journaling enabled, there is no guarantee that the snapshot will be consistent or valid.
2. Point out the correct statement.
a) Journal must reside on the same logical volume as the other MongoDB data files
b) To get a consistent snapshot of a sharded system, you must disable the balancer
c) Backups produced by copying the underlying data do not support point in time recovery
d) All of the mentioned
View Answer
Explanation: They are difficult to manage for larger sharded clusters.
3. The _______ tool reads data from a MongoDB database and creates high fidelity BSON files.
a) mdump
b) mongodump
c) mongod
d) all of the mentioned
View Answer
Explanation: mongodump is a utility for creating a binary export of the contents of a database.
4. If your storage system does not support snapshots, you can copy the files directly using ____________
a) cp
b) copy
c) snap
d) none of the mentioned
View Answer
Explanation: Since copying multiple files is not an atomic operation, you must stop all writes to the mongod before copying the files.
5. Point out the wrong statement.
a) MongoDB Cloud Manager Backup offers point in time recovery of MongoDB replica sets
b) MongoDB Cloud Manager continually backs up MongoDB replica sets
c) MMS achieves point in time recovery by storing oplog data
d) None of the mentioned
View Answer
Explanation: MongoDB Cloud Manager Backup also offers a consistent snapshot of sharded clusters.
6. The _________ tool can populate a MongoDB database with the data from these BSON files.
a) mongostore
b) mongorestore
c) mongod
d) none of the mentioned
View Answer
Explanation: This tool is not ideal for capturing backups of larger systems.
7. mongodump and mongorestore can operate against a running _______ process.
a) mongostore
b) mongorestore
c) mongod
d) none of the mentioned
View Answer
Explanation: By default, mongodump does not capture the contents of the local database.
8. For replica sets, mongodump also supports a point in time feature with the ________ option.
a) –oplog
b) –log
c) –op
d) None of the mentioned
View Answer
Explanation: To restore a point in time backup created with –oplog, use mongorestore with the –oplogReplay option.
9. If applications modify data while mongodump is creating a backup _________ will compete for resources with those applications.
a) mongostore
b) mongorestore
c) mongod
d) mongodump
View Answer
Explanation: Applications may continue modifying data while mongodump captures the output.
10. The MongoDB ______ supports the backing up and restoring of MongoDB deployments.
a) Cloud Manager
b) MMS
c) MonitorMMS
d) None of the mentioned
View Answer
Explanation: MongoDB Cloud Manager continually backs up MongoDB replica sets and sharded clusters by reading the oplog data from your MongoDB deployment.
Sanfoundry Global Education & Learning Series – MongoDB.
Here’s the list of Best Books in MongoDB.
- Check MongoDB Books
- Practice Programming MCQs
- Apply for Programming Internship
- Check Information Technology Books