Azure Cosmos DB AI Developer Associate (DP-420) Fact Sheet¶
Building AI Applications with Azure Cosmos DB¶
Quick reference with embedded documentation links for the DP-420 exam. Renamed and re-scoped on 2026-10-06: formerly the Azure Cosmos DB Developer Specialty, now an Associate certification with AI retrieval, agent memory and Microsoft Fabric in scope.
Table of Contents¶
- Exam Overview
- Azure Cosmos DB Core Concepts
- Data Modeling for NoSQL
- Partitioning Strategies
- Consistency Levels
- SQL API and Queries
- Indexing Policies
- Change Feed
- SDKs and Development
- Performance Optimization
- Global Distribution
- Security and Access Control
- Monitoring and Diagnostics
- Cost Optimization
- Integration Patterns
- AI Retrieval and Agent Memory
- Fabric, Fleets and Resilience
Exam Overview¶
Exam Code: DP-420 Exam Name: Building AI Applications with Azure Cosmos DB Level: Associate (was Specialty until 2026-10-06) Duration: 100 minutes Passing Score: 700/1000 Cost: $165 USD (US price; varies by country) Valid For: 1 year, free online renewal
Official Exam Resources¶
- π Certification page - Exam details, registration, renewal, and the 2026-10-06 rename notice
- π DP-420 Study Guide - Skills measured as of 2026-10-06 and the change log against the old outline
- π DP-420 Course - Microsoft's official training course materials
Exam Domain Breakdown¶
- Design and develop database solutions (40-45%) - Resource model and SDK, database operations, data models and partitioning, change feed, Agent Kit
- Secure, optimize, and deploy database solutions (30-35%) - Security controls incl. dynamic data masking, availability and recovery incl. per-partition failover, performance and monitoring, fleets
- Implement AI and analytics capabilities (20-25%) - Full-text, vector and hybrid search, RAG, agent memory stores, Fabric mirroring and Cosmos DB in Fabric
Removed on 2026-10-06: server-side JavaScript (stored procedures, triggers, UDFs), data movement, DevOps, and the separate data distribution and integration domains. Links on those topics below are kept as background.
Azure Cosmos DB Core Concepts¶
Platform Overview¶
- π Azure Cosmos DB Overview - Introduction to Cosmos DB fundamentals and capabilities
- π Choose an API in Azure Cosmos DB - Guidance on selecting the right API for your workload
- π Multi-Model Database Capabilities - Understanding Cosmos DB's multi-model approach
- π Resource Model - Account, database, container, and item hierarchy
NoSQL API (Core SQL API)¶
- π NoSQL API Overview - Introduction to the native Cosmos DB NoSQL API
- π Getting Started with NoSQL API - Quick start guide for .NET developers
- π NoSQL API Best Practices - Performance and design best practices
- π JSON Document Support - Working with JSON documents in Cosmos DB
Alternative APIs¶
- π MongoDB API - MongoDB compatibility for easy migration
- π Cassandra API - Apache Cassandra compatibility with CQL support
- π Gremlin API - Graph database capabilities with Gremlin query language
- π Table API - Key-value store compatible with Azure Table Storage
Data Modeling for NoSQL¶
Design Principles¶
- π Data Modeling in Azure Cosmos DB - Fundamental principles of NoSQL data modeling
- π Modeling and Partitioning Best Practices - Real-world example of effective data modeling
- π Embed vs Reference Data - When to embed or reference related data
- π Modeling Relationships - Handling one-to-many and many-to-many relationships
Document Design Patterns¶
- π Document Structure Design - Designing effective document structures
- π Denormalization Strategies - When and how to denormalize for performance
- π Handling Large Documents - Working with the 2MB document size limit
- π Modeling Hierarchical Data - Techniques for nested and hierarchical data
Migration and Modeling Tools¶
- π Data Migration Guide - Migrating data to Cosmos DB
- π Azure Data Factory for Cosmos DB - ETL and data migration with ADF
Partitioning Strategies¶
Partition Key Fundamentals¶
- π Partitioning Overview - Complete guide to logical and physical partitioning
- π Choosing a Partition Key - Critical decision factors for partition key selection
- π Partition Key Best Practices - Real-world guidance for effective partition keys
- π Synthetic Partition Keys - Creating composite keys for better distribution
Advanced Partitioning¶
- π Hierarchical Partition Keys - Multi-level partitioning for improved distribution
- π Hot Partition Detection and Mitigation - Identifying and fixing hot partition issues
- π Partition Key Strategies by Workload - Patterns for different application types
- π Cross-Partition Queries - Understanding and optimizing cross-partition operations
Consistency Levels¶
Consistency Model Overview¶
- π Consistency Levels in Azure Cosmos DB - Comprehensive guide to all five consistency levels
- π Consistency Level Trade-offs - Understanding latency vs. consistency trade-offs
- π Choosing the Right Consistency Level - Decision guide for application requirements
- π Consistency Level Guarantees - Formal guarantees for each consistency level
Consistency Configuration¶
- π Configure Default Consistency - Setting account-level consistency defaults
- π Override Consistency Per Request - Request-level consistency configuration in SDKs
- π Session Consistency Deep Dive - Understanding session tokens and read-your-writes
- π Strong Consistency and Multi-Region - Limitations and considerations
SQL API and Queries¶
Query Language Fundamentals¶
- π SQL Query Getting Started - Introduction to Cosmos DB SQL query syntax
- π SQL Query Reference - Complete SQL query language reference
- π Query Execution - Executing queries using SDKs and Azure Portal
Advanced Query Features¶
- π JOIN Operations - Intra-document joins within Cosmos DB
- π Subqueries - Using subqueries for complex filtering
- π Aggregate Functions - COUNT, SUM, AVG, MIN, MAX operations
- π Array and Object Functions - Working with nested arrays and objects
- π String Functions - String manipulation in queries
- π Mathematical Functions - Numeric calculations and operations
Query Optimization¶
- π Query Performance Tuning - Best practices for efficient queries
- π Understanding Query Metrics - Analyzing RU consumption and execution time
- π Parameterized Queries - Using parameters for better performance and security
- π Pagination with Continuation Tokens - Efficiently handling large result sets
Indexing Policies¶
Indexing Fundamentals¶
- π Indexing Overview - How Cosmos DB automatic indexing works
- π Indexing Policies - Configuring and customizing indexing behavior
- π Index Types - Range, spatial, and composite indexes
Advanced Indexing¶
- π Composite Indexes - Optimizing multi-property queries with composite indexes
- π Spatial Indexes - Geospatial queries and location-based indexing
- π Include and Exclude Paths - Fine-tuning indexed properties for cost optimization
- π Indexing Mode Configuration - Consistent vs. none indexing modes
- π Vector Search and Indexing - AI and vector embedding search capabilities
Change Feed¶
Change Feed Fundamentals¶
- π Change Feed Overview - Introduction to real-time change notifications
- π Change Feed Design Patterns - Common architectural patterns using change feed
- π Change Feed Processing - Understanding the change feed processor library
Implementation and Integration¶
- π Change Feed in .NET SDK - Pull and push models for processing changes
- π Azure Functions Trigger for Cosmos DB - Serverless change feed processing
- π Change Feed Estimator - Monitoring change feed lag and health
- π Change Feed All Versions Mode - Capturing all versions and deletes
SDKs and Development¶
.NET SDK¶
- π Azure Cosmos DB .NET SDK v3 - Primary SDK for .NET applications
- π .NET SDK Best Practices - Performance optimization for .NET developers
- π Bulk Operations in .NET - High-throughput batch operations
- π Transactional Batch in .NET - ACID transactions within a partition
Java SDK¶
- π Azure Cosmos DB Java SDK v4 - Modern async SDK for Java developers
- π Java SDK Best Practices - Performance and connection management
- π Java SDK Performance Tips - Optimizing Java applications
Python SDK¶
- π Azure Cosmos DB Python SDK - Python client library for Cosmos DB
- π Python SDK Samples - Code examples for common Python scenarios
JavaScript/Node.js SDK¶
- π Azure Cosmos DB JavaScript SDK - Node.js and browser-based applications
- π JavaScript SDK Samples - Code examples for Node.js developers
SDK Common Patterns¶
- π Connection Management - Singleton client pattern and connection pooling
- π Retry Policies - Building resilient applications with automatic retries
- π Direct vs Gateway Mode - Connectivity modes and performance implications
Performance Optimization¶
Request Units (RU) Management¶
- π Request Units Explained - Understanding RU consumption and calculation
- π Estimating RU Requirements - Capacity planning and RU estimation
- π Provisioned Throughput - Configuring RU/s at database and container level
- π Autoscale Throughput - Automatic scaling based on workload
Throughput Optimization¶
- π Serverless Mode - Pay-per-request pricing for variable workloads
- π Shared Throughput - Sharing RU/s across multiple containers
- π Optimizing RU Consumption - Techniques to reduce request unit usage
Performance Best Practices¶
- π Performance Tips for NoSQL API - General performance optimization strategies
- π Query Performance Optimization - Reducing RU costs in queries
- π Bulk Import Performance - High-performance data ingestion
- π SDK Performance Benchmarks - Understanding SDK performance characteristics
Analytical Store and HTAP¶
- π Azure Synapse Link for Cosmos DB - Hybrid transactional and analytical processing
- π Analytical Store Overview - Column-oriented store for analytics without ETL
- π Query Analytical Store with Spark - Big data analytics on operational data
Global Distribution¶
Multi-Region Configuration¶
- π Global Distribution Overview - Turnkey global distribution capabilities
- π Add and Remove Regions - Configuring multi-region deployments
- π Multi-Region Writes - Enabling write capabilities in all regions
- π Automatic Failover - Configuring failover priorities and policies
Conflict Resolution¶
- π Conflict Resolution Overview - Managing conflicts in multi-region write scenarios
- π Last-Write-Wins Policy - Default timestamp-based conflict resolution
- π Custom Conflict Resolution - User-defined merge procedures
Availability and SLAs¶
- π High Availability in Cosmos DB - Understanding 99.999% availability SLA
- π SLA for Azure Cosmos DB - Comprehensive service level agreements
- π Availability Zones - Zone-redundant deployments
Security and Access Control¶
Authentication and Authorization¶
- π Security Overview - Comprehensive security features and capabilities
- π Azure AD Authentication - Role-based access control with Azure Active Directory
- π Primary and Secondary Keys - Master key authentication and management
- π Resource Tokens - Fine-grained access control for specific resources
Network Security¶
- π Firewall Configuration - IP firewall rules and access restrictions
- π Virtual Network Service Endpoints - Private connectivity from VNets
- π Private Endpoints - Azure Private Link integration
- π Public Network Access Control - Disabling public internet access
Data Encryption¶
- π Encryption at Rest - Transparent data encryption for stored data
- π Customer-Managed Keys - Bring your own key (BYOK) with Azure Key Vault
- π Encryption in Transit - TLS 1.2+ for all connections
Monitoring and Diagnostics¶
Azure Monitor Integration¶
- π Monitoring Cosmos DB - Complete monitoring and observability guide
- π Metrics in Azure Monitor - Available metrics and dimensions
- π Diagnostic Logs - Configuring diagnostic logging to Log Analytics
- π Setting Up Alerts - Proactive monitoring with Azure Monitor alerts
Performance Monitoring¶
- π Query Metrics and Diagnostics - Understanding query execution statistics
- π Server-Side Latency Metrics - Diagnosing latency issues
- π RU Consumption Monitoring - Tracking normalized RU consumption
- π Partition Metrics - Storage and throughput distribution analysis
Troubleshooting¶
- π Troubleshooting Guide - Common issues and resolutions for .NET SDK
- π Rate Limiting (429) Errors - Understanding and fixing throughput exceeded errors
- π Connection Issues - Diagnosing connectivity problems
- π Performance Diagnostics - Using built-in diagnostics tools
Cost Optimization¶
Cost Management¶
- π Understanding Cosmos DB Pricing - Billing components and cost calculation
- π Optimize Throughput Costs - Strategies to reduce RU/s expenses
- π Optimize Storage Costs - Managing data retention and storage usage
- π Choosing Between Provisioned and Serverless - Cost comparison for different workload types
Cost Optimization Strategies¶
- π Time to Live (TTL) - Automatic data expiration to reduce storage costs
- π Reserved Capacity - Pre-purchasing capacity for cost savings
- π Free Tier - 1000 RU/s and 25 GB storage free
- π Cost Analysis and Budgets - Planning and managing Cosmos DB costs
Integration Patterns¶
Azure Services Integration¶
- π Azure Functions Integration - Serverless triggers, input and output bindings
- π Logic Apps Connector - Workflow automation with Cosmos DB
- π Azure Stream Analytics - Real-time streaming data to Cosmos DB
- π Event Grid Integration - Event-driven architectures with change feed
Data Integration¶
- π Azure Data Factory - ETL pipelines and data movement
- π Azure Databricks Integration - Apache Spark connector for Cosmos DB
- π Power BI Integration - Real-time dashboards and reporting
Migration Tools¶
- π Data Migration Tool - Command-line tool for bulk data import
- π Azure Cosmos DB Live Migrator - Zero-downtime migration strategies
- π Spark Connector for Migration - Large-scale data migration using Databricks
AI Retrieval and Agent Memory¶
Domain 3 is new on the 2026-10-06 outline. Deep dive: AI retrieval and agent memory.
Vector Search¶
- π Vector indexing and search - Container vector policy (path, dataType, dimensions, distanceFunction), flat / quantizedFlat / diskANN indexes,
VectorDistance - π Sharded DiskANN -
vectorIndexShardKeysplits one DiskANN index into one index per property value (per tenant, per category) - π Vector search performance tips - TOP N, exclude vector paths from the range index, filters, recall tuning
- π Multi-tenancy for vector search - Partition key, hierarchical keys and shard keys for tenant isolation
Key Facts: - Vector data types: float32, float16, int8, uint8. Default dimensions 1536. Distance: cosine (default), dotproduct, euclidean - flat: exact, max 505 dimensions. quantizedFlat: compressed brute force, max 4096, suggested for up to about 50,000 vectors in scope. diskANN: approximate nearest neighbor, max 4096, best above about 50,000 - quantizedFlat and diskANN need at least 1,000 vectors before the index is used; below that the query does a full scan - Vector policies and vector indexes cannot be modified in place: drop and re-add (or create a new container) - Always use TOP N with ORDER BY VectorDistance(...)
Full-Text and Hybrid Search¶
- π Full-text search - Full-text policy plus full-text index;
FullTextContains,FullTextContainsAll,FullTextContainsAny,FullTextScore(BM25) - π Hybrid search -
ORDER BY RANK RRF(VectorDistance(...), FullTextScore(...), [weights]) - π RAG in Azure Cosmos DB - Ingest, retrieve, ground, generate
Agent Memory¶
- π Agent memories - Short-term vs long-term memory, partition key choices (GUID, thread ID, tenant + thread HPK), one document per turn as the recommended model
- π Agent Memory Toolkit (preview) - Python SDK for turns, summaries, facts and user summaries, processed via change feed
Fabric, Fleets and Resilience¶
New or reworked skills on the 2026-10-06 outline. Deep dive: Fabric, fleets and resilience.
Operational Analytics with Microsoft Fabric¶
- π Mirroring Azure Cosmos DB - Near real-time, no-ETL replication into OneLake as Delta; no RU consumption; continuous backup required; NoSQL accounts only
- π Cosmos DB in Microsoft Fabric - Same engine as Azure Cosmos DB for NoSQL, managed inside a Fabric workspace, data surfaced in OneLake automatically
- π Spark notebooks with Cosmos DB in Fabric -
cosmos.oltpformat for read and write
Fleets¶
- π Fleets overview - Fleet = one multitenant app; fleetspace = group of accounts; one account per tenant
- π Fleet pools - Shared RU/s across accounts; dedicated RU/s are consumed first, then the pool
- π Fleet analytics (preview) - Hourly cost, usage and settings data as Delta tables in Fabric OneLake or ADLS Gen2
Security and Availability Additions¶
- π Dynamic data masking - Query-time masking by data plane RBAC; needs Entra ID (not keys); cannot be turned off once enabled
- π Per-partition automatic failover - Single-write-region NoSQL accounts; only affected partitions move; RTO under 3 minutes at P99
Change Feed Modes and Copy Jobs¶
- π Change feed modes - Latest version vs all versions and deletes (needs continuous backup)
- π Container copy jobs (preview) - Online and offline copies; change a partition key, adopt hierarchical keys, rename containers
AI-Assisted Tools¶
- π Agent Kit overview - Agent Skills for AI coding assistants that encode Cosmos DB best practices
Additional Resources¶
Backup and Disaster Recovery¶
- π Backup Overview - Automatic continuous backup
- π Point-in-Time Restore - Restoring data to any point in time
- π Periodic Backup Mode - Traditional scheduled backup approach
- π Restore Cosmos DB Account - Recovery procedures and best practices
Compliance and Governance¶
- π Compliance Certifications - Industry standards and regulatory compliance
- π Azure Policy for Cosmos DB - Governance and compliance policies
- π Audit Logging - Control plane operation logging
Development Best Practices¶
- π Design Patterns - Common architectural patterns catalog
- π Testing Strategies - Using the Cosmos DB emulator for local development
- π Cosmos DB Emulator - Development and testing without Azure costs
- π DevOps and CI/CD - Infrastructure as Code with ARM templates
Community and Learning Resources¶
- π Azure Cosmos DB Blog - Latest features, announcements, and deep dives
- π GitHub Samples Repository - Official code samples for all SDKs
- π Azure Architecture Center - Reference architectures using Cosmos DB
Exam Preparation Checklist¶
Core Competencies to Master¶
- Design appropriate partition keys for various workload types
- Choose the right consistency level based on requirements
- Optimize queries to minimize RU consumption
- Configure indexing policies for cost and performance
- Implement change feed processors for event-driven architectures
- Use SDK best practices for connection management and bulk operations
- Configure global distribution and multi-region writes
- Implement proper authentication and authorization
- Set up monitoring, alerts, and diagnostics
- Optimize costs using autoscale, serverless, and TTL
Hands-On Practice Areas¶
- Create Cosmos DB accounts with different APIs
- Design and implement effective data models
- Write complex SQL queries with joins and aggregations
- Configure custom indexing policies
- Implement change feed processors with Azure Functions
- Perform bulk import operations
- Configure multi-region deployments
- Troubleshoot 429 rate limiting errors
- Analyze query metrics and optimize performance
- Implement security controls (RBAC, firewall, private endpoints)
Key Documentation to Review¶
- Partitioning and partition key selection
- Consistency levels and their trade-offs
- Request Units calculation and optimization
- Change feed patterns and implementations
- SDK best practices for your primary language
- Query performance tuning techniques
- Security and access control mechanisms
- Monitoring metrics and diagnostic logs
Quick Reference Tables¶
Consistency Levels Comparison¶
| Level | Guarantee | Use Case | Latency | Availability |
|---|---|---|---|---|
| Strong | Linearizability | Financial, inventory | Highest | Lowest |
| Bounded Staleness | K versions or T time lag | Stock quotes, leaderboards | High | Low |
| Session | Read-your-writes | User sessions, shopping carts | Medium | Medium |
| Consistent Prefix | No out-of-order reads | Social media, notifications | Low | High |
| Eventual | Eventually converges | View counts, telemetry | Lowest | Highest |
Request Unit Guidelines¶
| Operation | Typical RU Cost | Notes |
|---|---|---|
| Point read (1KB) | 1 RU | By ID and partition key |
| Point write (1KB) | 5-10 RU | Depends on indexing policy |
| Query (simple) | 2-5 RU | Single partition, indexed properties |
| Query (complex) | 10-100+ RU | Cross-partition, aggregations |
| Bulk insert (1KB) | 5-7 RU | Using bulk executor |
| Update (1KB) | 10-15 RU | Includes read and write |
API Selection Guide¶
| API | Use When | Migration From | Query Language |
|---|---|---|---|
| NoSQL (SQL) | New applications, best performance | N/A | SQL-like |
| MongoDB | Existing MongoDB apps | MongoDB | MongoDB Query |
| Cassandra | Wide-column workloads | Cassandra | CQL |
| Gremlin | Graph relationships | Neo4j, TinkerPop | Gremlin |
| Table | Key-value store | Azure Table Storage | OData |
Summary¶
This fact sheet is a link-first reference for DP-420 on the 2026-10-06 outline:
- Design and develop database solutions (40-45%) - SDK and resource model, operations, data modeling, partitioning, change feed, Agent Kit
- Secure, optimize, and deploy (30-35%) - Entra ID and RBAC, network security, dynamic data masking, backup, multi-region and per-partition failover, monitoring, fleets
- AI and analytics (20-25%) - Vector, full-text and hybrid search, RAG, agent memory, Fabric mirroring and Cosmos DB in Fabric
Study Approach¶
- Work through each documentation link, newest domain first if you studied the old outline
- Build one small RAG app end to end on a container with vector and full-text indexes
- Practice query optimization and troubleshooting with query and index metrics
- Understand cost implications of design decisions, including vector index choice
Success Tips¶
- Partition key selection still shows up everywhere, now including agent memory and vector shard keys
- Know when each vector index type fits and why diskANN results are approximate
- Know which features need continuous backup (all versions and deletes change feed, Fabric mirroring, online copy jobs)
- Be comfortable with change feed implementation patterns
Good luck with your DP-420 certification exam!