MongoDB MCQ Quiz Hub

MongoDB Mcq Question Set 5

Choose a topic to test your knowledge and improve your MongoDB skills

_____ store the relationships between data by including links or references from one document to another.





✅ Correct Answer: 4

Point out the correct statement.





✅ Correct Answer: 2

_________ documents capture relationships between data by storing related data in a single document structure.





✅ Correct Answer: 2

Point out the wrong statement.





✅ Correct Answer: 4

A ____________ data model with embedded data combines all related data for a represented entity in a single document.





✅ Correct Answer: 2

_____ is a specification for storing and retrieving files that exceed the BSON-document size limit of 16MB.





✅ Correct Answer: 2

Point out the correct statement.





✅ Correct Answer: 1

By default GridFS limits chunk size to ______ k.





✅ Correct Answer: 2

When you query a GridFS store for a file, the _______ will reassemble the chunks as needed.





✅ Correct Answer: 1

Point out the wrong statement.





✅ Correct Answer: 1

MongoDB represents queries as ___________ objects.





✅ Correct Answer: 1

Each document in the __________ collection represents a distinct chunk of a file as represented in the GridFS store.





✅ Correct Answer: 1

GridFS uses a _________ index on the chunks collection for the files_id and n fields.





✅ Correct Answer: 1

The ___ field contains the sequence number of the chunk.





✅ Correct Answer: 4

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





✅ Correct Answer: 1

____ is a binary serialization format used to store documents and make remote procedure calls in MongoDB.





✅ Correct Answer: 1

Point out the correct statement.





✅ Correct Answer: 1

Which of the following data type is depreciated?





✅ Correct Answer: 4

Each data type has a corresponding number that can be used with the _______ operator to query documents by BSON type.





✅ Correct Answer: 1

Point out the wrong statement.





✅ Correct Answer: 1

There is _________ byte counter in BSON, starting with a random value.





✅ Correct Answer: 2

In the mongo shell, you can access the creation time of the ObjectId, using the ______ method.





✅ Correct Answer: 2

Object_Id is similar to _________ key in Relational Databases.





✅ Correct Answer: 1

Which of the field is reserved for use as a primary key?





✅ Correct Answer: 1

Point out the wrong statement.





✅ Correct Answer: 4

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





✅ Correct Answer: 4

The ______ field is always the first field in the document.





✅ Correct Answer: 1

____ returns the JavaScript representation in the form of a string literal.





✅ Correct Answer: 2

Which of the following query is used to generate a new ObjectId, use the ObjectId() constructor with no argument?





✅ Correct Answer: 3

The __________ JavaScript shell and the MongoDB language drivers translate between BSON and the language-specific document representation.





✅ Correct Answer: 2

Point out the correct statement.





✅ Correct Answer: 1

BSON is a binary representation of ________ documents.





✅ Correct Answer: 1

MongoDB documents are composed of field-and-value pairs and have the following structure?





✅ Correct Answer: 3

Point out the wrong statement.





✅ Correct Answer: 3

To store documents larger than the maximum size, MongoDB provides the _______ API.





✅ Correct Answer: 3

Index keys that are of the _______ type are more efficiently stored in the index.





✅ Correct Answer: 2

MongoDB uses the ________ notation to access the elements of an array and to access the fields of an embedded document.





✅ Correct Answer: 1

Which of the following data structures are documents in MongoDB?





✅ Correct Answer: 4

Point out the correct statement.





✅ Correct Answer: 1

An application communicates with MongoDB by way of a client library, called ____





✅ Correct Answer: 1

User-defined indexes on multiple fields is called ______





✅ Correct Answer: 3

If your driver has a version number of 2.9.1, What is the major version?





✅ Correct Answer: 2

Updates that include _________ of field names may result in the reordering of fields in the document.





✅ Correct Answer: 1

The $rename operator logically performs a _______ of both the old name and the new name.





✅ Correct Answer: 1

To get a correct snapshot of a running mongod process, you must have _________ enabled.





✅ Correct Answer: 1

Point out the correct statement.





✅ Correct Answer: 4

The _______ tool reads data from a MongoDB database and creates high fidelity BSON files.





✅ Correct Answer: 2

If your storage system does not support snapshots, you can copy the files directly using _____





✅ Correct Answer: 1

Point out the wrong statement.





✅ Correct Answer: 3

The _________ tool can populate a MongoDB database with the data from these BSON files.





✅ Correct Answer: 2