Get in Touch
 Duration 48 hours

Course Outline

Introduction and MongoDB Architecture

Course Content:

  • The history and current ecosystem of MongoDB
  • Common use cases, along with their advantages and limitations
  • High-level architecture: instances, processes, and configuration elements

Practical Exercises:

  • Interactive exploration by connecting via the Mongo Shell or CLI
  • Creation of a sample database and collection

Installation and Initial Configuration

Course Content:

  • Hardware and resource requirements
  • Installation procedures on Linux (deb/rpm), Windows, and macOS
  • Working with YAML configuration files (mongod.conf): dataDir, logDir, bindIp, and port settings
  • Startup options and managing services via systemd or service management tools

Practical Exercises:

  • Deploying instances on local VMs or Docker containers
  • Adjusting configurations to suit development versus production needs
  • Verifying secure remote connectivity

Data Modelling and Basic Operations

Course Content:

  • BSON documents, collections, and databases
  • Modelling strategies: embedding vs referencing, and common data design patterns
  • Introduction to basic indexes
  • Executing operations via the Mongo Shell and scripting examples using drivers

Practical Exercises:

  • Modelling a real-world scenario, such as an inventory or billing system
  • Implementing CRUD operations
  • Applying schema validation using JSON Schema in MongoDB

Indexes and Performance

Course Content:

  • Types of indexes: simple, compound, multikey, text, and geospatial
  • Utilising explain() to analyse performance metrics
  • The impact of indexes on write performance and memory usage

Practical Exercises:

  • Creating collections populated with test data
  • Testing queries with and without indexes and interpreting the output of explain()
  • Optimising indexes based on specific access patterns

Security

Course Content:

  • Authentication mechanisms: SCRAM, and an introduction to LDAP/Kerberos
  • Defining users and creating custom roles
  • Implementing TLS/SSL for secure communication between clients and servers
  • At-rest encryption: key configuration
  • Fundamentals of audit logging

Practical Exercises:

  • Creating users with minimal necessary privileges
  • Configuring TLS on local instances
  • Testing for unauthorized access and reviewing audit logs

Replication and High Availability

Course Content:

  • Core replication concepts: Primary, Secondary nodes, and the oplog
  • Replica set configuration: initiation, membership management, and arbitration
  • Monitoring status and observing election processes
  • Maintenance tasks: adding/removing members and reassigning priorities

Practical Exercises:

  • Deploying a three-node replica set (locally or on VMs)
  • Simulating primary failure and observing the failover process
  • Rebuilding secondary nodes and recovering replicas

Sharding and Horizontal Scalability

Course Content:

  • Sharding concepts: shard keys, config servers, and the mongos router
  • Selecting appropriate shard keys and understanding associated risks
  • Deploying config servers, shards, and mongos instances
  • Rebalancing data and managing chunk migration

Practical Exercises:

  • Configuring a basic sharded cluster
  • Inserting large-scale datasets and observing data distribution
  • Exploring the implications and limitations of changing shard keys

Backup, Restore, and Disaster Recovery

Course Content:

  • Native tools: mongodump/mongorestore and filesystem snapshots
  • Managing backups in replica sets and sharded clusters
  • Basic usage of Cloud Manager/Ops Manager for backup management
  • Disaster Recovery (DR) planning: understanding RTO and RPO

Practical Exercises:

  • Performing backup and restore operations on a test database
  • Simulating a failure and executing recovery from backup
  • Designing a DR plan for a hypothetical scenario

Monitoring and Alerts

Course Content:

  • Monitoring tools: mongostat, mongotop, and Cloud Manager/Atlas Monitoring
  • Integration concepts with Prometheus and Grafana
  • Key metrics to track: CPU, memory, I/O, oplog size, and latencies
  • Alerting: defining thresholds and configuring notifications

Practical Exercises:

  • Deploying a local or container-based monitoring agent
  • Setting up basic dashboards with sample metrics
  • Simulating system load and observing alert triggers

Maintenance, Upgrades, and Best Practices

Course Content:

  • Upgrade strategies for replica sets and sharded clusters
  • Data cleanup, compaction, and integrity checks
  • Reviewing logs and conducting regular audits
  • Automating routine tasks using scripts, cronjobs, Ansible, or Terraform
  • Establishing data retention and archiving policies

Practical Exercises:

  • Simulating minor and major upgrades in a controlled environment
  • Creating automation scripts for backup and monitoring workflows
  • Developing a periodic maintenance checklist

Requirements

  • A solid grasp of fundamental database concepts and data structures.
  • Proficiency in using the Linux command line.
  • A basic understanding of networking principles and system administration.

Target Audience

  • Database administrators and system engineers actively working with MongoDB.
  • DevOps and infrastructure teams responsible for deploying and maintaining MongoDB environments.
  • Developers seeking to deepen their understanding of MongoDB internals and deployment best practices.

Number of participants


Price per participant

Testimonials (2)

Provisional Upcoming Courses (Require 5+ participants)

Related Categories