Explore topic-wise MCQs in Mongodb.

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.

THE____________FEATURE_OF_COLLECTIONS_EXPIRES_DOCUMENTS_AFTER_A_PERIOD_OF_TIME.?$

A. TEL
B. TTL
C. TPL
D. None of the mentioned
Answer» C. TPL
2.

Capped_collections_provide____________management_of_inserted_documents_in_MongoDB.$

A. FIFO
B. LIFO
C. LRU
D. MRU
Answer» B. LIFO
3.

To get the current number of namespaces in the mongo shell, use ?

A. db.system.namespaces.countc()
B. db.system.namespaces.count(*)
C. db.system.namespaces.count()
D. all of the mentioned
Answer» D. all of the mentioned
4.

MongoDB using the mmapv1 storage engine has limits on the number of __________ .

A. namespaces
B. collections
C. documents
D. none of the mentioned
Answer» B. collections
5.

To interact with embedded documents, use ___________ notation to “reach into” embedded documents.$

A. period
B. dot
C. comma
D. colon
Answer» C. comma
6.

Normalized data models describe relationships using ___________ between documents.

A. relativeness
B. references
C. evaluation
D. none of the mentioned
Answer» C. evaluation
7.

Embedded data model is used when you have _________ relationships between entities

A. contains
B. isa
C. inheritance
D. all of the mentioned
Answer» B. isa
8.

___________ data models allow applications to store related pieces of information in the same database record.

A. Reference
B. Embedded
C. External
D. None of the mentioned
Answer» C. External