Add and Remove Shards on MongoDB Cluster

1.25 hours
  • 2 Learning Objectives

About this Hands-on Lab

In this lab, students are asked to add and remove shards from a MongoDB sharded cluster. After completing this lab, students will have hands-on experience configuring, adding, and removing shards from a MongoDB sharded cluster.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Add a Shard

Configure a new shard named shard2 on the lab host with private IP 10.0.0.101.

Remove a Shard

Remove the shard named shard1 from the cluster.

Additional Resources

You are working as a DBA and are tasked with adding and removing shards from an existing sharded cluster. Thankfully, you've just completed an awesome Mongo Deep Dive course on acloud.guru that showed you how to do just this.

The following tasks are required to complete this hands-on lab:

  • Add a shard.
  • Configure a new shard replica set named shard2 on the lab host with private IP 10.0.0.101.
  • Remove a shard.
  • Remove the shard named shard1 from the cluster.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!

Get Started
Who’s going to be learning?