MongoDB Questions and Answers Part-23

1. mongodump and mongorestore can operate against a running _______ process.
a) mongostore
b) mongorestore
c) mongod
d) none of the mentioned

Answer: c
Explanation: By default, mongodump does not capture the contents of the local database.

2. 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

Answer: a
Explanation: To restore a point in time backup created with –oplog, use mongorestore with the –oplogReplay option.

3. 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

Answer: d
Explanation: Applications may continue modifying data while mongodump captures the output.

4. The MongoDB ______ supports the backing up and restoring of MongoDB deployments.
a) Cloud Manager
b) MMS
c) MonitorMMS
d) None of the mentioned

Answer: a
Explanation: MongoDB Cloud Manager continually backs up MongoDB replica sets and sharded clusters by reading the oplog data from your MongoDB deployment.

5. On Linux the ______ manager can create a snapshot.
a) LVM
b) SVM
c) MMS
d) All of the mentioned

Answer: a
Explanation: You can create a backup by copying MongoDB’s underlying data files.

6. Point out the correct statement.
a) The mechanics of snapshots depend on the underlying storage system
b) To get a consistent snapshot of a sharded system, you must disable the balancer
c) If your storage system does not support snapshots, you can copy the files directly using cp, rsync, or a similar tool
d) All of the mentioned

Answer: d
Explanation: Backups produced by copying the underlying data do not support point in time recovery for replica sets and are difficult to manage for larger sharded clusters.

7. When connected to a MongoDB instance, mongodump can adversely affect ______ performance.
a) mdump
b) mongodump
c) mongod
d) all of the mentioned

Answer: c
Explanation: If your data is larger than system memory, the queries will push the working set out of memory.

8. To mitigate the impact of mongodump on the performance of the replica set, use mongodump to capture backups from a _________ member of a replica set.
a) primary
b) secondary
c) snaphot
d) none of the mentioned

Answer: b
Explanation: Alternatively, you can shut down a secondary and use mongodump with the data files directly.

9. Point out the wrong statement.
a) If you shut down a secondary to capture data with mongodump ensure that the operation can complete before its oplog becomes too stale to continue replicating
b) MongoDB Cloud Manager continually backs up MongoDB replica sets
c) Sharded cluster snapshots are easy to achieve with other MongoDB backup methods
d) None of the mentioned

Answer: c
Explanation: Sharded cluster snapshots are difficult to achieve with other MongoDB backup methods.

10. ________ an on-premise solution, has similar functionality to the cloud version.
a) Opscore Manager
b) Ops Manager
c) Mongod
d) None of the mentioned

Answer: b
Explanation: This tool is available with Enterprise Advanced subscriptions.