Explore topic-wise MCQs in Mongodb.

This section includes 7 Mcqs, each offering curated multiple-choice questions to sharpen your Mongodb knowledge and support exam preparation. Choose a topic below to get started.

1.

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

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

MongoDB can use the _________ of indexes to fulfill queries.

A. union
B. intersection
C. projection
D. none of the mentioned
Answer» C. projection
4.

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

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

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

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