Skip to main content
InterviewHubPRO
Section Overview
Q1

Question 1 of 50

Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

2%
MongoDB & NoSQL (50 Qs)•Part 1: Basic & Foundational Concepts (Junior / Entry-Level)

What is MongoDB and how does its Document Data Model work?

junior LevelCode ExampleDatabases & SQL

In Simple Words: MongoDB is a leading open-source, distributed NoSQL document database:

  • Databases: Group collections together.
  • Collections: Similar to tables in SQL, but schema-flexible; documents in the same collection can have differing fields.
  • Documents: JSON-like records stored on disk in BSON (Binary JSON) format (up to 16 MB per document).
  • Fields can be primitives, arrays, or deeply nested child documents.
json
// Example BSON Document:
{
  "_id": { "$oid": "65f0123456789abcdef01234" },
  "username": "alexm",
  "email": "alex@example.com",
  "address": {
    "city": "Seattle",
    "zip": "98101"
  },
  "roles": ["developer", "admin"],
  "createdAt": { "$date": "2026-03-15T12:00:00Z" }
}