MongoDB MCQ Quiz Hub

MongoDB Mcq Question Set 4

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

The ________ message is used to update a document in a collection.





✅ Correct Answer: 2

Point out the correct statement.





✅ Correct Answer: 2

___ can modify specific fields of an existing document or documents or replace an existing document entirely, depending on the update parameter.





✅ Correct Answer: 2

The update() method uses the _______ command, which uses the default write concern.





✅ Correct Answer: 3

____ is used to view statistics about the query plan for a given query.





✅ Correct Answer: 2

A ________ query plan has returned a threshold number of matching results.





✅ Correct Answer: 3

A query _______ consists of a combination of query, sort, and projection specifications.





✅ Correct Answer: 2

____ 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

In MongoDB, write operations are atomic at the __________ level.





✅ 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

For the __________ storage engine, if the document size exceeds the allocated space for that document, MongoDB relocates the document on disk.





✅ Correct Answer: 3

With MongoDB 3.0.0, the default use of the Power of _________ Allocations minimizes the occurrences of re-allocations as well as allows for the effective reuse of the freed record space.





✅ Correct Answer: 1

______ strategy is used to explicitly avoid document growth.





✅ Correct Answer: 3

Each index in MongoDB requires at least _________ of data space.





✅ Correct Answer: 1

______ data models allow applications to store related pieces of information in the same database record.





✅ Correct Answer: 2

Point out the correct statement.





✅ Correct Answer: 2

Embedded data model is used when you have _________ relationships between entities.





✅ Correct Answer: 1

Normalized data models describe relationships using ___________ between documents.





✅ Correct Answer: 2

Point out the wrong statement.





✅ Correct Answer: 4

To interact with embedded documents, use ___________ notation to “reach into” embedded documents.





✅ Correct Answer: 2

MongoDB using the mmapv1 storage engine has limits on the number of ____





✅ Correct Answer: 1

To get the current number of namespaces in the mongo shell, use ______





✅ Correct Answer: 3

The __________ feature of collections expires documents after a period of time.





✅ Correct Answer: 2

Capped collections provide __________ management of inserted documents in MongoDB.





✅ Correct Answer: 1

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





✅ Correct Answer: 2

Point out the wrong statement.





✅ Correct Answer: 2

How many does collections GridFS use to store files?





✅ Correct Answer: 2

The default chunk size is changed from 256k to 255k in which version?





✅ Correct Answer: 2

Point out the wrong statement.





✅ Correct Answer: 4

Which of the collection in GridFS stores the binary chunks?





✅ Correct Answer: 1

_____ is the _id is of the data type chosen for the original document in files collections.





✅ Correct Answer: 1

Which of the following checks and repairs errors and inconsistencies in data storage?





✅ Correct Answer: 1

The files_id field contains the _id of the chunk’s __________ document.





✅ Correct Answer: 1

Which of the following field allows efficient retrieval of chunks?





✅ Correct Answer: 1

Which of the following relationship uses references to describe documents between connected data?





✅ Correct Answer: 2

Point out the correct statement.





✅ Correct Answer: 1

If the address data is frequently retrieved with the name information, how will you modify the following schema representing one to one relationship with referencing? { _id: "joe", name: "Joe Bookreader" } { patron_id: "joe", street: "123 Fake Street", city: "Faketon", state: "MA", zip: "12345" }





✅ Correct Answer: 1

Which of the following is used to avoid the repetition of data in MongoDB schema?





✅ Correct Answer: 2

Point out the wrong statement.





✅ Correct Answer: 2

____ define what records to select for read, update, and delete operations.





✅ Correct Answer: 4

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





✅ Correct Answer: 2

Which of the following statement is incorrect about documents in MongoDB?





✅ Correct Answer: 4

The ________ References pattern stores each tree node in a document; in addition to the tree node, the document stores the id of the node’s parent.





✅ Correct Answer: 2

Point out the correct statement.





✅ Correct Answer: 1

The ________ Links pattern provides a simple solution to tree storage but requires multiple queries to retrieve subtrees.





✅ Correct Answer: 2

The _________ References pattern stores each tree node in array the id(s) of the node’s children.





✅ Correct Answer: 1

Point out the wrong statement.





✅ Correct Answer: 2