Course Outline
Module 1: Introduction and MongoDB Architecture (4h)
Content:
- History and the MongoDB ecosystem
- Common use cases, advantages, and limitations
- General architecture: instances, processes, and configuration
Practice:
- Interactive exploration: connecting via Mongo Shell/CLI
- Creating a sample database and collection
Module 2: Installation and Initial Configuration (6h)
Content:
- Hardware and resource requirements
- Installation on Linux (deb/rpm), Windows, and macOS
- YAML configuration files (mongod.conf): dataDir, logDir, bindIp, port
- Startup options and systemd/service management
Practice:
- Deploying instances on local VMs or Docker containers
- Tuning configurations for development versus production environments
- Verifying secure remote connectivity
Module 3: Data Modeling and Basic Operations (5h)
Content:
- BSON documents, collections, and databases
- Modeling strategies: embedding vs. referencing; data design patterns
- Foundations of basic indexes
- Executing operations with Mongo Shell and scripting using drivers
Practice:
- Designing a data model for a use case, such as an inventory or billing system
- Implementing CRUD operations
- Applying schema validation using JSON Schema in MongoDB
Module 4: Indexes and Performance (4h)
Content:
- Simple, compound, multikey, text, and geospatial indexes
- Utilizing explain() for query analysis and metric interpretation
- The impact of indexes on write performance and memory usage
Practice:
- Populating collections with test data
- Testing queries with and without indexes; analyzing explain() output
- Optimizing indexes based on specific access patterns
Module 5: Security (5h)
Content:
- Authentication mechanisms: SCRAM, LDAP/Kerberos (introduction)
- Defining users and custom roles
- Implementing TLS/SSL between clients and servers
- At-rest encryption: key configuration
- Basic audit logging
Practice:
- Creating users with the principle of least privilege
- Configuring TLS in local instances
- Testing unauthorized access attempts and reviewing audit logs
Module 6: Replication and High Availability (6h)
Content:
- Replication concepts: Primary, Secondary, and oplog
- Replica set configuration: initiation, membership, and arbitration
- Monitoring cluster status and elections
- Maintenance tasks: adding/removing members and reassigning priorities
Practice:
- Deploying a three-node replica set (local or VM-based)
- Simulating primary node failure to observe failover behavior
- Rebuilding secondary nodes and recovering replicas
Module 7: Sharding and Horizontal Scalability (6h)
Content:
- Sharding concepts: shard key, config servers, and mongos router
- Shard key selection and associated risks
- Deploying config servers, shards, and mongos
- Rebalancing and chunk migration
Practice:
- Configuring a basic sharded cluster
- Inserting large-scale data to observe distribution
- Exploring shard key changes and understanding their limitations
Module 8: Backup, Restore, and Disaster Recovery (4h)
Content:
- Native tools: mongodump/mongorestore and filesystem snapshots
- Backup strategies for replica sets and sharded clusters
- Introduction to Cloud Manager/Ops Manager for backup management
- Disaster Recovery (DR) planning: RTO and RPO
Practice:
- Performing backup and restore operations on a test database
- Simulating a failure scenario and recovering from backup
- Developing a DR plan for a hypothetical business case
Module 9: Monitoring and Alerts (4h)
Content:
- Monitoring tools: mongostat, mongotop, and Cloud Manager/Atlas Monitoring
- Integration with Prometheus + Grafana (concepts and examples)
- Key metrics: CPU, memory, I/O, oplog size, and latencies
- Alerting: defining thresholds and notification workflows
Practice:
- Deploying a local or container-based monitoring agent
- Setting up basic dashboards with sample metrics
- Simulating load to trigger and observe alerts
Module 10: Maintenance, Upgrades, and Best Practices (4h)
Content:
- Upgrade strategies for replica sets and sharded clusters
- Data cleanup, compaction, and integrity checks
- Reviewing logs and conducting regular audits
- Automating routine tasks (scripts, cronjobs, Ansible, Terraform)
- Data retention and archiving policies
Practice:
- Simulating minor and major upgrades in a controlled environment
- Creating automation scripts for backup and monitoring
- Developing a periodic maintenance checklist
Summary and Next Steps
Requirements
- A solid understanding of general database concepts and data structures
- Proficiency with Linux command-line usage
- Basic knowledge of networking and system administration
Target Audience
- Database administrators and system engineers managing MongoDB environments
- DevOps and infrastructure teams responsible for deploying and maintaining MongoDB
- Developers seeking insight into MongoDB internals and best practices for deployment
Testimonials (2)
The pace of talking and explanation.
Marko Skokovic - PWO by Lottomatica Serbia
Course - MongoDB for Administrators
Sir Jose is cool and explains every detail of the commands. We appreciate the time he takes to share his knowledge with us, and it truly shows that he is an expert in this field.