MongoDB

MongoDB

ObjectId has 10 Questions

he GridFS index allows efficient retrieval of __________ using the files_id and n values

chunks
files
bson
None of the mentioned
hich of the following query is used to generate a new ObjectId, use the ObjectId() constructor with no argument

x = ObjectIdAdd()
x = addObjectId()
x = ObjectId()
None of the mentioned
Object_Id is similar to _________ key in Relational Databases

primary
secondary
composite
All of the mentioned
Point out the correct statement :

ObjectIds are small, likely unique, fast to generate, and ordered
ObjectIds are large, likely unique, and ordered
ObjectIds values consists of 18-bytes
All of the mentioned
Which of the field is reserved for use as a primary key ?

_id
_uid
_uuid
All of the mentioned
Point out the wrong statement :

The field names cannot start with the dollar sign ($) character
The field names cannot contain the dot (.) character
The field names cannot contain the null character
None of the mentioned
GridFS uses a _________ index on the chunks collection for the files_id and n fields.

unique
single
non unique
None of the mentioned
To ensure functioning replication, do not store values that are of the _______ regular expression type in the _id field.

JSON
XML
JScript
None of the mentioned
The ______ field is always the first field in the document.

_id
id
Ob_id
None of the mentioned
In the mongo shell, you can access the creation time of the ObjectId, using the ______ method..

getTime()
getTimestamp()
Timestamp()
None of the mentioned