Halloween Sale Special 75% Discount offer - Ends in 0d 00h 00m 00s - Coupon code: 75brite

ExamsBrite Dumps

Designing and Implementing Cloud-Native Applications Using Microsoft Azure Cosmos DB Question and Answers

Designing and Implementing Cloud-Native Applications Using Microsoft Azure Cosmos DB

Last Update Oct 24, 2026
Total Questions : 204

We are offering FREE DP-420 Microsoft exam questions. All you do is to just go and sign up. Give your details, prepare DP-420 free exam questions and then go for complete pool of Designing and Implementing Cloud-Native Applications Using Microsoft Azure Cosmos DB test questions that will help you more.

DP-420 pdf

DP-420 PDF

$28.75  $114.99
DP-420 Engine

DP-420 Testing Engine

$33.75  $134.99
DP-420 PDF + Engine

DP-420 PDF + Testing Engine

$43.75  $174.99
Questions 1

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.

Options:

Discussion 0
Questions 2

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.

Discussion 0
Questions 3

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.

Discussion 0
Questions 4

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

Discussion 0
Questions 5

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

Discussion 0
Questions 6

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

Discussion 0
Questions 7

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.

Options:

Discussion 0
Questions 8

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.

Discussion 0
Questions 9

Vou have an Azure subscription. The subscription contains an Azure Cosmos DB for NoSQL account named account1 that hosts a container named Customers. Multi-region writes are allowed.

You execute the following C# code.

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

NOTE: Each correct selection is worth one point.

Options:

Discussion 0
Questions 10

You have an Azure Cosmos DB for NoSQL account that contains a database named DB1. Users run the following query against DB1.

You add an index to the recordset.

You need to change the ORDER by syntax of the query to optimize the use of the index. The solution must NOT change the result set.

Which syntax should you use?

Which syntax should you use?

Options:

A.  

ORDER BY c._ts MSC, c.bikeParts ASC

B.  

ORDER BY c._ts ASC, c.bikeParts DESC

C.  

ORDER BY c.bikeParts ASC, c._ts ASC

D.  

order BY c.bikeParts DESC, c._ts ASC

Discussion 0
Questions 11

You have an Azure Cosmos DB for NoSQL account that has multiple write regions.

You need to receive an alert when requests that target the database exceed the available request units per second (RU/s).

Which Azure Monitor signal should you use?

Options:

A.  

Region Removed

B.  

Provisioned Throughput

C.  

Metadata Requests

D.  

Data Usage

Discussion 0
Questions 12

You have an Azure Cosmos DB for NoSQL account. The account hosts a container that has the change feed enabled. You are building an app by using the Azure Cosmos DB SDK. The app will read items from the change feed by using a pull model. You need to ensure that multiple threads can read the change feed in parallel. What should you include?

Options:

A.  

the changeFeedStartFew value

B.  

the Pagesize value

C.  

the FeedRange value

D.  

a stream-based iterator

Discussion 0
Questions 13

You have an Azure Cosmos DB for NoSQL account that hosts a container named Container1. The items in Container1 are stored in the following format.

You need to write a query to return the Given and Family names of the children in Family1.

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

NOTE: Each correct selection is worth one point

Options:

Discussion 0
Questions 14

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.

Options:

Discussion 0
Questions 15

You have a container named container1 in an Azure Cosmos DB Core (SQL) API account. Upserts of items in container1 occur every three seconds.

You have an Azure Functions app named function1 that is supposed to run whenever items are inserted or replaced in container1.

You discover that function1 runs, but not on every upsert.

You need to ensure that function1 processes each upsert within one second of the upsert.

Which property should you change in the Function.json file of function1?

Options:

A.  

checkpointInterval

B.  

leaseCollectionsThroughput

C.  

maxItemsPerInvocation

D.  

feedPollDelay

Discussion 0
Questions 16

You have a container in an Azure Cosmos DB for NoSQL account that stores data about orders.

The following is a sample of an order document.

Documents are up to 2 KB.

You plan to receive one million orders daily.

Customers will frequently view their past order history.

You are the evaluating whether to use order-Date as the partition key.

What are two effects of using order-Date as the partition key? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

Options:

A.  

You will exceed the maximum number of partition key values.

B.  

You will exceed the maximum storage per partition.

C.  

There will always be a hot partition.

D.  

Queries will run cross-partition.

Discussion 0
Questions 17

You have a database named db1in an Azure Cosmos DB for NoSQL account named account 1.

You need to write JSON data to db1 by using Azure Stream Analytics. The solution must minimize costs.

Which should you do before you can use db1 as an output of Stream Analytics?

Options:

A.  

in account, add a private endpoint.

B.  

In db1, create containers that have a custom indexing policy and analytical store disabled.

C.  

In account, enable a dedicated gateway.

D.  

In db1, create containers that have an automatic indexing policy and analytical store enabled.

Discussion 0
Questions 18

You plan to create an Azure Cosmos DB database named db1 that will contain two containers. One of the containers will contain blog posts, and the other will contain users. Each item in the blog post container will include:

• A single blog post

• All the comments associated to the blog post

• The names of the users who created the blog post and added the comments.

You need to design a solution to update usernames m the user container without causing data integrity issues. The solution must minimize administrative and development effort. What should you include in the solution? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Options:

Discussion 0
Questions 19

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

Discussion 0
Questions 20

You are designing an Azure Cosmos DB Core (SQL) API solution to store data from IoT devices. Writes from the devices will be occur every second.

The following is a sample of the data.

You need to select a partition key that meets the following requirements for writes:

Minimizes the partition skew

Avoids capacity limits

Avoids hot partitions

What should you do?

Options:

A.  

Use timestamp as the partition key.

B.  

Create a new synthetic key that contains deviceId and sensor1Value.

C.  

Create a new synthetic key that contains deviceId and deviceManufacturer.

D.  

Create a new synthetic key that contains deviceId and a random number.

Discussion 0
Questions 21

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

Discussion 0
Questions 22

You have an Azure Cosmos DB Core (SQL) API account that is configured for multi-region writes. The account contains a database that has two containers named container1 and container2.

The following is a sample of a document in container1:

{

" customerId " : 1234,

" firstName " : " John " ,

" lastName " : " Smith " ,

" policyYear " : 2021

}

The following is a sample of a document in container2:

{

" gpsId " : 1234,

" latitude " : 38.8951,

" longitude " : -77.0364

}

You need to configure conflict resolution to meet the following requirements:

For container1 you must resolve conflicts by using the highest value for policyYear.

For container2 you must resolve conflicts by accepting the distance closest to latitude: 40.730610 and longitude: -73.935242.

Administrative effort must be minimized to implement the solution.

What should you configure for each container? To answer, drag the appropriate configurations to the correct containers. Each configuration may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.

NOTE: Each correct selection is worth one point.

Options:

Discussion 0
Questions 23

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

You add a composite index to the default indexing policy of Container1. The index has the following definition.

FirstName ASC, age ASC

You plan to execute the following query against Container1.

You need to optimize the performance of the query by adding an additional index.

How should you complete the additional index? To answer, select the appropriate options in the answer area

NOTE: Each correct selection is worth one point.

Options:

Discussion 0
Questions 24

You have the following Azure Resource Manager (ARM) template.

You plan to deploy the template in incremental mode.

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

Options:

Discussion 0
Questions 25

You have an Azure Cosmos DB for NoSQL database named DB1 that hosts a container named Contained. The partition key for Container! is /city.

You are developing a cloud-native app named App1 that will store customer information in DB1. App1 will perform transactional batch operations to update the items in Contained.

You need to configure App1 to meet the following requirements:

• Ensure that batch operations are rolled back if an item ' s ETag value has changed since the value was last read.

• Ensure that all operations in the batch apply to a single partition key value.

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.

Options:

Discussion 0
Questions 26

You have a database in an Azure Cosmos DB Core (SQL) API account.

You need to create an Azure function that will access the database to retrieve records based on a variable named accountnumber. The solution must protect against SQL injection attacks.

How should you define the command statement in the function?

Options:

A.  

cmd = " SELECT * FROM Persons pWHERE p.accountnumber = ' accountnumber ' "

B.  

cmd = " SELECT * FROM Persons pWHERE p.accountnumber = LIKE @accountnumber "

C.  

cmd = " SELECT * FROM Persons pWHERE p.accountnumber = @accountnumber "

D.  

cmd = " SELECT * FROM Persons pWHERE p.accountnumber = ' " + accountnumber + " ' "

Discussion 0
Questions 27

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

You need to write a SQL query that will return multiple items. The solution must meet the following requirements:

• For each item returned, include the current Coordinated Universal Time (UTC) date and time, formatted as an ISO 8601 string.

• Minimize development effort.

What should you use?

Options:

A.  

a user-defined function

B.  

GetCurrentTimestamp{)

C.  

DateTimePart()

D.  

GetCurrentDateTime()

Discussion 0
Questions 28

You have an Azure Cosmos DB for NoSQL account.

You plan 10 create a container named container1. The container1 container will store items that include two properties named nm and age

The most commonly executed queries will query container1 for a specific name. The following is a sample of the query.

You need to define an opt-in Indexing policy for container1. The solution must meet the following requirements:

• Minimize the number of request units consumed by the queries.

• Ensure that the _etag property is excluded from indexing.

How should you define the indexing poky? To answer, select the appropriate options in the answer area. NOTE: Each correct selection Is worth one point.

Options:

Discussion 0
Questions 29

You are designing a data model for an Azure Cosmos DB for NoSQL account.

What are the partition limits for request units per second (RU/s) and storage? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Options:

Discussion 0
Questions 30

You have an Azure subscription that contains an Azure Cosmos DB for NoSQL database named DB1.

You develop a software as a service (SaaS) app named App1 that uses DB1. App1 will be used by multiple vendors to manage their customers.

You need to create a container in DB1 that will store customer and order details for each vendor. The solution must meet the following requirements:

• Each vendor must have a unique tenant ID.

• The performance of the container must be optimized for reads.

• Customer IDs can be duplicated across the container but must be unique for each vendor.

• The container must be optimized for concurrent queries from multiple customers. Each query will return data for a single vendor.

How should you configure the container?

Options:

A.  

Add a partition key to the tenant ID and a unique key policy to the customer ID.

B.  

Add hierarchical partition key on (tenant identifier, customer identifier).

C.  

Add a partition key to the customer ID and a unique key policy to the tenant ID.

D.  

Add hierarchical partition key on (customer identifier, tenant identifier).

Discussion 0
Questions 31

Vou have an Azure Cosmos DB for NoSQL account that hosts a container named Container1. Contained has analytical store enabled, analytical TTL is set to 7 flays.

An application performs frequent updates to Container 1 and uses TTL to remove expired items.

Vou plan to build an incremental export from Container! to a downstream sink by using change data capture (CDC) in the analytical store and running the export from Azure Data Factory mapping data flows-

You need to configure CDC to meet the following requirement!

• The first run must include only changes from the last three days.

• The RUs required to perform the first run must be minimized.

• Subsequent runs must capture inserts updates, deletes, and TTL operations.

• The process must NOT rely on custom checkpoints based on the _is property,

Which CDC start option should you configure for the source?

Options:

A.  

Start from the beginning, and set analytical TTL to 3 days so that the first CDC read contains only the last three days.

B.  

Start from a specific timestamp set to now. and configure the pipeline to backfill the previous three days by querying the analytical store with a _is fitter

C.  

Start from a specific timestamp set to three days ago.

D.  

Start from the beginning, and set the dataflow to write rows only where the CDC operation time is within the last three days.

Discussion 0
Questions 32

You have a database named db1 in an Azure Cosmos DB for NoSQL

You are designing an application that will use dbl.

In db1, you are creating a new container named coll1 that will store in coll1.

The following is a sample of a document that will be stored in coll1.

The application will have the following characteristics:

• New orders will be created frequently by different customers.

• Customers will often view their past order history.

You need to select the partition key value for coll1 to support the application. The solution must minimize costs.

To what should you set the partition key?

Options:

A.  

id

B.  

customerId

C.  

orderDate

D.  

orderId

Discussion 0
Questions 33

You have an application named App1 that reads the data in an Azure Cosmos DB Core (SQL) API account. App1 runs the same read queries every minute. The default consistency level for the account is set to eventual.

You discover that every query consumes request units (RUs) instead of using the cache.

You verify the IntegratedCacheiteItemHitRate metric and the IntegratedCacheQueryHitRate metric. Both metrics have values of 0.

You verify that the dedicated gateway cluster is provisioned and used in the connection string.

You need to ensure that App1 uses the Azure Cosmos DB integrated cache.

What should you configure?

Options:

A.  

the indexing policy of the Azure Cosmos DB container

B.  

the consistency level of the requests from App1

C.  

the connectivity mode of the App1 CosmosClient

D.  

the default consistency level of the Azure Cosmos DB account

Discussion 0
Questions 34

You have a container that stores data about families. The following is a sample document.

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

NOTE: Each correct selection is worth one point.

Options:

Discussion 0
Questions 35

You have an Azure subscription that contains an Azure Cosmos DB for NoSQL account. You define and implement an encryption policy by using the following C# code.

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

NOTE: Each correct selection is worth one point.

Options:

Discussion 0
Questions 36

You have a database named db1 in an Azure Cosmos DB f You have a third-party application that is exposed thro You need to migrate data from the application to a What should you use?

Options:

A.  

Database Migration Assistant

B.  

Azure Data Factory

C.  

Azure Migrate

Discussion 0
Questions 37

You are creating a database in an Azure Cosmos DB Core (SQL) API account. The database will be used by an application that will provide users with the ability to share online posts. Users will also be able to submit comments on other users ' posts.

You need to store the data shown in the following table.

The application has the following characteristics:

Users can submit an unlimited number of posts.

The average number of posts submitted by a user will be more than 1,000.

Posts can have an unlimited number of comments from different users.

The average number of comments per post will be 100, but many posts will exceed 1,000 comments.

Users will be limited to having a maximum of 20 interests.

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

NOTE: Each correct selection is worth one point.

Options:

Discussion 0
Questions 38

You have an Azure Cosmos DB account that hosts a single container named Container1. Container1 contains items that include two properties named Tenantld and Userld. Container1 has logical partitions based on the Tenantld property.

You need to configure subpartitioning for Container1 based on the Userld property. The solution must maximize data availability.

What should you do first?

Options:

A.  

Enable the analytical store for Container1.

B.  

Create a composite index.

C.  

Create a new container.

D.  

Create a stored procedure.

Discussion 0
Questions 39

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

You run the queries shown in the following table.

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

NOTE: Each correct selection is worth one point.

Options:

Discussion 0