MCQOPTIONS
Saved Bookmarks
This section includes 8 Mcqs, each offering curated multiple-choice questions to sharpen your Mongodb knowledge and support exam preparation. Choose a topic below to get started.
| 1. |
Index __________ does not eliminate the need for creating compound indexes. |
| A. | union |
| B. | addition |
| C. | intersection |
| D. | all of the mentioned |
| Answer» D. all of the mentioned | |
| 2. |
An index prefix is a subset of a ______ index, consisting of one or more keys starting from the beginning of the index. |
| A. | Hashed |
| B. | Unique |
| C. | Sparse |
| D. | Compound |
| Answer» E. | |
| 3. |
Which of the following method is to verify whether MongoDB used index intersection? |
| A. | explain() |
| B. | analyze() |
| C. | intersect() |
| D. | none of the mentioned |
| Answer» B. analyze() | |
| 4. |
MongoDB can use the _________ of indexes to fulfill queries. |
| A. | union |
| B. | intersection |
| C. | projection |
| D. | none of the mentioned |
| Answer» C. projection | |
| 5. |
The ______ property of an index ensures that the index only contain entries for documents that have the indexed field. |
| A. | Hashed |
| B. | Unique |
| C. | Sparse |
| D. | None of the mentioned |
| Answer» D. None of the mentioned | |
| 6. |
The _________ property for an index causes MongoDB to reject duplicate values for the indexed field. |
| A. | Hashed |
| B. | Unique |
| C. | Multikey |
| D. | None of the mentioned |
| Answer» D. None of the mentioned | |
| 7. |
________ index type, which indexes the hash of the value of a field. |
| A. | Hashed |
| B. | Unique |
| C. | Multikey |
| D. | None of the mentioned |
| Answer» B. Unique | |
| 8. |
To support ________ based sharding, MongoDB provides a hashed index type. |
| A. | primary |
| B. | root |
| C. | hash |
| D. | all of the mentioned |
| Answer» D. all of the mentioned | |