Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 13h 0m 53s Coupon code: 50OFF

Microsoft DP-420 Exam Questions & Answers (November 2026)

Building AI Applications with Azure Cosmos DB exam questions with 9 free practice questions and explained answers. Updated November 30, 2026. · See all Microsoft exams

Answer 9 scenario questions on this page and see your score as you go. No sign-up needed.

Exam Details

Exam Code
DP-420
Vendor
Microsoft
Duration (minutes)
100
Passing Score
700
Languages
English, Japanese, Chinese (Simplified), Korean, German, French, Spanish, Portuguese (Brazil), Chinese (Traditional), Italian
Delivery
Proctored; schedule through Pearson Vue
Question Types
Single ChoiceDrag and DropHotspot
Official Page
View Exam Page
1

Design and develop database solutions

40% - 45% of the exam

This topic covers how to choose Cosmos DB resource and SDK approaches for application data needs. Candidates must be able to configure throughput and TTL, select suitable data operations, and design partitioning and data models for their workloads.

Question 1 of 9 Single Choice

A retail application stores orders in an Azure Cosmos DB for NoSQL container partitioned by /customerId. A support agent enters an order ID and the customer ID, and the application must retrieve that specific order without changing it. The team wants the direct read operation that makes use of both known values.

Which SDK operation should the developer use to retrieve the known order with the lowest request unit cost?

Show Answer

Correct Answer

A

Option A is correct because the order ID and customerId partition key allow a point read, which directly addresses the known item. Option B is not correct because it runs a query instead of using a point read. Option C is not correct because it omits the required partition key. Option D is not correct because it writes the item rather than retrieving it.

Question 2 of 9 Drag and Drop

A service uses the Azure Cosmos DB for NoSQL SDK with a container partitioned by /customerId. It must atomically create an order and reserve inventory for one customer, retrieve individual documents when their IDs are known, list orders matching a supplied status, and send a separate large set of independent writes for many customers. The independent writes do not require all-or-nothing behavior.

Match each application requirement to the most appropriate Azure Cosmos DB for NoSQL SDK approach.

Match each item to the correct target.

Show Answer

Correct Answer

  • Create an order and reserve its inventory atomically, with both documents using the same customerId partition key matches TransactionalBatch using one partition key
  • Retrieve one document when both its ID and customerId are known matches ReadItemAsync with the item ID and partition key
  • Find orders for a customer whose status equals a supplied value matches Parameterized query using QueryDefinition and FeedIterator
  • Send many independent writes across different customerId values without requiring them to succeed atomically matches Bulk execution with AllowBulkExecution enabled

A TransactionalBatch is appropriate for the order and inventory changes because both documents share one partition key. ReadItemAsync uses the known ID and partition key for a direct read. QueryDefinition supports a parameterized status filter with a FeedIterator for results. Bulk execution suits independent writes across partitions, while it does not provide atomicity across those writes.

Question 3 of 9 Hotspot

An application stores both short-lived event records and long-lived reference documents in one Azure Cosmos DB for NoSQL container. The team needs event records to expire 30 days after their last modification, while reference documents must remain indefinitely. The container currently has TTL disabled, and the team wants to apply expiration only to selected event documents.

Select the appropriate TTL value for each statement.

Choose the correct option for each statement.

Show Answer

Correct Answer

  • Set the container defaultTimeToLive to this value so items do not expire by default but can have an item-level TTL. -1
  • Set ttl on an event document to this value to expire it after 30 days. 2592000
  • A retained document can omit ttl and remain without an expiration time with the selected container setting. Yes

The correct container value is -1 because it enables TTL without expiring items by default. The correct event-item value is 2592000, which is 30 days in seconds. The correct selection for the retained document is Yes, because it can omit ttl and remain without an expiration time under this container setting.

2

Secure, optimize, and deploy database solutions

30% - 35% of the exam

This topic covers controls for database access, availability, recovery, and performance monitoring in Azure Cosmos DB. Candidates must select suitable security and recovery configurations, interpret performance metrics, and set alerts against service objectives.

Question 4 of 9 Single Choice

A company runs a customer portal on Azure App Service and stores its records in Azure Cosmos DB for NoSQL. The account currently accepts connections through its public endpoint, and the security team requires that public network access be disabled. The application must continue to connect from its virtual network, and administrators must reach the account through the corporate VPN.

Which change should the team make to meet the network access requirement?

Show Answer

Correct Answer

C

Option C is correct because disabling public network access and using a private endpoint gives App Service private access without exposing the public endpoint. Option A is not correct because an IP allowlist leaves public access enabled. Option B is not correct because a service endpoint and firewall rule do not disable public access. Option D is not correct because key rotation does not restrict network reachability.

Question 5 of 9 Drag and Drop

A retailer operates an Azure Cosmos DB account in a United States region and serves customers in the United States and Europe. It wants users in both areas to read from a nearby region and requires applications in both regions to accept writes locally. A recent operator error also deleted a container, so the operations team needs a way to restore data from a time before the deletion.

Match each requirement to the Azure Cosmos DB configuration that best meets it.

Match each item to the correct target.

Show Answer

Correct Answer

  • Serve reads near users in both the United States and Europe. matches Add a read region
  • Allow applications in both configured regions to accept writes locally. matches Enable multi-region writes
  • Recover a deleted container to a time before the deletion. matches Use continuous backup with point-in-time restore

Adding a read region places a replica near regional users, while multi-region writes permit write operations in both configured regions. Continuous backup with point-in-time restore supports recovery to a selected time before deletion by restoring to a separate account. These matches address the distinct read, write, and recovery requirements.

Question 6 of 9 Hotspot

A support team is investigating a query against an Azure Cosmos DB container. Its application reports a 900 millisecond response time against a 200 millisecond service objective, and request charges have risen. The query filters on category and timestamp. Engineers need to establish whether those filters use indexes, inspect how many documents the query retrieves compared with how many it returns, and alert operators if account server-side latency exceeds its threshold.

Select the best value in each dropdown.

Choose the correct option for each statement.

Show Answer

Correct Answer

  • To check whether the category and timestamp filters use index paths, inspect [dropdown]. Index metrics
  • To notify operators when the account server-side latency metric exceeds its threshold, configure [dropdown]. An Azure Monitor metric alert
  • To compare the number of documents retrieved with the number returned by the slow query, review [dropdown]. Query metrics

Index metrics show which index paths were used, whereas query metrics report execution statistics and request charge alone does not show index use. An Azure Monitor metric alert can evaluate server-side latency against a threshold and notify operators. Query metrics include retrieved and output document counts, which index metrics and diagnostic settings alone do not provide.

3

Implement AI and analytics capabilities in database solutions

20% - 25% of the exam

This topic covers retrieval, vector and full-text search, RAG, and analytics patterns for Azure Cosmos DB solutions. Candidates must select suitable data and search designs, connect retrieval to grounded responses, and use Microsoft Fabric for operational analytics without disrupting application workloads.

Question 7 of 9 Single Choice

A customer-support team stores 1,536-dimension embeddings for several million product and case records in an Azure Cosmos DB for NoSQL container. The collection is expected to grow, and the team has a strict memory budget. Developers need approximate nearest-neighbor results ranked by similarity and can add a vector policy and index to the container.

Which design best meets the team's requirements for storing and querying these embeddings?

Show Answer

Correct Answer

B

Option B is correct because the 1,536-dimension vectors fit DiskANN, which suits the large collection and the stated memory constraint. Option A is not correct because flat indexes support at most 505 dimensions. Option C sets the wrong dimension. Option D cannot perform vector similarity ranking without vector configuration.

Question 8 of 9 Drag and Drop

A support team is building an agent backed by Azure Cosmos DB for NoSQL. A process restart must not erase the active conversation, customers expect their saved preferences to carry into later sessions, and policy staff need approved facts reused even when agents ask questions with different wording. The team wants each data need assigned to a suitable memory design.

Match each data requirement to the memory store design that best meets it.

Match each item to the correct target.

Show Answer

Correct Answer

  • Keep the messages and tool results for an active support conversation so the agent can continue the same session after a brief application restart. matches Conversation state
  • Retain a customer's preferred contact method across separate support sessions, with the value available by customer identifier. matches Durable memory
  • Store policy facts learned from approved support material so the agent can find relevant facts by meaning when a later question uses different wording. matches Semantic memory

Conversation state matches the active message and tool-result history needed to resume a session. Durable memory matches the customer preference that must persist across sessions and be available by identifier. Semantic memory matches policy facts found by meaning, rather than the full history of one conversation or a directly addressed preference.

Question 9 of 9 Hotspot

An order service uses an existing Azure Cosmos DB account and must keep its current transactional behavior. Analysts now need to explore order data with SQL in Microsoft Fabric, and the business wants updates to appear there without recurring file exports. The service cannot send analytical queries to its production containers, and Fabric should not become a second write target for application traffic.

Complete each statement by selecting the best value for the team's analytics design.

Choose the correct option for each statement.

Show Answer

Correct Answer

  • The existing application continues to use [dropdown] as its operational database. Azure Cosmos DB
  • To bring the source data into Fabric with ongoing mirroring, configure a [dropdown]. mirrored database in Fabric
  • Analysts query the mirrored data through the [dropdown]. SQL analytics endpoint
  • The mirrored copy is intended for [dropdown] rather than transactional writes from the application. read-only analytical queries

Azure Cosmos DB remains the source because the live application already depends on its operational workload. A mirrored database in Fabric provides the analytics copy, and the SQL analytics endpoint supports analyst queries. The read-only analytical copy lets analysts explore data without sending their analytical writes to the operational source.

Continue Your DP-420 Preparation

You have seen 9 questions from a full set of 204. Prepare with the DP-420 dumps PDF and the Web-Based Practice Test.

PDF

  • Compatible with All Devices
  • Printable Format
  • No Download Limits

Practice Test

  • Check your timing and weak areas
  • No Practice Limits
  • Regularly Updated
Get Full Access
  • 100% Money-Back Guarantee
  • 90 Days Free Updates
  • Instant Access

Frequently Asked Questions

What makes the database design section challenging on DP-420?

The challenge is choosing a design that fits the workload rather than recalling isolated Cosmos DB features. You may need to weigh partitioning, data models, throughput, TTL, resource choices, and SDK approaches together. A choice that suits one access pattern may create performance or cost concerns for another. Practise explaining why a partition key and data model fit the application’s operations, then review how throughput and TTL affect that design.

How demanding are the AI and analytics topics?

The AI section tests how retrieval design supports useful, grounded responses, including vector search, full-text search, and RAG patterns. You also need to distinguish these needs from operational analytics with Microsoft Fabric, which should avoid disrupting application workloads. The difficulty lies in selecting an appropriate pattern for the stated use case. Draw a simple flow from stored data to retrieval and response, then compare it with an analytics flow.

Why can studying Cosmos DB features still leave me unprepared for DP-420?

Candidates can learn feature definitions yet struggle when a scenario combines application needs, access controls, availability, and performance objectives. The exam asks you to apply choices, not merely name them. If hands-on access is limited, the Exam4Success PDF can support review away from a lab by giving you a structured way to revisit the exam’s topic areas. For each topic, write down the application requirement that would guide your choice.

How do I avoid spending too much time on vector search while missing other objectives?

Vector search is only one part of the AI and analytics domain, which also includes full-text search, RAG, and Microsoft Fabric patterns. DP-420 also gives substantial attention to database design, security, recovery, and performance monitoring. The Exam4Success Practice Test can help identify which areas need more attention rather than letting a familiar topic dominate your study time. Use your results to schedule targeted review across all three exam domains.

What practical skills should I expect to build while preparing for DP-420?

Preparation develops the judgement to design Azure Cosmos DB solutions around application data needs, configure throughput and TTL, and select suitable partitioning and data models. It also brings together secure access, availability, recovery, monitoring, and AI retrieval patterns. Those skills are useful for professionals building or supporting data-backed applications on Azure. Choose a sample application and practise describing its data design, recovery needs, and retrieval approach.

How can DP-420 preparation help with building grounded AI applications?

The exam’s AI topics connect Cosmos DB data and search design to retrieval-augmented generation. You will consider how vector and full-text search support retrieval, and how retrieved information can ground responses. The analytics objectives add a separate concern, using Microsoft Fabric without disrupting application workloads. To make the learning concrete, sketch a RAG flow for a specific application and identify where data design and search decisions affect its responses.

How should I organise my study time before scheduling DP-420?

Start with the three official domains. Database design accounts for 40 to 45 percent, security, optimization, and deployment for 30 to 35 percent, and AI and analytics for 20 to 25 percent. Use those weights to allocate review time, while giving extra attention to topics where you cannot explain a design choice. The exam is 100 minutes, so use the Exam4Success Practice Test to check pacing and identify weak areas before scheduling through Pearson Vue.

How can I tell if I am ready for DP-420, and what should I review first?

Readiness means being able to connect a stated requirement to a Cosmos DB design decision, including partitioning, throughput, security, recovery, and monitoring. You should also be able to choose between retrieval patterns and explain how Fabric analytics can limit impact on application workloads. The Exam4Success PDF is useful for focused review when you are away from a lab. Begin with the domain where your explanations are least precise, then test yourself across all three areas.

Exam4Success is an independent exam preparation provider and is not affiliated with or endorsed by Microsoft.