Create a New User Account on Amazon DocumentDB

45 minutes
  • 3 Learning Objectives

About this Hands-on Lab

In this lab, you will create a user account on Amazon DocumentDB. After completing this lab, you will have hands-on experience with creating users and granting them access on Amazon DocumentDB.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Connect to the Cluster

Connect to the DocumentDB cluster using the mongosh shell.

Create a Role

Create a role that grants find on all collections in the QA database.

Create a User

Create a new user account, and grant it the newly created role.

Additional Resources

You are working as a database administrator (DBA) and have been tasked with creating a user account for a new member of the QA department. The user should only have the find action for the QA database.

To accomplish this you will need to complete the following tasks:

  • Connect to the cluster.
  • Create a role.
  • Create a user account.

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?