DP-420 Building AI Applications with Azure Cosmos DB Exam Topics and Questions
These Microsoft Building AI Applications with Azure Cosmos DB (DP-420) exam topics are organized according to official exam domains to help candidates quickly verify coverage and focus on assessment rather than theory. Each domain is paired with topic-wise DP-420 sample questions that reflect how objectives are tested in the actual exam. This structure enables efficient review, targeted self-assessment, and rapid identification of weak areas when preparing for the Microsoft Building AI Applications with Azure Cosmos DB certification exam.
Let's Practice Free Microsoft DP-420 Questions Aligned with Official Exam Topics
This topic is the core of the exam. Every other topic assumes you can already model data, partition it correctly, size throughput, and drive operations through the SDK. The decisions you make here, partition key selection above all, cascade through cost, scalability, and availability. Candidates who treat this as background knowledge rather than exam-critical detail lose marks in every section, not just this one. β Resource models, throughput, and SDK fundamentals The exam tests whether you understand where Azure Cosmos...
This topic is the core of the exam. Every other topic assumes you can already model data, partition it correctly, size throughput, and drive operations through the SDK. The decisions you make here, partition key selection above all, cascade through cost, scalability, and availability. Candidates who treat this as background knowledge rather than exam-critical detail lose marks in every section, not just this one.
β Resource models, throughput, and SDK fundamentals
The exam tests whether you understand where Azure Cosmos DB capacity decisions get made and what they cost. Knowing the difference between provisioned throughput and serverless at the account level, and between database-shared and container-dedicated throughput, changes which option you pick when a scenario describes a variable or predictable workload. Request Unit consumption is not a background concept: you are expected to reason about which operation types burn more RUs and why. SDK client initialisation matters too. Singleton versus per-request client patterns affect both performance and cost, and items reward the pattern that avoids repeated connection overhead. Point reads versus queries is a recurring trade-off. A point read by partition key and item ID costs one RU; a cross-partition query costs multiples. When the scenario gives you access patterns, match the operation type to the pattern before deciding on any other design choice.
β Data operations and concurrency
The range of write operations tested here is wider than most candidates expect. Replace, patch, upsert, and delete each behave differently under concurrent access, and the exam distinguishes them. Patch is especially worth attention: it modifies individual properties without replacing the full document, and scenarios that involve partial updates are a signal to reach for it. Bulk and batch operations appear in throughput-intensive scenarios. Transactional batch is scoped to a single logical partition, and that scope constraint is the examinable detail. Optimistic concurrency using ETags is tested in scenarios where two clients may write the same item. Time to Live configuration appears both at the container level and overridden per item. Items reward knowing which setting wins when both are set, and what happens when TTL is set to -1 versus a positive value. Continuation tokens and paging come up in query scenarios involving large result sets.
β Partitioning strategy and data modelling
Partition key selection is the single most examined design decision in this topic. The exam tests cardinality, write distribution, and hot-partition anti-patterns. A key with low cardinality concentrates writes; a key chosen for read convenience may produce uneven distribution. Hierarchical partition keys let you express a two-level key, and the exam tests when they are preferable to synthetic keys. Synthetic keys combine multiple properties to manufacture better distribution, and scenarios that describe skewed data are a prompt to consider them. Embedding versus referencing related data is decided by access pattern: if two items are always read together, embedding avoids a second round trip. If the embedded item changes frequently and is shared across many parents, a reference is cheaper to maintain. Items reward matching the model to the described access pattern, not applying a universal rule.
β Change feed and workload cost estimation
Change feed is tested at the implementation level, not just as a concept. The processor model uses a lease container to track progress across multiple workers; the pull model gives the application explicit control over checkpointing. Items reward knowing which model fits a given operational requirement. The exam distinguishes latest mode, which delivers only the most recent state of a changed item, from all-versions-and-deletes mode, which delivers every version including deletions. Lease container configuration, including partition count alignment, appears in scenario-based items. Copy container jobs are a related mechanism for moving or cloning data and appear in migration scenarios. Cost estimation requires combining RU consumption per operation with expected operation volume. Items reward a structured approach: identify the dominant operation type, estimate its RU cost, multiply by frequency, and compare against provisioned capacity.
β AI-assisted development with Agent Kit
The Agent Kit sub-topics are the newest area in this topic and the one most candidates under-prepare. The exam covers two distinct uses. The first is using Agent Kit to follow Azure Cosmos DB development recommended solutions, meaning the tooling guides you toward patterns such as correct SDK usage, indexing policy, and partitioning that align with documented best practice. The second is using Agent Kit to accelerate AI application development, where the focus shifts to building AI-integrated applications faster by relying on the kit's scaffolding and integration points. Items in this area test whether you can distinguish the two modes and apply the right one given a described scenario. Candidates who skip this area on the assumption it is too new to appear heavily on the exam are taking a risk.
How Design and develop database solutions is tested
Items in this topic are scenario-driven. You are given a workload description, a cost constraint, or an access pattern and asked to choose a design or configuration. The trap is that multiple options are defensible in the abstract: the scenario detail is what eliminates them. Partition key questions reward the candidate who reads the data distribution clues in the scenario before evaluating the options. SDK operation questions reward matching the operation type to the stated requirement: a scenario mentioning partial property updates points away from replace and toward patch. Change feed items reward knowing the operational difference between processor and pull mode, not just that both exist. Cost estimation items reward a calculation approach rather than intuition. Candidates lose marks by applying general best practice without reading the scenario constraints, and by treating throughput configuration as a one-size setting rather than a choice driven by workload shape.
The ITExamsTopics practice test covers this topic across its full breadth. Because this topic is the largest in the exam, working through a high volume of questions is the fastest way to surface which sub-areas, partitioning strategy, change feed, or SDK operations, still have gaps before exam day.
The question below tests a specific design decision from this topic. Work through it before checking your reasoning.
You have a database in an Azure Cosmos DB Core (SQL) API account. The database is backed up every two hours.
You need to implement a solution that supports point-in-time restore.
What should you do first?
Where the first topic is about building the right structure, this one is about keeping it secure, fast, and observable in production. The exam shifts from design decisions to operational ones: authentication, authorization, network controls, backup, multi-region write behaviour, query tuning, and the monitoring stack. Candidates who know Cosmos DB development but have limited operations experience find this topic harder than expected, particularly the Fleet management and diagnostics sub-areas. β Authentication, authorization, and network controls The exam tests the difference...
Where the first topic is about building the right structure, this one is about keeping it secure, fast, and observable in production. The exam shifts from design decisions to operational ones: authentication, authorization, network controls, backup, multi-region write behaviour, query tuning, and the monitoring stack. Candidates who know Cosmos DB development but have limited operations experience find this topic harder than expected, particularly the Fleet management and diagnostics sub-areas.
β Authentication, authorization, and network controls
The exam tests the difference between key-based authentication and Azure Active Directory-based authentication, and items reward knowing when each is appropriate. Role-based access control for data plane operations is distinct from management-plane RBAC, and the exam treats them separately. Dynamic data masking is a control that limits exposure of sensitive fields to specific roles without altering the stored data; items test which roles see masked versus unmasked values. Network security covers private endpoints, service endpoints, and IP firewall rules. The distinction between a private endpoint, which routes traffic through a virtual network, and an IP rule, which filters by source address, appears in scenario items where the network topology is described. Candidates who conflate these controls or apply them interchangeably lose marks on items where the scenario specifies a connectivity requirement.
β Availability, multi-region configuration, and backup
Multi-region write configuration is tested in terms of conflict resolution. When two regions write the same item simultaneously, Cosmos DB applies a conflict resolution policy: last-writer-wins using a timestamp property, or a custom procedure. Items reward knowing which policy fits a described conflict pattern and what happens when neither region's write can be automatically resolved. Partition failover configuration determines which region takes over reads or writes when a region becomes unavailable. Continuous backup versus periodic backup differ in recovery granularity: continuous backup supports point-in-time restore, periodic does not. Items test which backup mode satisfies a described recovery time or recovery point objective. Candidates who treat backup as a binary on/off setting rather than a mode with operational consequences miss the detail the exam rewards.
β Query tuning, indexing, and latency
Query performance optimisation in Cosmos DB centres on the indexing policy. By default, all properties are indexed, but that default increases write RU cost. Items reward recognising when a custom indexing policy, excluding unused paths or adding composite indexes, reduces cost or improves query latency. Query metrics expose RU charge, index lookup count, and document load count. A high document load count relative to results returned signals a missing or ineffective index. End-to-end latency monitoring against service-level objectives requires knowing which metrics to watch: P99 latency is the standard target, not average. Items in this area reward a diagnostic sequence: observe the metric, identify the cause from the available signals, and select the remediation. Candidates who jump to remediation without reading the diagnostic data choose plausible but wrong options.
β Monitoring, diagnostics, and Fleet management
Azure Monitor alerts for Cosmos DB are configured against specific metrics: RU consumption, server-side latency, and throttled requests are the most exam-relevant. Log Analytics receives diagnostic logs from Cosmos DB and allows query-based analysis of request patterns, errors, and latency distribution. Items test whether you can interpret a described log pattern and identify its cause. Fleet management is a newer capability that aggregates visibility and throughput control across multiple Cosmos DB accounts and subscriptions. Fleet-level throughput management lets you apply capacity changes at scale rather than account by account. Fleet analytics provides aggregated monitoring across the fleet. Items in this area test the operational value of Fleet features in multi-account scenarios, not their configuration syntax.
How Secure, optimize, and deploy database solutions is tested
Items here are predominantly scenario-based and test the right tool for a described operational requirement. Security items reward selecting the control that matches the described threat model or compliance constraint, not the most restrictive option available. A scenario describing internal application access to Cosmos DB from within a virtual network points toward a different network control than one describing external API access. Performance items reward a diagnostic sequence: read the metric, identify the bottleneck, then select the fix. Candidates who apply index optimisation to a latency problem caused by cross-partition queries, or vice versa, demonstrate pattern-matching rather than reasoning, and the distractors are written to catch that. Monitoring items reward knowing which metric signals which problem. Fleet management items are operational in character: items reward understanding what Fleet solves at scale, not low-level configuration detail.
Before the exam, use the ITExamsTopics practice test to check this topic specifically. Running timed questions on security and monitoring lets you confirm whether you can apply the controls under time pressure, rather than discovering gaps only when it matters.
The question below focuses on one of this topic's operational decisions. Take a position before reading the options.
You have an Azure Cosmos DB Core (SQL) API account.
You configure the diagnostic settings to send all log information to a Log Analytics workspace.
You need to identify when the provisioned request units per second (RU/s) for resources within the account were modified.
You write the following query.
AzureDiagnostics
| where Category == "ControlPlaneRequests"
What should you include in the query?
This topic reflects where Azure Cosmos DB is heading as a platform. The exam tests whether you can use Cosmos DB as the data layer for AI-driven applications and as a source for operational analytics through Microsoft Fabric. Vector search, hybrid search, RAG patterns, and agent memory stores are all fair game. Candidates with a pure database background who have not worked with AI application patterns will find this topic requires deliberate preparation that the other two topics do not....
This topic reflects where Azure Cosmos DB is heading as a platform. The exam tests whether you can use Cosmos DB as the data layer for AI-driven applications and as a source for operational analytics through Microsoft Fabric. Vector search, hybrid search, RAG patterns, and agent memory stores are all fair game. Candidates with a pure database background who have not worked with AI application patterns will find this topic requires deliberate preparation that the other two topics do not.
β Vector data, indexing, and search
The exam tests the mechanics of storing and querying vector data in Cosmos DB. Vector data type selection, vector index type, and index size are configuration decisions that affect both accuracy and cost. DiskANN is the vector index implementation used for approximate nearest-neighbour search at scale. Sharded DiskANN applies when the vector dataset exceeds what a single partition can hold efficiently, and the exam tests when that threshold is relevant. Vector partitioning strategy follows the same principles as standard partitioning but must account for how vectors are grouped for search locality. Full-text search is a separate capability that operates on string fields. Items test when to use full-text search, when to use vector search, and when the scenario calls for both together as a hybrid search. Hybrid search combines a vector similarity score with a text relevance score, and items reward knowing how the two signals are weighted and merged.
β RAG patterns and agent memory
Retrieval-Augmented Generation uses Cosmos DB as the store from which relevant context is retrieved before a language model generates a response. The exam tests the retrieval side: how vectors representing documents or chunks are stored, how a query vector is matched against them, and how the retrieved context is passed forward. Items reward understanding the retrieval pipeline, not the language model behaviour. Agent memory stores are a related pattern where Cosmos DB persists state for an AI agent across sessions. The exam distinguishes three memory types. Durable memory stores retain long-lived facts about users or entities. Conversation state tracks the turn-by-turn history of an interaction. Semantic memory stores higher-level associations derived from past interactions. Items test which memory type fits a described persistence requirement, not the implementation framework details.
β Operational analytics and Microsoft Fabric integration
The exam tests the choice between Azure Cosmos DB in its standard form and Cosmos DB in Microsoft Fabric, which is a distinct offering with different operational characteristics. Items reward understanding which scenarios call for each. Data mirroring from Cosmos DB into Microsoft Fabric replicates data into the Fabric OneLake store without requiring a separate ETL pipeline. Configuration and monitoring of that mirroring process are tested at the operational level: what you configure, what you monitor, and what signals indicate a mirroring problem. Once data is mirrored, it can be queried using T-SQL or Apache Spark. Items test which query surface is appropriate for a described analytical workload. The Cosmos DB Spark connector enables bidirectional data flow: reading from and writing to Cosmos DB directly from Fabric. Items reward knowing when to use mirrored data versus the connector based on the described latency and consistency requirements.
How Implement AI and analytics capabilities in database solutions is tested
Items in this topic test applied decision-making across two distinct domains: AI application patterns and analytics integration. The two are not tested together, so read each scenario carefully to identify which domain it belongs to before evaluating options. Vector search items reward configuration reasoning: index type, size, and partitioning decisions each have trade-offs that surface in scenario constraints around cost, latency, or recall accuracy. RAG items reward understanding the retrieval pipeline well enough to identify where a described problem originates. Agent memory items reward matching the memory type to the persistence characteristic described in the scenario. Analytics items reward the Fabric integration decision: mirroring versus connector is a choice with latency and consistency implications, and the exam tests that distinction. Candidates who treat this topic as theoretical lose marks to candidates who have worked through concrete scenarios involving these capabilities.
The ITExamsTopics practice test includes questions across all three topics, so you can use it to see how this topic's AI and analytics items compare in style and difficulty to the ones you have already worked through, without having to source separate preparation material.
The question below draws on one of the AI or analytics capabilities covered in this topic. Work out your answer before reviewing it.
Ready to Start Practicing?
Access all questions and start your exam preparation journey
Upgrade to Full DP-420 Exam Questions π