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
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
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
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)
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
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
- SQL Fundamentals (Any Database) Beginner
- SQL with MySQL Beginner → Advanced
- MongoDB (this course) Beginner → Advanced
- GraphQL for Data Intermediate
- Oracle SQL & PL/SQL Intermediate
- Graph Databases with Neo4j Intermediate
- Microsoft SQL Server & T-SQL Intermediate → Advanced
- PostgreSQL Intermediate → Advanced
- NoSQL: Redis, Cassandra, DynamoDB & Elasticsearch Intermediate → Advanced
- Database Management & Administration Advanced
Part of these career paths
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.