 
			 
			MCQOPTIONS
 Saved Bookmarks
				This section includes 13 Mcqs, each offering curated multiple-choice questions to sharpen your Mongodb knowledge and support exam preparation. Choose a topic below to get started.
| 1. | Which of the following command obtains a global write lock and will block other operations until it has completed? | 
| A. | ToCapped | 
| B. | isCapped | 
| C. | convertToCapped | 
| D. | None of the mentioned | 
| Answer» C. convertToCapped | |
| 2. | _________ command creates the capped collection and imports the data. | 
| A. | CollectionAsCapped | 
| B. | cloneCollection | 
| C. | cloneCollectionAsCapped | 
| D. | None of the mentioned | 
| Answer» D. None of the mentioned | |
| 3. | ___________ convert a non-capped collection to a capped collection. | 
| A. | ToCapped | 
| B. | convertToCap | 
| C. | convertToCapped | 
| D. | none of the mentioned | 
| Answer» D. none of the mentioned | |
| 4. | Which of the following should is used to check whether collection is capped or not? | 
| A. | isCAP() | 
| B. | isCapped() | 
| C. | isColl() | 
| D. | none of the mentioned | 
| Answer» C. isColl() | |
| 5. | Which of the following collections work in a way similar to circular buffers? | 
| A. | Capped | 
| B. | Secondary | 
| C. | Sharded | 
| D. | All of the mentioned | 
| Answer» B. Secondary | |
| 6. | __________COMMAND_CREATES_THE_CAPPED_COLLECTION_AND_IMPORTS_THE_DATA.?$ | 
| A. | CollectionAsCapped | 
| B. | cloneCollection | 
| C. | cloneCollectionAsCapped | 
| D. | None of the mentioned | 
| Answer» D. None of the mentioned | |
| 7. | Which_of_the_following_command_obtains_a_global_write_lock_and_will_block_other_operations_until_it_has_completed_?$ | 
| A. | ToCapped | 
| B. | isCapped | 
| C. | convertToCapped | 
| D. | None of the mentioned | 
| Answer» C. convertToCapped | |
| 8. | ___________ convert a non-capped collection to a capped collection ? | 
| A. | ToCapped | 
| B. | convertToCap | 
| C. | convertToCapped | 
| D. | none of the mentioned | 
| Answer» D. none of the mentioned | |
| 9. | Which of the following should is used to check whether collection is capped or not ? | 
| A. | isCAP() | 
| B. | isCapped() | 
| C. | isColl() | 
| D. | none of the mentioned | 
| Answer» C. isColl() | |
| 10. | If you perform a ________ on a capped collection with no ordering specified, MongoDB guarantees that the ordering of results is the same as the insertion order. | 
| A. | find() | 
| B. | write() | 
| C. | modify() | 
| D. | none of the mentioned | 
| Answer» B. write() | |
| 11. | ___________ is also used to pre-allocate space for an ordinary collection. | 
| A. | db.createCollection. | 
| B. | db.create | 
| C. | db.createColl | 
| D. | all of the mentioned | 
| Answer» B. db.create | |
| 12. | _________ stores a log of the operations in a replica set. | 
| A. | oplog.rs | 
| B. | log.rs | 
| C. | oplog | 
| D. | all of the mentioned | 
| Answer» B. log.rs | |
| 13. | Which of the following collections work in a way similar to circular buffers ? | 
| A. | Capped | 
| B. | Secondary | 
| C. | Sharded | 
| D. | All of the mentioned | 
| Answer» B. Secondary | |