Q1: What is MongoDB and how does it differ from traditional RDBMS?

MongoDB is a source-available, document-oriented NoSQL database that stores data as flexible BSON (Binary JSON) documents. Unlike traditional RDBMS (which uses structured tables, fixed schemas, and SQL joins), MongoDB provides flexible dynamic schemas, high availability via replica sets, and native horizontal scaling through sharding.

Key Takeaways
  • Dynamic dynamic schemas vs. fixed relational tables.
  • Stores data in BSON format with native nested objects and arrays.
Knowledge Check

Which data format does MongoDB use internally to store and query documents?