πŸ§ͺ MongoDB MCQ Quiz Hub

MongoDB Mcq Question Set 3

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

Which of the following function is valid for creation of new data inside MongoDB Shell?





βœ… Correct Answer: 2

Point out the wrong statement.





βœ… Correct Answer: 2

_id is a ________ bytes hexadecimal number which assures the uniqueness of every document.





βœ… Correct Answer: 3

Which of the following statement will insert 400 documents in to the testData collection?





βœ… Correct Answer: 2

The mongo shell loads and parses the ___________ file on startup.





βœ… Correct Answer: 3

To iterate the cursor and return more documents, type _________ in the mongo shell.





βœ… Correct Answer: 2

Which of the following key is used to denote uniqueness in the collection?





βœ… Correct Answer: 1

A query may include a ___________ that specifies the fields from the matching documents to return.





βœ… Correct Answer: 2

Point out the correct statement.





βœ… Correct Answer: 2

MongoDB stores all documents in _______





βœ… Correct Answer: 2

In MongoDB _________ operations modify the data of a single collection.





βœ… Correct Answer: 1

Point out the wrong statement.





βœ… Correct Answer: 1

Which of the following operation adds a new document to the users collection?





βœ… Correct Answer: 2

Which of the following preference determines how the client direct read operations to the set?





βœ… Correct Answer: 1

Applications can also control the behavior of write operations using _______ concern.





βœ… Correct Answer: 2

MongoDB process collection of documents using _________ operations.





βœ… Correct Answer: 3

Which of the following pipeline is used for aggregation in MongoDB?





βœ… Correct Answer: 1

The order of documents returned by a query is not defined unless you specify a ______





βœ… Correct Answer: 3

Point out the correct statement.





βœ… Correct Answer: 1

In aggregation pipeline, the _______ pipeline stage provides access to MongoDB queries.





βœ… Correct Answer: 2

Which of the following method returns one document?





βœ… Correct Answer: 1

Point out the wrong statement.





βœ… Correct Answer: 3

Which of the following is the second argument to projection?





βœ… Correct Answer: 4

Which of the following query selects documents in the records collection that match the condition { β€œuser_id”: { $lt: 42 } }?





βœ… Correct Answer: 2

Which of the following functionality is used for aggregation framework?





βœ… Correct Answer: 2

To suppress the _id field from the result set, specify _________ in the projection document.





βœ… Correct Answer: 2

Which of the following is not a projection operator?





βœ… Correct Answer: 4

Which of the following flag can be set by mongo shell?





βœ… Correct Answer: 2

Point out the correct statement.





βœ… Correct Answer: 2

Which of the following will display complete list of available cursor flags?





βœ… Correct Answer: 2

To describe the message structure, a ________ like struct is used.





βœ… Correct Answer: 3

Point out the wrong statement.





βœ… Correct Answer: 4

____ specifies the number of documents to return in each batch of the response from the MongoDB instance.





βœ… Correct Answer: 1

The __________ method returns a document that includes a metrics field.





βœ… Correct Answer: 2

________ is a client or database-generated identifier that uniquely identifies this message.





βœ… Correct Answer: 3

Which of the following operator is not very selective?





βœ… Correct Answer: 2

An index cannot cover a query on a _______ collection when run against a mongos if the index does not contain the shard key.





βœ… Correct Answer: 2

______ concern describes the guarantee that MongoDB provides when reporting on the success of a write operation.





βœ… Correct Answer: 1

Point out the correct statement.





βœ… Correct Answer: 4

When inserts, updates and deletes have a _________ write concern, write operations return quickly.





βœ… Correct Answer: 2

The mongo shell and the MongoDB drivers use __________ as the default write concern.





βœ… Correct Answer: 3

Point out the wrong statement.





βœ… Correct Answer: 1

_______ is used to control mongod commits in the journal.





βœ… Correct Answer: 3

Clients can set a __________ value as part of a replica acknowledged write concern.





βœ… Correct Answer: 2

MongoDB does not ___________ modifications made before the wtimeout interval expired.





βœ… Correct Answer: 2

With an __________ write concern, MongoDB does not acknowledge the receipt of write operations.





βœ… Correct Answer: 4

With a receipt acknowledged write concern, the _________confirms that it received the write operation and applied the change to the in-memory view of data.





βœ… Correct Answer: 1

Indexes are typically available in ______ or located sequentially on disk.





βœ… Correct Answer: 1

Point out the wrong statement.





βœ… Correct Answer: 3

______ is used to determine whether a query is a covered query.





βœ… Correct Answer: 2