1.

Point out the wrong statement.(a) You can create indexes on fields within embedded documents(b) Indexes on embedded fields are similar to indexes on embedded documents(c) Indexes on embedded fields allow you to use a “dot notation,” to introspect into embedded documents(d) None of the mentionedThis question was addressed to me by my college professor while I was bunking the class.My enquiry is from Index Types topic in portion Index/Indexing Concepts of MongoDB

Answer»

The correct CHOICE is (c) Indexes on embedded fields allow you to use a “DOT notation,” to introspect into embedded DOCUMENTS

Explanation: Indexes on embedded fields differ from indexes on embedded documents, which INCLUDE the full content up to the maximum index size of the embedded DOCUMENT in the index.



Discussion

No Comment Found

Related InterviewSolutions