MongoDB MCQ Test: MongoDB MCQs - Practice Questions
1. What is the role of the WiredTiger storage engine in MongoDB?
2. In MongoDB, what is a capped collection?
3. Which command is used to create a new database in MongoDB?
4. Which operator is used for equality in MongoDB queries?
5. How does MongoDB handle data consistency in a distributed environment?
6. In MongoDB, what is the purpose of the `$nin` operator?
7. How can you perform an upsert operation in MongoDB?
8. Which command is used to remove a document from a collection in MongoDB?
9. What is the purpose of the `db.currentOp()` method in MongoDB?
10. What does the term 'BSON' stand for in MongoDB?
11. What is the purpose of the `db.killOp()` method in MongoDB?
12. What is the purpose of the `$elemMatch` operator in MongoDB?
13. How does MongoDB ensure high availability in a replica set?
14. What is the purpose of the `ttl` index type in MongoDB?
15. In MongoDB, what is the primary purpose of the `oplog`?
16. In MongoDB, what is the primary role of the `mongos` process?
17. What is the purpose of the $redact stage in MongoDB aggregation?
18. Explain the significance of the ObjectId in MongoDB documents.
19. What is the purpose of the `explain()` method in MongoDB?
20. What is the purpose of the explain() method in MongoDB?