Skip to main content

Posts

Showing posts with the label Mongo DB interview question and answer

Mongo DB top 50 interview question and answer

  1. What is MongoDB? MongoDB is a NoSQL database that uses a document-oriented data model. It stores data in flexible, JSON-like documents, which allows for rich data structures and dynamic schemas. 2. What are the advantages of MongoDB? Scalability : Horizontal scaling through sharding. Flexibility : Schema-less data model allows easy modification. Performance : Fast read and write operations. Rich Query Language : Supports complex queries and indexing. 3. What are documents in MongoDB? Documents are individual records stored in MongoDB collections, represented in BSON format (Binary JSON). Each document can have a different structure. 4. What is a collection in MongoDB? A collection is a grouping of MongoDB documents, similar to a table in relational databases. Collections do not enforce a schema, allowing for varied document structures. 5. How does MongoDB handle data relationships? MongoDB supports both embedded documents and references to model relationships. Embedded documen...