1.

Point out the correct statement.(a) ObjectIds are small, likely unique, fast to generate, and ordered(b) ObjectIds are large, likely unique, and ordered(c) ObjectIds values consists of 18-byte(d) All of the mentionedI have been asked this question during an online exam.I want to ask this question from BSON in section GridFS, BSON Datatype and Administration Concepts of MongoDB

Answer»

The correct choice is (a) OBJECTIDS are SMALL, likely unique, FAST to generate, and ordered

Explanation: In MongoDB, DOCUMENTS stored in a collection require a unique _id field that acts as a PRIMARY key.



Discussion

No Comment Found

Related InterviewSolutions