Black Friday Flash Sale: Get 70% Off! Use coupon code below to save big on all exam bundles! Use coupon code below to save on all exam bundles!
Code: bestfriday
Ends in: 0d 00h 00m 00s

Free Practice Questions for the Microsoft Certified: Azure Cosmos DB Developer Specialty DP-420 Exam (2026 Updated)

At Marks4sure, we are dedicated to providing IT professionals with the most accurate and reliable preparation materials for the Microsoft DP-420 exam. To support your certification journey, we have made a selection of our premium 2026 Microsoft Certified: Azure Cosmos DB Developer Specialty practice questions and answers available completely free. You can take this practice test as many times as you need. Every question includes a detailed, expertly verified explanation to ensure you fully grasp the core security concepts before test day.

Questions 4

You have an Azure subscription that contains an Azure Cosmos DB for NoSQL account named Account1 and an Azure key vault named Vault1.

You plan to enable customer-managed keys and use an encryption key stored in Vault1 to encrypt data at rest.

You need to configure Account1 to use the key from Vault1. The solution must ensure that Account1 continues to operate if the key is rotated in Vault1.

What should you do? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

DP-420 Question 4

Options:

Buy Now
Questions 5

You have an Azure Cosmos DB for NoSQL account named account that has the disablekeyBasedletadatwriteAccess property enabled.

You are developing an app named App1 that will be used by a use1 named DevUser1 to create containers in account1. DevUser1 has a non-privileged user account in the Azure AD tenant.

You need to ensure that DevUser1 can use App1 to create containers in account1.

What should you do? To answer, select the appropriate options in the answer area.

NOTE Each correct selection is worth one point.

DP-420 Question 5

Options:

Buy Now

DP-420 Report Card

Questions 6

You have a development environment that uses multiple Azure subscriptions.

You plan to deploy a single Azure Cosmos DB account that will contain a single database in each subscription.

You need to automate the deployment by using an Azure Resource Manager (ARM) template. The solution must meet the following requirements:

• Minimize Azure Cosmos DB-related charges.

• Maximize the available request units per second (RU/s) without increasing costs.

How should you complete the template? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

DP-420 Question 6

Options:

Buy Now
Questions 7

You have an Azure-hosted solution named App1 that contains the following components:

• An Azure Cosmos DB for NoSQL account that has two containers named Orders and Reporting

• An Azure Functions app that contains the following functions:

o Function1: Uses an Azure Cosmos DS trigger that reacts the change feed from Orders and writes aggregated

sales data to Reporting

o function2: Reads the change feed from Orders to populate a search index

Both functions use the change feed in latest version mode.

In Appl. order cancelations trigger a hard delete of the order item from the Orders container. During peak periods, the same tern can be updated multiple times within a short interval.

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

NOTE: Each correct selection is worth one point.

DP-420 Question 7

Options:

Buy Now
Questions 8

You have an Azure Cosmos DB for NoSQL database named DB1 that hosts a container named Container1. The partition key for Container 1 is /pki.

You have a .NET app that connects to DBi.

You need to retrieve the request unit (RU) cost of a point operation and store the value as a variable.

How should you complete the C# code? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

DP-420 Question 8

Options:

Buy Now
Questions 9

You have a container named container1 in an Azure Cosmos DB Core (SQL) API account.

You need to provide a user named User1 with the ability to insert items into container1 by using role-based access control (RBAC). The solution must use the principle of least privilege.

Which roles should you assign to User1?

Options:

A.

CosmosDB Operator only

B.

DocumentDB Account Contributor and Cosmos DB Built-in Data Contributor

C.

DocumentDB Account Contributor only

D.

Cosmos DB Built-in Data Contributor only

Buy Now
Questions 10

You have an on-premises computer named Computer1 that runs Windows 11.

On Computer1, you install the Azure Cosmos DB Emulator by using the default settings. You need to connect to the API for NoSQL clients hosted by the emulator. What should you use?

Options:

A.

Computer1 and the credentials used when installing the emulator

B.

localhost :443 and the built-in Administrator user account credentials

C.

Computer1 and a randomly-generated key

D.

localhost: 8681 and a well-known key

Buy Now
Questions 11

You have an Azure subscription that contains an Azure Cosmos DB for NoSQL account named account1.

Backups for account1 have the following configurations:

• Interval: 2 hours

• Retention period: 4 days

You need to estimate the charges associated with the retention of the backups. How many copies of the backups will incur additional charges?

Options:

A.

8

B.

12

C.

46

D.

48

Buy Now
Questions 12

You maintain a relational database for a book publisher. The database contains the following tables.

DP-420 Question 12

The most common query lists the books for a given authorId.

You need to develop a non-relational data model for Azure Cosmos DB Core (SQL) API that will replace the relational database. The solution must minimize latency and read operation costs.

What should you include in the solution?

Options:

A.

Create a container for Author and a container for Book. In each Author document, embed booked for each book by the author. In each Book document embed author of each author.

B.

Create Author, Book, and Bookauthorlnk documents in the same container.

C.

Create a container that contains a document for each Author and a document for each Book. In each Book document, embed authorId.

D.

Create a container for Author and a container for Book. In each Author document and Book document embed the data from Bookauthorlnk.

Buy Now
Questions 13

You have a database in an Azure Cosmos DB for NoSQL account. The database contains a container named container1. The indexing mode container1 is set to none. You configure Azure Cognitive Search to extract data from container1 and make the data searchable. You discover that the Cognitive Search index is missing all the data from the Azure Cosmos DB index. What should you do to resolve the issue?

Options:

A.

Modify The index attributes in Cognitive Search to searchable.

B.

Modify the index attributes in Cognitive Search to Retrievable.

C.

Change the indexing mode of container 1 to consistent-

D.

Modify the indexing policy of container 1 to exclude the / * path

Buy Now
Questions 14

You have an Azure Cosmos DB Core (SQL) API account used by an application named App1.

You open the Insights pane for the account and see the following chart.

DP-420 Question 14

Use the drop-down menus to select the answer choice that answers each question based on the information presented in the graphic.

NOTE: Each correct selection is worth one point.

DP-420 Question 14

Options:

Buy Now
Questions 15

You have an Azure Cosmos DB Core (SQL) API account named account1 that has the disableKeyBasedMetadataWriteAccess property enabled.

You are developing an app named App1 that will be used by a user named DevUser1 to create containers in account1. DevUser1 has a non-privileged user account in the Azure Active Directory (Azure AD) tenant.

You need to ensure that DevUser1 can use App1 to create containers in account1.

What should you do? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

DP-420 Question 15

Options:

Buy Now
Questions 16

You have an Azure Cosmos DB for NoSQL account that contains a container named container1.

You plan to use container1 as a key-value store that will perform point reads on the item ID and partition key.

You need to define an indexing policy for container! The solution must meet the following requirements:

• Provide the ability to set DefauitTimeToLive for container1.

• Minimize implementation time.

• Minimize costs.

How should you complete the JSON definition of the indexing policy? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

DP-420 Question 16

Options:

Buy Now
Questions 17

You have the Azure Cosmos DB for NoSQL containers shown in the following table.

DP-420 Question 17

You have the items shown in the following table.

DP-420 Question 17

When will each item expire? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

DP-420 Question 17

Options:

Buy Now
Questions 18

You are developing a web app named App1 that will store customer-generated content in an Azure Cosmos DB for NoSQL database named DB1.

You configure an Azure Al Search indexer to automatically ingest documents from DB1 into an Azure Al Search index.

App1 uses REST APIs to provide advanced search and retrieval capabilities for the documents.

You need to identify which types of queries you can use in Azure Al Search to retrieve text data. The solution must minimize development effort

Which two query types can you use? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

Options:

A.

regular expression

B.

phonetic

C.

wildcard

D.

edge n-gram tokenization

E.

prefix

Buy Now
Questions 19

You have an Azure subscription that contains an Azure Cosmos DB for NoSQL account. You create a container and assign the following indexing policy.

DP-420 Question 19

You run the queries shown in the following table.

DP-420 Question 19

For each of the following statements, select yes if the statement is true. Otherwise, select No

NOTE: Each correct selection is worth one point.

DP-420 Question 19

Options:

Buy Now
Questions 20

You need to implement a trigger in Azure Cosmos DB Core (SQL) API that will run before an item is inserted into a container.

Which two actions should you perform to ensure that the trigger runs? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

Options:

A.

Append pre to the name of the JavaScript function trigger.

B.

For each create request, set the access condition in RequestOptions.

C.

Register the trigger as a pre-trigger.

D.

For each create request, set the consistency level to session in RequestOptions.

E.

For each create request, set the trigger name in RequestOptions.

Buy Now
Questions 21

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

You have a container named container! in an Azure Cosmos DB for NoSQL account.

You need to make the contents of container1 available as reference data for an Azure Stream Analytics job.

Solution: You create an Azure function that uses the Azure Cosmos 08 for NoSQL change feed as a trigger and an Azure event hub as the output.

Does this meet the goal?

Options:

A.

Yes

B.

No

Buy Now
Questions 22

You need to select the partition key for con-iot1. The solution must meet the IoT telemetry requirements.

What should you select?

Options:

A.

the timestamp

B.

the humidity

C.

the temperature

D.

the device ID

Buy Now
Questions 23

You have an application that queries an Azure Cosmos 06 for NoSQL account.

You discover that the following two queries run frequently,

DP-420 Question 23

You need to minimize the request units (RUs) consumed by reads and writes. What should you create?

Options:

A.

a composite index for (name DESC, time stamp ASC)

B.

a composite index for (name ASC, time stamp DESC)

C.

a composite index for (name ASC time stamp ASC) and a composite index for (name, time stamp disc)

D.

a composite index for (name ASC, time stamp ASC)

Buy Now
Questions 24

You have an Azure Cosmos DB database that contains a container named container 1. The container1 container is configured with a maximum of 20,000 RU/s and currently contains 240 GB of data.

You need to estimate the costs of container1 based on the current usage.

How many RU/s will be charged?

Options:

A.

240

B.

4.000

C.

20,000

D.

24000

Buy Now
Questions 25

You need to identify which connectivity mode to use when implementing App2. The solution must support the planned changes and meet the business requirements.

Which connectivity mode should you identify?

Options:

A.

Direct mode over HTTPS

B.

Gateway mode (using HTTPS)

C.

Direct mode over TCP

Buy Now
Questions 26

You need to recommend indexes for con-product and con-productVendor. The solution must meet the product catalog requirements and the business requirements.

Which type of index should you recommend for each container? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

DP-420 Question 26

Options:

Buy Now
Questions 27

You need to provide a solution for the Azure Functions notifications following updates to con-product. The solution must meet the business requirements and the product catalog requirements.

Which two actions should you perform? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

Options:

A.

Configure the trigger for each function to use a different leaseCollectionPrefix

B.

Configure the trigger for each function to use the same leaseCollectionNair.e

C.

Configure the trigger for each function to use a different leaseCollectionName

D.

Configure the trigger for each function to use the same leaseCollectionPrefix

Buy Now
Questions 28

You need to implement a solution to meet the product catalog requirements.

What should you do to implement the conflict resolution policy.

Options:

A.

Remove frequently changed field from the index policy of the con-product container.

B.

Disable indexing on all fields in the index policy of the con-product container.

C.

Set the default consistency level for account1 to eventual.

D.

Create a new container and migrate the product catalog data to the new container.

Buy Now
Questions 29

You need to select the capacity mode and scale configuration for account2 to support the planned changes and meet the business requirements. What should you select? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.

DP-420 Question 29

Options:

Buy Now
Questions 30

You are troubleshooting the current issues caused by the application updates.

Which action can address the application updates issue without affecting the functionality of the application?

Options:

A.

Enable time to live for the con-product container.

B.

Set the default consistency level of account1 to strong.

C.

Set the default consistency level of account1 to bounded staleness.

D.

Add a custom indexing policy to the con-product container.

Buy Now
Questions 31

You configure multi-region writes for account1.

You need to ensure that App1 supports the new configuration for account1. The solution must meet the business requirements and the product catalog requirements.

What should you do?

Options:

A.

Set the default consistency level of accountl to bounded staleness.

B.

Create a private endpoint connection.

C.

Modify the connection policy of App1.

D.

Increase the number of request units per second (RU/s) allocated to the con-product and con-productVendor containers.

Buy Now
Exam Code: DP-420
Exam Name: Designing and Implementing Cloud-Native Applications Using Microsoft Azure Cosmos DB
Last Update: Nov 15, 2026
Questions: 204

PDF + Testing Engine

$55.71   $185.69

Testing Engine

$42.85   $142.83

PDF (Q&A)

$47.13   $157.11