🧪 MongoDB MCQ Quiz Hub

MongoDB Mcq Question Set 3

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

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




2. Point out the wrong statement.




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




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




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




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




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




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




9. Point out the correct statement.




10. MongoDB stores all documents in _______




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




12. Point out the wrong statement.




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




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




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




16. MongoDB process collection of documents using _________ operations.




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




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




19. Point out the correct statement.




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




21. Which of the following method returns one document?




22. Point out the wrong statement.




23. Which of the following is the second argument to projection?




24. Which of the following query selects documents in the records collection that match the condition { “user_id”: { $lt: 42 } }?




25. Which of the following functionality is used for aggregation framework?




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




27. Which of the following is not a projection operator?




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




29. Point out the correct statement.




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




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




32. Point out the wrong statement.




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




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




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




36. Which of the following operator is not very selective?




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




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




39. Point out the correct statement.




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




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




42. Point out the wrong statement.




43. _______ is used to control mongod commits in the journal.




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




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




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




47. 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.




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




49. Point out the wrong statement.




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