1.

MongoDB supports the creation of user-defined ascending/descending indexes on a ______ field of a document.(a) Single(b) Non Unique(c) Compound(d) None of the mentionedThis question was posed to me during an interview.This intriguing question comes from Indexes In MongoDB topic in section Index/Indexing Concepts of MongoDB

Answer»

Correct option is (a) Single

To explain I WOULD say: If APPLICATIONS do not specify a value for _id the DRIVER or the mongod will CREATE an _id field with an ObjectId value.



Discussion

No Comment Found

Related InterviewSolutions