1. What is MongoDB?

    Tip: MongoDB = flexible, document-based, schema-less database for scalable applications.

  2. Difference between SQL and NoSQL databases.

    Tip: SQL = structured and relational, NoSQL = flexible, scalable, non-relational.

  3. Why is MongoDB schema-less?

    Tip: Schema-less = flexible document structure, no fixed table design needed.

  4. What is BSON?

    Tip: BSON = binary format of JSON used by MongoDB for efficient storage and richer data types.

  5. Difference between JSON and BSON.

    Tip: JSON = readable text format, BSON = binary, efficient, supports more types.

  6. What is a collection?

    Tip: Collection = container for documents, like a table in relational databases.

  7. What is a document?

    {
      "_id": ObjectId("624b1f2e7c1a4f5a6d3e8b9c"),
      "name": "John Doe",
      "age": 30,
      "email": "john@example.com"
    }
    

    Tip: Document = a flexible, JSON-like record inside a MongoDB collection.

  8. What is ObjectId?

    Tip: ObjectId = unique ID for each document, generated automatically by MongoDB.

  9. How is ObjectId generated?

    Tip: ObjectId = timestamp + machine/process identifier + counter → globally unique ID.

  10. Advantages of using MongoDB.

    Tip: MongoDB = flexible, scalable, high-performance, and developer-friendly NoSQL database.

  11. Limitations of MongoDB.

  12. What is indexing and why is it important?

  13. Types of indexes in MongoDB.

  14. What is a compound index?

  15. What is a unique index?

  16. Explain normalization vs denormalization.

  17. What is embedding?

  18. What is referencing?

  19. When should you use embedding vs referencing?

  20. What is a TTL index?