Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

Microsoft

Design data models and optimize performance in Azure DocumentDB

Microsoft via Microsoft Learn

Overview

Google, IBM & Meta Certificates – 40% Off
One plan covers every Professional Certificate on Coursera.
Unlock All Certificates
  • Explore the core features, architecture, and use cases for Azure DocumentDB, a fully managed MongoDB-compatible database service.

    After completing this module, you'll be able to:

    • Describe what Azure DocumentDB is and how it relates to the open-source DocumentDB project.
    • Explain the vCore-based architecture, compute tiers, and scaling options.
    • Identify scenarios and workloads where Azure DocumentDB is the right choice.
  • Learn how to provision an Azure DocumentDB cluster, connect with MongoDB tools, and configure compute, storage, and security settings.

    After completing this module, you'll be able to:

    • Create an Azure DocumentDB cluster in the Azure portal.
    • Connect to the cluster using MongoDB Shell and connection strings.
    • Configure cluster settings including compute tiers, storage, and network security.
  • Write queries to create, read, update, and delete documents in Azure DocumentDB. Build aggregation pipelines to transform and analyze data.

    After completing this module, you'll be able to:

    • Insert documents into collections using insertOne and insertMany.
    • Query and filter documents using comparison, logical, and element operators.
    • Update and delete documents using field and array update operators.
    • Build aggregation pipelines to group, join, and summarize data.
  • Build applications that connect to Azure DocumentDB using the official MongoDB drivers for Python, .NET, and JavaScript. Perform CRUD operations programmatically and integrate database operations into your application code.

    After completing this module, you'll be able to:

    • Connect to an Azure DocumentDB cluster using the MongoDB driver for Python, .NET, or JavaScript.
    • Perform CRUD operations programmatically using your preferred language's driver.
    • Handle connection management, error handling, and resource cleanup in application code.
  • Model data relationships effectively in Azure DocumentDB. Analyze entity relationships using access patterns and cardinality, apply the embed-vs-reference decision framework, and implement one-to-one, one-to-many, and many-to-many relationship patterns with practical e-commerce examples.

    After completing this module, you'll be able to:

    • Analyze entity relationships by identifying cardinality, access patterns, and update frequency.
    • Apply the embed-vs-reference decision framework to determine the optimal modeling strategy.
    • Implement one-to-one, one-to-many, and many-to-many relationship patterns including hybrid approaches.
  • Apply 10 schema design patterns to solve data modeling challenges in Azure DocumentDB. Organize documents, precompute results, manage arrays, group time-series data, evolve schemas, and archive old data.

    After completing this module, you'll be able to:

    • Apply the inheritance, computed, and approximation patterns to optimize document structure and read/write performance.
    • Use the extended reference and schema versioning patterns to reduce cross-collection lookups and manage schema evolution.
    • Implement the single collection, subset, bucket, outlier, and archive patterns for complex data scenarios.
  • Identify and fix common schema design mistakes in Azure DocumentDB, including unbounded arrays, collection sprawl, unnecessary indexes, over-normalization, and case-sensitivity issues.

    After completing this module, you'll be able to:

    • Identify the unbounded arrays and collection sprawl anti-patterns and apply structural fixes.
    • Recognize unnecessary indexes and over-normalization, and apply performance-focused solutions.
    • Detect and resolve case-sensitivity issues that cause duplicate data and failed lookups.
  • Optimize query performance in Azure DocumentDB by building effective indexing strategies. Create single-field, compound, multi-key, and specialized indexes. To maintain performance at scale, analyze query execution with the explain() command and monitor index health.

    After completing this module, you'll be able to:

    • Explain how indexes work internally and how they affect read and write performance.
    • Create single-field, compound, multi-key, and specialized indexes based on query patterns.
    • Use the explain() command to analyze query execution and identify performance bottlenecks.
    • Monitor and optimize indexes for production workloads.

Syllabus

  • Introduction to Azure DocumentDB
    • Introduction
    • What is Azure DocumentDB?
    • Explore capabilities and architecture
    • When to use Azure DocumentDB
    • Knowledge check
    • Summary
  • Create and configure an Azure DocumentDB cluster
    • Introduction
    • Create a cluster in the Azure portal
    • Connect to your cluster
    • Configure compute and storage
    • Configure security and networking
    • Exercise: Create and connect to a cluster
    • Knowledge check
    • Summary
  • Query and manipulate data in Azure DocumentDB
    • Introduction
    • Insert and create documents
    • Query and filter documents
    • Update and delete documents
    • Build aggregation pipelines
    • Exercise - Query and manipulate e-commerce data
    • Knowledge check
    • Summary
  • Build applications with Azure DocumentDB SDKs
    • Introduction
    • Connect to Azure DocumentDB with MongoDB drivers
    • Perform CRUD operations with MongoDB drivers
    • Manage connections and handle errors
    • Exercise - Build a product management application
    • Knowledge check
    • Summary
  • Model data relationships in Azure DocumentDB
    • Introduction
    • Identify and analyze data relationships
    • Choose between embedding and referencing
    • Model one-to-one and one-to-many relationships
    • Model many-to-many relationships
    • Exercise - Design a relationship model for an e-commerce platform
    • Knowledge check
    • Summary
  • Apply schema design patterns in Azure DocumentDB
    • Introduction
    • Organize and optimize documents
    • Reduce lookups and manage schema evolution
    • Handle complex data scenarios
    • Exercise - Apply patterns to the e-commerce platform
    • Knowledge check
    • Summary
  • Recognize and avoid schema design anti-patterns in Azure DocumentDB
    • Introduction
    • Avoid unbounded arrays and collection sprawl
    • Identify unnecessary indexes and over-normalization
    • Handle case sensitivity in queries and data
    • Exercise - Identify and fix anti-patterns
    • Knowledge check
    • Summary
  • Optimize query performance using indexes in Azure DocumentDB
    • Introduction
    • Understand how indexes work
    • Create single-field and compound indexes
    • Work with multi-key and specialized index types
    • Analyze query performance with explain()
    • Monitor and optimize indexes
    • Exercise - Build an indexing strategy for the e-commerce platform
    • Knowledge check
    • Summary

Reviews

Start your review of Design data models and optimize performance in Azure DocumentDB

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.