Start free

DatabasesBeginner → AdvancedBeginner stage24 hoursPro

MongoDB

Document databases: modelling, CRUD, aggregation pipelines, indexing, replication, sharding and Atlas.

Start the free previewLabs run in your browser. No installs.

What you will be able to do

  • Model documents for access patterns
  • Query and update with operators
  • Write aggregation pipelines
  • Index, replicate and shard

Tools

  • MongoDB 8
  • mongosh
  • Compass
  • Atlas
  • PyMongo

Syllabus — 5 modules

  1. Documents and collections

    MongoDB stores JSON-like BSON documents in collections. Schemas are flexible but should be designed, not accidental.

    BSON types and ObjectId · Databases and collections · mongosh and Compass · Atlas free cluster · When to choose a document database

  2. CRUD and operators

    find takes a filter and a projection; update uses operators like $set and $inc.

    find and findOne · Comparison: $eq, $gt, $lt, $in · Logical: $and, $or · Array operators: $elemMatch, $all · Projection · updateOne, $set, $inc, $push, upserts · deleteMany

  3. Data modelling

    Model for how the application reads. Embed what is read together; reference what grows without bound.

    Embedding vs referencing · One-to-many patterns · Bucket, computed and outlier patterns · Schema validation with $jsonSchema · Document size limit (16 MB)

  4. Aggregation pipeline

    Pipelines pass documents through stages: filter, group, reshape, join and sort.

    $match, $group, $project, $sort, $limit · $unwind · $lookup joins · $addFields and expressions · $facet and $bucket · Performance: put $match early

  5. Indexes and operations

    Indexes, replica sets and sharding give speed, availability and scale.

    Single, compound, multikey, text and TTL indexes · explain() · Replica sets and elections · Write concern and read preference · Sharding and shard keys · Backups and Atlas monitoring

How you are assessed

Every module ends with a check question. The final exam has 15 theory questions and 3 hands-on tasks solved in the tool this course teaches; pass at 70% for a certificate anyone can verify online.

Where it sits in the Databases track

  1. SQL Fundamentals (Any Database) Beginner
  2. SQL with MySQL Beginner → Advanced
  3. MongoDB (this course) Beginner → Advanced
  4. GraphQL for Data Intermediate
  5. Oracle SQL & PL/SQL Intermediate
  6. Graph Databases with Neo4j Intermediate
  7. Microsoft SQL Server & T-SQL Intermediate → Advanced
  8. PostgreSQL Intermediate → Advanced
  9. NoSQL: Redis, Cassandra, DynamoDB & Elasticsearch Intermediate → Advanced
  10. Database Management & Administration Advanced

Part of these career paths

Start learning

Questions and answers

How long does the MongoDB course take?
About 24 hours across 5 modules, at your own pace. At five hours a week most learners finish in 5 weeks.
Is MongoDB free?
The first module is a free preview. The full course is part of Pro, or a friend's invite can unlock its whole track for up to three months using referral points.
Do I get a certificate for MongoDB?
Yes. Pass the final exam (15 theory questions and 3 hands-on tasks in 40 minutes, pass mark 70%) and you get a certificate with an ID that anyone can verify online.
What should I know before starting MongoDB?
It follows SQL with MySQL in the Databases track. If Databases is new to you, start with SQL Fundamentals (Any Database).
What will I be able to do after MongoDB?
Model documents for access patterns; Query and update with operators; Write aggregation pipelines.