- Published:
- Last updated:
MongoDB
- Authors
- Name
- Lucian Oprea
- @LucianDSA_
00:30:00
Filter by difficulty
40 of 40 questions shown
Basics and Introduction
⏷ 1. What is MongoDB, and how is it different from relational databases?
⏷ 2. Explain the document-oriented model in MongoDB
⏷ 3. What are collections and documents in MongoDB?
⏷ 4. What are BSON and JSON in MongoDB?
Data Modeling
⏷ 5. How do you model relationships in MongoDB (e.g., embedding vs. referencing)?
Free preview complete
You’ve reached the end of the free preview
Get every remaining question and complete answer, plus progress tracking across the full Interview Question Library.
- 35 more questions and complete answers in this topic
- Full access to every interview topic
- Progress tracking and question flags
- New questions and improvements during your subscription
Full access from
$12/month
No long-term commitment. Cancel whenever you want.
⏷ 6. What are the advantages of using embedding over referencing in MongoDB?
⏷ 7. How does MongoDB handle schema design?
⏷ 8. How do you design a one-to-many relationship in MongoDB?
⏷ 9. How do you design a many-to-many relationship in MongoDB?
CRUD Operations
⏷ 10. How do you query documents in MongoDB?
⏷ 11. How do you insert, update, delete documents in MongoDB?
⏷ 12. What is the difference between findOne() and find() in MongoDB?
Indexing
⏷ 13. What are indexes in MongoDB?
⏷ 14. How do you create an index in MongoDB?
⏷ 15. What types of indexes are available in MongoDB?
Aggregation Framework
⏷ 16. What is the aggregation framework in MongoDB?
⏷ 17. How does the $match stage work in aggregation?
⏷ 18. How does the $group stage work in aggregation?
⏷ 19. What is the difference between the aggregation framework and map-reduce in MongoDB?
⏷ 20. How do you perform complex transformations using the aggregation framework?
Replication and Sharding
⏷ 21. How do replica sets provide high availability in MongoDB?
⏷ 22. What happens during a replica set failover, and how should an application handle it?
⏷ 23. How do read preference, read concern, and write concern differ?
⏷ 24. How does a MongoDB sharded cluster distribute and route data?
⏷ 25. How do you choose an effective shard key?
Performance and Optimization
⏷ 26. How do you diagnose a slow MongoDB query?
⏷ 27. How should fields be ordered in a compound MongoDB index?
⏷ 28. How do you optimize an aggregation pipeline?
⏷ 29. Which production factors commonly cause MongoDB performance problems?
Transactions
⏷ 30. When should you use a multi-document transaction in MongoDB?
⏷ 31. How does an application execute and retry a MongoDB transaction?
⏷ 32. What isolation and durability guarantees do MongoDB transactions provide?
⏷ 33. What are the main costs and limitations of MongoDB transactions?
Security
⏷ 34. How should you secure a production MongoDB deployment?
⏷ 35. How do authentication and authorization work in MongoDB?
⏷ 36. What encryption options does MongoDB provide?
⏷ 37. How do you prevent MongoDB query injection and accidental data exposure?
Tools and Ecosystem
⏷ 38. Which MongoDB tools should an engineer know, and what is each used for?
⏷ 39. What are MongoDB change streams, and when would you use them?
⏷ 40. How should you back up and restore MongoDB?