Optimizing Azure Cosmos DB to Reduce Cost

1 hour
  • 3 Learning Objectives

About this Hands-on Lab

As modern, cloud-based apps have evolved, they’ve required data storage to adapt with them. Services such as Azure Cosmos DB have risen to the challenge by providing a fully managed, multi-model, globally distributed NoSQL database.

In this hands-on lab scenario, your organization (Awesome Company) is developing a next-generation video game that will rely heavily on the Cloud. In order to achieve guaranteed performance around the globe, you’ve chosen Azure Cosmos DB as the data backend. Management has asked you to reduce the cost of the `Players` database as much as possible while still maintaining essential functionality.

Performing the actions of this lab will help you become familiar with how to tune Azure Cosmos DB for the purpose of optimizing cost efficiency.

**Note: Because the Azure Cosmos DB account is a complex and pre-provisioned environment, it will take significant time for the lab to start up. Please be patient and make sure you have at least an hour of time for completion of the lab.**

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Evaluate Region Distribution

Review the current regions currently being used and remove any that are not part of the essential criteria.

Evaluate the Index Policy

Review the index policy on the Profiles container and adjust it to focus on the essential criteria.

Evaluate the Throughput Model

Review the current throughput settings and adjust them to be in compliance with the essential criteria.

Additional Resources

In this hands-on lab scenario, your organization (Awesome Company) is developing a next-generation video game that will rely heavily on the Cloud. In order to achieve guaranteed performance around the globe, you've chosen Azure Cosmos DB as the data backend. Management has asked you to reduce the cost of the Players database as much as possible while still maintaining essential functionality.

The team worked together and determined that the following criteria are essential for this database:

  • Maintain a presence in both the United States and Europe.
  • Optimize for queries that filter against the gamerID and isOnline properties in the Profiles container.
  • Use autoscale throughput to take advantage of cost savings during low traffic times.

Feel free to follow the step-by-step instructions in the lab guide, view the solution video, or jump right in on your own. Use the method most helpful for you as a learner.

Note: Because the Azure Cosmos DB account is a complex and pre-provisioned environment, it will take significant time for the lab to start up. Please be patient and make sure you have at least an hour of time for completion of the lab.

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?