All Microsoft exams
Microsoft DP-420: Building AI Applications with Azure Cosmos DB
What the DP-420 exam covers and what it costs, with a free 30-question practice test and an explanation for every answer.
- Level
- Associate
- Topic areas
- 3
- Free practice questions
- 30
- Full question bank
- 100 questions
What the DP-420 exam covers
The topic areas in our DP-420 question bank, with each one's share of the 100 practice questions.
DP-420 cost and format
| Exam code | DP-420 |
|---|---|
| Certification | Azure Cosmos DB AI Developer Associate |
| Vendor | Microsoft |
| Level | Associate |
| Status | Active |
Last checked October 22, 2026 against the official Microsoft exam page.
DP-420 sample questions
The first 5 questions from the free practice test. Open a question to see the answer and why it is right.
Question 1Design and develop database solutions
A globally distributed application must guarantee that reads never lag writes by more than five minutes or a fixed number of versions, while keeping latency lower than strong consistency. Which consistency level fits this requirement?
- AEventual
- BStrong
- CBounded staleness
- DConsistent prefix
Show answer and explanationHide answer
Correct answer: CBounded staleness lets the team configure a maximum lag in time or versions, which gives a predictable freshness guarantee with lower latency than strong. Eventual has no bound, and consistent prefix guarantees order but not a time limit.
Question 2Secure, optimize, and deploy database solutions
An application running in Azure must access Azure Cosmos DB without storing account keys in its configuration. Which approach is recommended?
- AUse the account connection string in a public GitHub repository with sample code files
- BShare the account's read-write key with every developer so each can test locally
- CEmbed the primary key in the compiled application binary so it ships with each release
- DUse a managed identity with Microsoft Entra ID authentication and disable key-based authentication
Show answer and explanationHide answer
Correct answer: DManaged identities with Entra ID remove long-lived secrets from application code and allow access to be governed by role assignments. Embedded or shared keys create exposure that identity-based access avoids.
Question 3Implement AI and analytics capabilities in database solutions
An application wants to store vector embeddings and query them with a vector index. Which container-level element must be defined when the container is created?
- AA separate Azure Cosmos DB account for each embedding dimension, each with its own throughput
- BA nightly script that regenerates the embeddings from the source documents and writes them back
- CA cloud-based image classifier hosted in Azure Machine Learning to tag photos
- DThe vector embedding policy that describes the vector path, dimensions, and data type
Show answer and explanationHide answer
Correct answer: DThe vector embedding policy and matching vector index are part of the container definition, which the vector search depends on. The other options are unrelated to the container configuration.
Question 4Design and develop database solutions
Which consistency level is the default when a new Azure Cosmos DB for NoSQL account is created?
- ASession
- BEventual
- CBounded staleness
- DStrong
Show answer and explanationHide answer
Correct answer: ASession is the default and guarantees read-your-own-writes for a client session. Strong and bounded staleness are stricter options, and eventual is weaker than the default.
Question 5Secure, optimize, and deploy database solutions
A reporting service needs read-only access to items in one container and must not be able to write data. Which control provides the narrowest appropriate permission?
- AGrant the service owner rights across the whole Azure subscription scope
- BGive the service the account's primary key to use for data access
- CAssign a data-plane role-based access control role that grants read access only
- DAllow read-write access to the container and rely on code to avoid unneeded writes
Show answer and explanationHide answer
Correct answer: CData-plane role-based access control assigns read-only data roles that can be scoped, which enforces least privilege. Full keys and subscription ownership grant far more than the service needs.
How to prepare for DP-420
- Read the official Microsoft outline first (exam page), so you know exactly what is in scope.
- Give the most time to Design and develop database solutions and Secure, optimize, and deploy database solutions: together they make up 74% of the questions.
- Take the free 30-question practice test and note which topics you miss.
- Go back to the weak topics, then test again. A practice score shows where to study; it does not predict your exam result.
Full DP-420 question bank
All 100 questions with answers and explanations, as a PDF, an online practice exam, or both.
Both formats together. The best value.
Instant access after payment, with 90 days of updates. Checkout is on our store, AIExamCerts.
DP-420 FAQ
Related exams
| Exam | Vendor | Level |
|---|---|---|
| DP-300: Administering Microsoft Azure SQL Solutions | Microsoft | Associate |
| DP-750: Implementing Data Engineering Solutions Using Azure Databricks | Microsoft | Associate |
| DP-700: Implementing Data Engineering Solutions Using Microsoft Fabric | Microsoft | Associate |
| DP-900: Microsoft Azure Data Fundamentals | Microsoft | Foundational |
| PL-300: Microsoft Power BI Data Analyst | Microsoft | Associate |
| DP-600: Implementing Analytics Solutions Using Microsoft Fabric | Microsoft | Associate |