Microsoft DP-420 Practice Exam Questions & Answers
Microsoft DP-420 Exam Details
Key details for this exam, checked against the published exam outline
- Exam Code
- DP-420
- Full Name
- Designing and Implementing Cloud-Native Applications Using Microsoft Azure Cosmos DB
- Issuing Body
- Microsoft
- Question Format (Our Bank)
- Multiple Choice, Hotspot, Drag & Drop, Order List, Case Studies
- Delivery
- Online proctored or Pearson VUE test centre
- Eligibility
- No prerequisites required
- Full Question Set
- 227 questions Get All Questions
Free DP-420 Practice Questions
Answer each question, then see the correct answer and why it is right
Question 1 Domain 1 Design and develop database solutions
An Azure Cosmos DB for NoSQL account named account1 stores loT telemetry from 50.000 devices spread across 10 distinct districts. Every device sends one 1-KB document each second, and each document contains three properties named deviceld, districtld, and tinestamp.
You must design a partitioning solution that satisfies these requirements:
* Queries for a single device must stay routable without fanning out across every partition. *The data for any one device must not be able to exceed the logical partition limit of account1.
* Writes for a given time window must not be concentrated in a single logical partition.
Which settings should you configure? To answer, choose the appropriate options in the answer area.
NOTE: Each correct selection earns one point.

Correct answer area highlighted in green

Question 2 Domain 1 Design and develop database solutions
Your organization runs an Azure Cosmos DB for NoSQL account called account1.
An application named App1 connects to account1 and applies strong consistency to every request.
You enable the Azure Cosmos DB integrated cache for account1.
Your goal is to make sure App1 takes advantage of the integrated cache.
Which action should you take?
The integrated cache in Azure Cosmos DB is only compatible with eventual consistency. Because App1 currently relies on strong consistency, it cannot gain any benefit from the integrated cache. For App1 to make use of the integrated cache, the account's consistency level must be changed to eventual consistency. The integrated cache is designed for workloads where eventual consistency is tolerable, delivering better performance through client-side caching.
Question 3 Domain 1 Design and develop database solutions
An Azure Cosmos OB for NoSQL account has been set up for global distribution across four regions. When a connection is established, the SQL SDK must determine the best endpoint to use for reads and writes. Which two factors can affect the SDK's choice? Each correct answer forms a complete solution. NOTE- Each correct selection is worth one point.
Two factors that affect how the SQL SDK picks an endpoint when a connection is opened are: (1) the preferred regions explicitly set in the connection policy, which the SDK uses to rank endpoints by priority; and (2) the live availability and latency measurements for each region, which the SDK tracks to find the endpoint offering the lowest latency. The SDK weighs configured preferences against actual performance to optimize read and write operations.
Get the complete DP-420 question set
Get Full AccessQuestion 4 Domain 1 Design and develop database solutions
An Azure Cosmos DB database includes a container called container1. Throughput on container1 is capped at 20,000 RU/s, and the container currently holds 240 GB of data.
Using current usage, you must project the expenses for container1.
What number of RU/s will be billed?
For a container set to 20,000 RU/s that holds 240 GB of data, 20,000 RU/s will be billed. This reflects standard provisioned throughput pricing, where charges apply to the provisioned RU/s capacity regardless of how much is actually consumed, up to that ceiling. Storage size (240 GB) is billed separately from throughput, so throughput charges depend only on the provisioned RU/s. Because this is manual provisioning rather than autoscale, the full 20,000 RU/s is charged even when some of it goes unused during certain periods.
Question 5 Domain 1 Design and develop database solutions
Your Azure subscription is ready for use.
You intend to deploy an Azure Cosmos DB for NoSQL single-region write account named account1 that will be replicated across two Azure regions.
You must configure the default consistency level for account1. The configuration has to satisfy these requirements:
* Write operations must be carried out against a local majority within one region.
* Read operations must be served from a local minority within one region.
Which consistency level should you choose?
The consistency level that calls for writes to a local majority in one region and reads from a local minority in one region is Strong consistency. Strong consistency guarantees that once a write completes, every later read returns the most recent committed data. It is the only level that ensures both the write quorum (local majority) and read freshness (local minority), so it satisfies both stated requirements.
Question 6 Domain 1 Design and develop database solutions
You have an Azure Cosmos DB for NoSQL account named account1.
You intend to set up a container named container1 that will hold data continuously gathered from self-driving cars. The items in container1 will mostly be read through queries that filter for data gathered from one particular car on a single day. Each car can be recognized by a property named Vehicle-Identification-Number.
You need to choose a partition strategy for container1. The strategy must meet the following requirements:
* Maximize read and write performance.
* Minimize the costs of data reads and writes.
What should you choose?
For self-driving car data that is accessed by a specific car during a given day, the best partition strategy is:
- Partition on /Vehicle-Identification-Number: Because queries target data from a specific car during a given day, using the VIN as the partition key keeps all data for each car together. This turns queries into single-partition queries, which maximize read/write performance and minimize RUs.
- Why this minimizes costs: Single-partition queries use far fewer RUs than cross-partition queries. All data for one car sits in one partition, so requests such as 'get all readings from Car X on Date Y' can run within a single partition.
- Why this maximizes performance: Avoiding cross-partition distribution means faster query execution and better throughput for this access pattern.
This strategy matches the primary query pattern (a specific car and a specific time period), making it the best choice for both cost and performance.
Question 7 Domain 1 Design and develop database solutions
Your organization builds an application named App1 with the Azure Cosmos DB SDK, currently configured to use the Eventual consistency level.
App1 runs queries against an Azure Cosmos DB for NoSQL account named account!
You must determine which consistency level App1 should use to satisfy these requirements:
* Increase the throughput of the queries issued by App1 without raising the number of request units those queries currently consume.
* Deliver the strongest consistency guarantees possible.
Which consistency level should you choose?
This question asks for the consistency level that satisfies two goals: (1) raising throughput without consuming more request units, and (2) delivering the strongest consistency guarantees.
Azure Cosmos DB consistency levels run from weakest to strongest: Eventual → Consistent Prefix → Session → Bounded Staleness → Strong. The essential point is how switching consistency levels affects throughput and RU cost:
- Eventual Consistency: Weakest guarantees, highest throughput, lowest RU cost
- Strong Consistency: Strongest guarantees, but requires synchronous replication to every replica before writes are acknowledged
The question notes that App1 already uses Eventual consistency. To 'deliver the strongest consistency guarantees,' you need Strong Consistency. At first glance, the goal of 'maximizing throughput without increasing request units' appears to conflict with this. The answer is that Strong Consistency consumes the SAME number of request units for reads and writes, so it does not push RU consumption above what Eventual uses. The difference lies in latency, not RU cost. Strong Consistency guarantees that reads always return the latest write, satisfying the top consistency requirement while staying within the same RU budget.
Question 8 Domain 1 Design and develop database solutions
Consider an Azure Cosmos DB database named databaset, which contains a container called container1. The container1 container holds product data and uses the indexing policy shown below.

Which path will be indexed?
Hence, /product/category, /product/[ ]/category, and /product/brand/tailspin are excluded from indexing.
Practice every DP-420 question in the full set, each one with its verified answer and a detailed explanation
Get Full AccessWhat the Microsoft DP-420 Exam Covers
Exam domains verified against the Official Microsoft DP-420 exam guide, last checked November 2026.
Domain 1 Design and develop database solutions
40% - 45%Evaluate resource models and SDK solutions; Evaluate consistency levels; Evaluate Request Unit (RU) consumption requirements; Evaluating and configuring appropriate throughput; Configure account-level and container-level settings; Create and manage database and containers; Initialize SDK clients and connections; Implement database operations; Implement queries, parameterized queries, paging, and continuation tokens; Implement point read operations; Implement create, replace, update, patch and delete operations; Implement bulk, batch, and transactional operations; Configure Time to Live (TTL); Implement concurrency control mechanisms; Design and implement data models and partitioning strategies; Design data models for access patterns and operational requirements; Design and select partition keys based on cardinality, access patterns, and write distribution requirements; Determine when to embed or reference related data; Evaluate the impact of partition key selection on scalability and performance; Implement hierarchical partition keys (HPKs) and multi-tenant partitioning strategies; Implement synthetic partition keys; Identify partitioning anti-patterns and partitioning issues during solution reviews; Estimate workload cost requirements; Implement change feed; Implement change feed operations; Differentiate between change feed processor and pull mode models; Configure lease containers; Implement change feed processing using latest mode or all versions and delete; Implement copy container jobs; Design and implement Azure Cosmos DB solutions by using AI-assisted tools; Implement Agent Kit to follow Azure Cosmos DB development recommended solutions; Implement Agent Kit to accelerate AI application development
Domain 2 Secure, optimize, and deploy database solutions
30% - 35%Implement database security controls; Configure authentication mechanisms; Configure authorization controls; Configure network security; Configure dynamic data masking; Implement availability and recovery solutions; Configure backup and restore solutions; Implement multi-region read and write configurations; Configure partition failover solutions; Optimize and remediate database performance; Optimize query performance; Analyze query performance metrics; Analyze index performance metrics; Monitor end-to-end latency against service objectives; Configure Azure Monitor alerts; Analyze diagnostic logs in Log Analytics; Implement Fleet management and monitoring across multiple accounts and subscriptions; Configure Fleet level throughput management; Configure Fleet monitoring with fleet analytics
Domain 3 Implement AI and analytics capabilities in database solutions
20% - 25%Design and implement AI retrieval; Design and implement full-text search; Design for vector data, including vector data type, vector indexes, and size; Design and implement vector partitioning and sharded DiskANN implementations; Implement vector search; Design and implement hybrid search; Optimize full-text and vector performance; Design and implement Retrieval-Augmented Generation (RAG); Design and implement agent memory stores; Design durable memory stores; Implement conversation state; Implement semantic memory; Design and implement operational analytics on Azure Cosmos DB; Choose between Azure Cosmos DB and Cosmos DB in Microsoft Fabric; Configure and monitor data mirroring into Microsoft Fabric; Query Azure Cosmos DB mirrored JSON data in Microsoft Fabric with T-SQL and Spark; Read and write data into Azure Cosmos DB from Microsoft Fabric with Cosmos DB Spark connector
DP-420 Exam FAQ
Common questions about the exam itself
What prior experience do I need before taking DP-420?
Is DP-420 harder than other Azure data certifications?
Which objective area gives most candidates trouble on DP-420?
How long should I study for DP-420?
What happens on exam day for DP-420?
What is the passing score for DP-420 and what does it mean?
Can I retake DP-420 if I fail?
How long is the Azure Cosmos DB Developer Specialty certification valid?
What job role does DP-420 prepare me for?
How does DP-420 relate to DP-900 or DP-300?
Other Microsoft Exams
Free practice questions for more Microsoft certification exams
