Summer Sale 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: exams65

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 Jul 25, 2026
Total Questions : 194

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

$40.25  $114.99
DP-420 Engine

DP-420 Testing Engine

$47.25  $134.99
DP-420 PDF + Engine

DP-420 PDF + Testing Engine

$61.25  $174.99
Questions 1

You have an Azure Cosmos DB for NoSQL account named account1. You plan to implement a multi-region write scenario. You enable multi-region writes for account1.

Which two actions should you perform next? Each correct answer presents part of the solution. NOTE: Each correct answer is worth one point.

Options:

A.  

Set consistencyLevel to Eventual.

B.  

Set ApplicationRegion to the name of the deployed region.

C.  

Update connectionString.

D.  

Set UseMultipleWriteLocations to True.

Discussion 0
Questions 2

You have an Azure Cosmos DB for NoSQL account.

You need to create an Azure Monitor query that lists recent modifications to the regional failover policy.

Which Azure Monitor table should you query?

Options:

A.  

CDBPartitionKeyStatistics

B.  

CDBQueryRunTimeStatistics

C.  

CDBDataPlaneRequests

D.  

CDBControlPlaneRequests

Discussion 0
Questions 3

You have the indexing policy shown in the following exhibit.

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.

Options:

Discussion 0
Questions 4

You have a multi-region Azure Cosmos DB account named account1 that has a default consistency level of strong.

You have an app named App1 that is configured to request a consistency level of session.

How will the read and write operations of App1 be handled? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Options:

Discussion 0
Questions 5

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 an Azure Cosmos DB Core (SQL) API account named account 1 that uses autoscale throughput.

You need to run an Azure function when the normalized request units per second for a container in account1 exceeds a specific value.

Solution: You configure the function to have an Azure CosmosDB trigger.

Does this meet the goal?

Options:

A.  

Yes

B.  

No

Discussion 0
Questions 6

You have an Azure Cosmos DB container named owners. Each item in owners represents an owner and their pets. The following is a sample of the JSON

You are writing a query that will retrieve the average age of each pet owned by each owner, il the pet is older than two years.

How should you complete the query? To answer, drag the appropriate values to the correct targets. Each value may be used once, more than once, or not at all. You may need to drag the split bar between panes 01 scroll to view content.

NOTE: Each correct selection is worth one point.

Options:

Discussion 0
Questions 7

You have an Azure Cosmos DB for NoSQL account named account! that has a periodic backup policy with a four-hour backup interval and an eight-hour retention period. The account account contains a single database named db1 and containers that have stored procedures.

An administrator deletes db1 accidentally.

You need to ensure that the contents of db1, including all of its items, is available as soon as possible.

How should you perform the procedure? To answer, drag the missing actions to the correct order. Each action 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 8

Your company develops an application named App1 that uses the Azure Cosmos DB SDK and the Eventual consistency level.

App1 queries an Azure Cosmos DB for NoSQL account named account!

You need to identify which consistency level to assign to App1 to meet the following requirements:

• Maximize the throughput of the queries generated by App1 without increasing the number of request units currently used by the queries.

• Provide the highest consistency guarantees.

Which consistency level should you identify?

Options:

A.  

Strong

B.  

Bounded Staleness

C.  

Session

D.  

Consistent Prefix

Discussion 0
Questions 9

You plan to implement con-iot1 and con-iot2.

You need to configure the default Time to Live setting for each container. The solution must meet the loT telemetry requirements.

What should you configure? To answer, select the appropriate options in the answer NOTE: Each correct selection is worth one point.

Options:

Discussion 0
Questions 10

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 11

You have an Azure Resource Manager (ARM) template that provisions Azure Cosmos DB accounts and databases. The accounts are deployed to a single Azure region. The databases have provisioned throughput configured. The name of the region, the type of database throughput, and the throughput value are defined as template parameters.

You need to modify some of the Azure Cosmos DB accounts and databases based on the following scenarios:

• Scenario 1: Add a read region and increase the database throughput.

• Scenario 2: Change the provisioned database throughput to autoscale.

The solution must minimize administrative effort and the duration of the modifications.

What should you use for each scenario? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Options:

Discussion 0
Questions 12

You configure Azure Cognitive Search to index a container in an Azure Cosmos DB Core (SQL) API account as shown in the following exhibit.

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

NOTE: Each correct selection is worth one point.

Options:

Discussion 0
Questions 13

You have a database named telemetry in an Azure Cosmos DB Core (SQL) API account that stores IoT data. The database contains two containers named readings and devices.

Documents in readings have the following structure.

id

deviceid

timestamp

ownerid

measures (array)

- type

- value

- metricid

Documents in devices have the following structure.

id

deviceid

owner

- ownerid

- emailaddress

- name

brand

model

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 14

You have an Azure Cosmos DB for NoSQL account that uses the default consistency level. How can the consistency level be modified as part of a query request?

Options:

A.  

stronger consistency for read operations

B.  

stronger consistency for write operations

C.  

weaker consistency for read operations

D.  

weaker consistency for write operations

Discussion 0
Questions 15

You have an Azure Cosmos DB Core (SQL) API account that is used by 10 web apps.

You need to analyze the data stored in the account by using Apache Spark to create machine learning models. The solution must NOT affect the performance of the web apps.

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

NOTE: Each correct selection is worth one point.

Options:

A.  

In an Apache Spark pool in Azure Synapse, create a table that uses cosmos.olap as the data source.

B.  

Create a private endpoint connection to the account.

C.  

In an Azure Synapse Analytics serverless SQL pool, create a view that uses OPENROWSET and the CosmosDB provider.

D.  

Enable Azure Synapse Link for the account and Analytical store on the container.

E.  

In an Apache Spark pool in Azure Synapse, create a table that uses cosmos.oltp as the data source.

Discussion 0
Questions 16

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 container1 in an Azure Cosmos DB Core (SQL) API account.

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

Solution: You create an Azure Data Factory pipeline that uses Azure Cosmos DB Core (SQL) API as the input and Azure Blob Storage as the output.

Does this meet the goal?

Options:

A.  

Yes

B.  

No

Discussion 0
Questions 17

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 18

You are building an application that will store data in an Azure Cosmos DB for NoSQL account. The account uses the session default consistency level. The account is used by five other applications. The account has a single read-write region and 10 additional read regions.

Approximately 20 percent of the items stored in the account are updated hourly.

Several users will access the new application from multiple devices.

You need to ensure that the users see the same item values consistently when they browse from the different devices. The solution must not affect the other applications.

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

NOTE: Each correct selection is worth one point.

Options:

A.  

Use implicit session management when performing read requests.

B.  

Provide a stored session token when performing read requests.

C.  

Associate a session token to the user account.

D.  

Set the default consistency level to eventual.

E.  

Associate a session token to the device.

Discussion 0
Questions 19

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

You have the items shown in the following table.

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

NOTE: Each correct selection is worth one point.

Options:

Discussion 0
Questions 20

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 21

You have an Azure subscription that contains an Azure Cosmos DB for NoSQL account. You run the following query.

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 22

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.

Options:

Discussion 0
Questions 23

You have an Azure Cosmos DB database that hosts a container named container1.

You need to ensure that the items stored in contained will NOT expire unless their TTL value is set explicitly. What should you do?

Options:

A.  

Set the DefaulttimtoLive property to e.

B.  

Set the DefaultTineToLive property to -l.

C.  

Remove the DefaultTiiwroLive property.

D.  

Set the DefaultiiwioLive property to null.

Discussion 0
Questions 24

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 25

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

You have an app named App1 that connects to account1 and uses strong consistency for all requests.

You implement the Azure Cosmos DB integrated cache for account1.

You need to ensure that App1 uses the integrated cache.

What should you do?

Options:

A.  

Change the request consistency level to session.

B.  

Set MaxIntegratedCacheStaleness to 0.

C.  

Change the request consistency level to bounded staleness.

D.  

Set the connectivity mode to direct mode over TCP.

Discussion 0
Questions 26

The following is a sample of a document in orders.

The orders container uses customer as the partition key.

You need to provide a report of the total items ordered per month by item type. The solution must meet the following requirements:

Ensure that the report can run as quickly as possible.

Minimize the consumption of request units (RUs).

What should you do?

Options:

A.  

Configure the report to query orders by using a SQL query.

B.  

Configure the report to query a new aggregate container. Populate the aggregates by using the change feed.

C.  

Configure the report to query orders by using a SQL query through a dedicated gateway.

D.  

Configure the report to query a new aggregate container. Populate the aggregates by using SQL queries that run daily.

Discussion 0
Questions 27

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 28

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 29

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 30

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 31

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 32

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 33

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 34

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 35

You have an Azure Cosmos DB for NoSQL database named db1 that writes to multiple Azure regions. You need to test the performance of db1 in the secondary region. Which command should you run first?

Options:

A.  

az cosmosdb location show

B.  

az cosmosdb failover-priority-change

C.  

az cosmosdb network-rule remove

D.  

az cosmosdb sql database merge

Discussion 0
Questions 36

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 37

You have an Azure subscription. The subscription contains an Azure Cosmos DB for NoSQL account named account1 that hosts a container named Devices. Devices has a partition key named type.

You are evaluating the resource utilization of the query. How will the query be executed?

Options:

A.  

as an in-partition query

B.  

as a parallel cross-partition query

C.  

as a cross-partition query

Discussion 0