Free ebook on creating and maintaining MongoDB databases, from installation and CRUD to indexing, security, replication, sharding, and integrations.
Free ebook + audiobook content
-
1. Introduction to MongoDB
+ Exercise: What is MongoDB and why is it a popular choice? 3 minutes -
2. MongoDB Installation
+ Exercise: What is the process to install MongoDB on MacOS? 4 minutes -
3. Basic concepts of MongoDB
+ Exercise: What is replication in the context of MongoDB? 3 minutes -
4. MongoDB Architecture
+ Exercise: Which of the following components of the MongoDB architecture is the query router for MongoDB sharded clusters? 3 minutes -
5. Understanding BSON in MongoDB
+ Exercise: What is BSON and why is it important for MongoDB? 4 minutes -
6. Working with databases in MongoDB
+ Exercise: Which of the following statements is true about MongoDB? 3 minutes -
7. Creating collections in MongoDB
+ Exercise: What is the role of collections in MongoDB? 3 minutes
-
8. Inserting documents into MongoDB
+ Exercise: What is the procedure for inserting data into MongoDB? 4 minutes -
8.1. Inserting documents into MongoDB: Introduction to MongoDB
+ Exercise: What is the function of the 'insert' method in MongoDB? 3 minutes -
8.2. Inserting documents into MongoDB: Installing MongoDB
+ Exercise: What is the process for inserting documents into MongoDB? 3 minutes -
8.3. Inserting documents into MongoDB: Configuring the MongoDB environment
+ Exercise: What is the process for inserting documents into a MongoDB database? 3 minutes -
8.4. Inserting documents into MongoDB: Understanding the MongoDB document structure
+ Exercise: What is the structure of a document in MongoDB and how are documents inserted? 3 minutes -
8.5. Inserting documents into MongoDB: Creating a database in MongoDB
+ Exercise: What is the procedure for creating a database and inserting documents into MongoDB? 3 minutes -
8.6. Inserting documents into MongoDB: Creating collections in MongoDB
+ Exercise: What is the process for creating a collection and inserting a document into MongoDB? 3 minutes -
8.7. Inserting documents into MongoDB: Inserting simple documents into MongoDB
+ Exercise: Which of the following methods is used to insert a single document into MongoDB? 4 minutes -
8.8. Inserting documents into MongoDB: Inserting complex documents into MongoDB
+ Exercise: Which of the following methods is used to insert multiple documents at once into MongoDB? 3 minutes -
8.9. Inserting documents into MongoDB: Inserting multiple documents into MongoDB
+ Exercise: What is the function of the `insertMany()` method in MongoDB and how does it work? 3 minutes -
8.10. Inserting documents into MongoDB: Using the $set operator to insert fields into documents
+ Exercise: What is the function of the $set operator in MongoDB? 4 minutes -
8.11. Inserting documents into MongoDB: Using the $unset operator to remove document fields
+ Exercise: What is the function of the $unset operator in MongoDB? 3 minutes -
8.12. Inserting documents into MongoDB: Validating documents in MongoDB
+ Exercise: Which of the following methods is used to insert multiple documents at once into MongoDB? 3 minutes -
8.13. Inserting documents into MongoDB: Working with data types in MongoDB
+ Exercise: What does the insert() method do in MongoDB? 4 minutes -
8.14. Inserting documents into MongoDB: Inserting documents through an application
+ Exercise: What is the process for inserting documents into MongoDB through an application? 3 minutes -
8.15. Inserting documents into MongoDB: Handling errors when inserting documents
+ Exercise: What are some common errors that can occur when inserting documents into MongoDB and how can they be handled? 4 minutes -
8.16. Inserting documents into MongoDB: Optimizing performance when inserting documents
+ Exercise: Which of the following methods is used to insert multiple documents at once into MongoDB in order to optimize performance? 3 minutes -
8.17. Inserting documents into MongoDB: Security when inserting documents
+ Exercise: Which of the following is NOT a best practice for securely inserting documents into MongoDB? 3 minutes
-
9. Querying documents in MongoDB
+ Exercise: What is the function of the find() method in MongoDB and how is it used? 4 minutes -
9.1. Querying documents in MongoDB: Introduction to querying documents in MongoDB
+ Exercise: What method is used to query documents in MongoDB and what does it return? 3 minutes -
9.2. Querying documents in MongoDB: Using the find() method
+ Exercise: What is the function of the find() method in MongoDB? 3 minutes -
9.3. Querying documents in MongoDB: Using the findOne() method
+ Exercise: Which MongoDB method is used to return a single document that meets the specified criteria, and if multiple documents match the criteria, returns the first document according to the natural order? 3 minutes -
9.4. Querying documents in MongoDB: Querying documents using query operators
+ Exercise: What is the role of query operators in MongoDB? 3 minutes -
9.5. Querying documents in MongoDB: Querying documents using logical operators
+ Exercise: What are the logical operators that can be used to perform queries in MongoDB and what is the function of each one? 3 minutes -
9.6. Querying documents in MongoDB: Querying documents using array operators
+ Exercise: Which of the following array operators in MongoDB is used to select documents in a collection where the field is an array of a certain size? 3 minutes -
9.7. Querying documents in MongoDB: Querying documents using element operators
+ Exercise: In MongoDB, what is the function of the $exists element operator and how is it used? 3 minutes -
9.8. Querying documents in MongoDB: Querying documents using evaluation operators
+ Exercise: Which of the following evaluation operators in MongoDB is used to find documents where the value of a field is equal to any value in a specified array? 3 minutes -
9.9. Querying documents in MongoDB: Querying documents using regular expressions
+ Exercise: What is the role of regular expressions in MongoDB queries and how can they be used? 3 minutes -
9.10. Querying documents in MongoDB: Ordering query results
+ Exercise: Which of the following methods is used to order the results of a query against a MongoDB database? 3 minutes -
9.11. Querying documents in MongoDB: Limitation and skipping of query results
+ Exercise: What is a query in MongoDB and how can you limit or skip query results? 3 minutes -
9.12. Querying documents in MongoDB: Projecting fields in queries
+ Exercise: What is a query in MongoDB and how is it performed? 3 minutes -
9.13. Querying documents in MongoDB: Using indexes to optimize queries
+ Exercise: What is the role of indexes in MongoDB and how do they influence query efficiency? 3 minutes -
9.14. Querying documents in MongoDB: Query explanation and analysis
+ Exercise: What is the function of the find() method in MongoDB? 3 minutes -
9.15. Querying documents in MongoDB: Querying documents in clustered collections
+ Exercise: What is the 'find()' method in MongoDB and how is it used to query documents in grouped collections? 3 minutes -
9.16. Querying documents in MongoDB: Querying documents in built-in collections
+ Exercise: Which operator is used to query documents in built-in collections in MongoDB? 3 minutes -
9.17. Querying documents in MongoDB: Querying documents using the aggregate() method
+ Exercise: Which of the following statements best describes the aggregate() method in MongoDB? 3 minutes
-
10. Updating documents in MongoDB
+ Exercise: Which of the following commands is used to update documents in MongoDB and what is its syntax? 3 minutes -
10.1. Updating Documents in MongoDB: Introduction to Updating Documents in MongoDB
+ Exercise: What is the purpose of the $set operator in MongoDB? 3 minutes -
10.2. Updating documents in MongoDB: Understanding the updateOne command in MongoDB
+ Exercise: What is the function of the "updateOne" command in MongoDB? 3 minutes -
10.3. Updating documents in MongoDB: Understanding the updateMany command in MongoDB
+ Exercise: What does the updateMany command in MongoDB allow you to do? 3 minutes -
10.4. Updating documents in MongoDB: Working with update operators in MongoDB
+ Exercise: What is the role of update operators in MongoDB and how are they used? 4 minutes -
10.5. Updating documents in MongoDB: Updating embedded documents in MongoDB
+ Exercise: Which operator is used to update embedded documents in MongoDB and what is its function? 3 minutes -
10.6. Updating documents in MongoDB: Conditional updating documents in MongoDB
3 minutes -
10.7. Updating documents in MongoDB: Using the findAndModify command in MongoDB
+ Exercise: What is the function of the findAndModify command in MongoDB? 4 minutes -
10.8. Updating documents in MongoDB: Best practices for updating documents in MongoDB
+ Exercise: Which of the following is a best practice for updating documents in MongoDB? 3 minutes -
10.9. Updating documents in MongoDB: Troubleshooting common issues when updating documents in MongoDB
+ Exercise: What are some common issues developers may encounter when updating documents in MongoDB and how can they be resolved? 3 minutes -
11. Deleting documents in MongoDB
+ Exercise: Which of the following statements is true about deleting documents in MongoDB? 3 minutes -
11.1. Deleting Documents in MongoDB: Introduction to Deleting Documents in MongoDB
+ Exercise: What is the function of the remove() method in MongoDB? 3 minutes -
11.2. Deleting documents in MongoDB: Commands for deleting documents
+ Exercise: Which of the following commands is used to delete a single document that matches a specific condition in MongoDB? 3 minutes -
11.3. Deleting documents in MongoDB: Using the 'remove' command in MongoDB
+ Exercise: What is the function of the 'remove' command in MongoDB and how is it used? 3 minutes -
11.4. Deleting documents in MongoDB: Deleting single and multiple documents
+ Exercise: What is the function of the deleteOne() method in MongoDB and how is it used? 3 minutes -
11.5. Deleting documents in MongoDB: Deleting documents with conditions
+ Exercise: What is the difference between deleteOne() and deleteMany() methods in MongoDB? 3 minutes -
11.6. Deleting documents in MongoDB: Deleting entire collections
+ Exercise: In MongoDB, which method is used to delete all documents from a collection and how is it used? 3 minutes -
11.7. Deleting documents in MongoDB: Handling errors during deletion
+ Exercise: Which of the following methods is used to delete all documents that match the specified criteria in a MongoDB database? 3 minutes -
11.8. Deleting documents in MongoDB: Best practices for deleting documents
+ Exercise: What is the difference between the deleteOne() and findOneAndDelete() methods in MongoDB? 3 minutes -
11.9. Deleting documents in MongoDB: Impact of deleting documents on database performance
3 minutes -
11.10. Deleting Documents in MongoDB: Recovering Deleted Documents
+ Exercise: What are the strategies you can use to recover deleted documents in MongoDB? 3 minutes -
11.11. Deleting Documents in MongoDB: Backup Tools Before Deletion
+ Exercise: Which of the following backup tools in MongoDB allows point-in-time recovery and can be configured to take backups every 6 hours, 12 hours, or 24 hours? 3 minutes
-
12. Indexing in MongoDB
+ Exercise: What is the role of indexes in MongoDB? 3 minutes -
13. Aggregation Operations in MongoDB
+ Exercise: Which of the following statements about aggregation operations in MongoDB is correct? 3 minutes -
14. Working with aggregation pipeline
+ Exercise: Which of the following statements best describes the aggregation pipeline in MongoDB? 3 minutes -
15. Using Map-Reduce in MongoDB
+ Exercise: What is Map-Reduce and how is it used in MongoDB? 3 minutes -
16. Implementing transactions in MongoDB
+ Exercise: When did MongoDB introduce support for multi-document transactions? 3 minutes -
17. User and role management in MongoDB
+ Exercise: Which command is used to create a new user in MongoDB and how does it work? 3 minutes -
18. Security Implementation in MongoDB
+ Exercise: What authentication mechanisms are supported by MongoDB? 3 minutes -
19. Backup and Restore in MongoDB
+ Exercise: What are the main considerations when performing backups and restores in MongoDB? 3 minutes -
20. Performance Monitoring in MongoDB
+ Exercise: Which of the following is a tool or feature that MongoDB offers to monitor database performance? 3 minutes -
21. Query Optimization in MongoDB
+ Exercise: How important is query optimization in managing MongoDB databases? 3 minutes
-
22. Data Replication in MongoDB
+ Exercise: What is the role of data replication in MongoDB? 3 minutes -
23. Setting up a sharding cluster in MongoDB
+ Exercise: What is sharding and how is it used in MongoDB? 3 minutes -
24. Maintaining a sharding cluster in MongoDB
+ Exercise: What are the three main components of a sharding cluster in MongoDB? 3 minutes -
25. Troubleshooting common problems in MongoDB
+ Exercise: What are some common problems that may be encountered when using MongoDB and their possible solutions? 3 minutes -
26. Integration of MongoDB with other technologies
+ Exercise: Which of the following statements is true about MongoDB's integration with other technologies? 3 minutes -
27. MongoDB Atlas: Database as a Service
+ Exercise: What is the main function of MongoDB Atlas? 3 minutes -
28. Data migration to MongoDB
+ Exercise: What is the correct sequence of steps involved in migrating data to MongoDB? 3 minutes -
29. Application Development with MongoDB
+ Exercise: Which of the following statements is true about MongoDB? 3 minutes -
30. Unit and Integration Testing with MongoDB
+ Exercise: What are some of the features that unit and integration tests can check in the context of MongoDB? 3 minutes -
31. MongoDB and the Python language
+ Exercise: What is the function of the PyMongo library in the Python programming language? 3 minutes -
32. MongoDB and the JavaScript language
+ Exercise: What is the relationship between MongoDB and JavaScript and what are the advantages of this combination for developers? 3 minutes -
33. MongoDB and the PHP language
+ Exercise: What is the main advantage of combining MongoDB and PHP in web application development? 3 minutes -
34. MongoDB and the Ruby language
+ Exercise: What is the function of the "gem install mongo" command in the context of integrating MongoDB with Ruby? 4 minutes
About the free ebook with audio
Creation and Maintenance of MongoDB Databases: From Basic to Advanced
This free ebook provides a practical path to building, managing, and maintaining MongoDB databases. It starts with the foundations of document-oriented data storage, installation, BSON, collections, and database architecture, then progresses to real-world database operations.
Build confident MongoDB skills
Learn how to insert, query, update, and delete documents while working with embedded data, validation rules, data types, error handling, and application-based operations. The material explains how to use MongoDB commands and operators thoughtfully, helping you make safer and more efficient data changes.
Improve performance and reliability
Explore indexes, query analysis, aggregation pipelines, transactions, backups, restoration, monitoring, replication, and sharding. These topics help you understand how MongoDB systems are optimized, scaled, protected, and maintained in production environments.
Work with MongoDB in applications
The ebook also covers MongoDB Atlas, data migration, testing, security, user roles, troubleshooting, and integration with popular programming languages such as Python, JavaScript, PHP, and Ruby.
What you will be able to do
- Create databases and collections with a clear document structure.
- Write efficient queries using filters, operators, projections, sorting, and indexes.
- Manage data safely with update, deletion, validation, and backup practices.
- Design scalable MongoDB deployments with replication and sharding.
- Connect MongoDB to applications and development workflows.
Designed for learners who want a structured reference from first setup through advanced administration, this ebook combines essential concepts with practical maintenance techniques for modern database projects.
How do MongoDB indexes improve query performance?
Indexes reduce the number of documents MongoDB must scan, making filtered and sorted queries faster.
What is the difference between MongoDB replication and sharding?
Replication copies data for availability, while sharding distributes data across servers for horizontal scaling.
How can deleted MongoDB documents be recovered?
Recovery usually requires a backup, point-in-time restore setup, or replication-based recovery strategy.
This ebook/audiobook includes:
5 hours and 21 minutes of audio content
Digital certificate of course completion (Free)
Exercises to train your knowledge
100% free, from content to certificate
Ready to get started?
In the app you will also find...
Over 5,000 free courses
Programming, English, Digital Marketing and much more! Learn whatever you want, for free.
Study plan with AI
Our app's Artificial Intelligence can create a study schedule for the course you choose.
From zero to professional success
Improve your resume with our free Certificate and then use our Artificial Intelligence to find your dream job.
You can also use the QR Code or the links below.























