0
0
Azurecloud~30 mins

Cosmos DB overview and use cases in Azure - Mini Project: Build & Apply

Choose your learning style9 modes available
Cosmos DB Overview and Use Cases
📖 Scenario: You are working as a cloud architect for a company that wants to store and access data globally with low latency. They want to understand how Azure Cosmos DB can help them achieve this goal.
🎯 Goal: Build a simple Azure Cosmos DB setup with a database and container, and configure it for global distribution to demonstrate its use cases.
📋 What You'll Learn
Create an Azure Cosmos DB account with Core (SQL) API
Create a database named RetailDB
Create a container named Products with partition key /category
Configure the Cosmos DB account for multi-region write to enable global distribution
💡 Why This Matters
🌍 Real World
Companies use Cosmos DB to build applications that need fast, global access to data, such as retail websites, gaming platforms, and IoT solutions.
💼 Career
Cloud architects and developers use Cosmos DB to design scalable, globally distributed databases that meet performance and availability requirements.
Progress0 / 4 steps
1
Create Cosmos DB account with Core (SQL) API
Create an Azure Cosmos DB account named myRetailAccount using the Core (SQL) API.
Azure
Need a hint?

Use the Azure CLI command az cosmosdb create with the --kind GlobalDocumentDB option for Core (SQL) API.

2
Create database RetailDB
Create a database named RetailDB in the Cosmos DB account myRetailAccount.
Azure
Need a hint?

Use az cosmosdb sql database create with the account name and database name.

3
Create container Products with partition key /category
Create a container named Products inside the database RetailDB with partition key /category.
Azure
Need a hint?

Use az cosmosdb sql container create with the database name, container name, and partition key path.

4
Enable multi-region write for global distribution
Configure the Cosmos DB account myRetailAccount to enable multi-region write to allow global distribution.
Azure
Need a hint?

Use az cosmosdb update with the --enable-multiple-write-locations true flag to enable multi-region writes.