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

Microsoft DP-420 Designing and Implementing Cloud-Native Applications Using Microsoft Azure Cosmos DB Exam Practice Test

Demo: 39 questions
Total 204 questions

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

Question 1

You have a database in an Azure Cosmos DB for NoSQL account that is configured for multi-region writes.

You need to use the Azure Cosmos DB SDK to implement the conflict resolution policy for a container. The solution must ensure that any conflict sent to the conflict feed.

Solution: You set ConfilictResolutionMode to Custom. You Set ResolutionProcedures to a custom stored procedure. You configure the custom stored procedure to use the conflictingItems parameter to resolve conflict.

Does this meet the goal?

Options:

A.

Yes

B.

No

Question 2

You have a global ecommerce application that stores data in an Azure Cosmos OB for NoSQL account. The account is contoured for multi-region writes.

You need to create a stored procedure for a custom conflict resolution policy for a new container. In the event of a conflict caused by a deletion the deletion must always take priority.

Which parameter should you check m the stored procedure function?

Options:

A.

conf1ictingItems

B.

is Tombstone

C.

existingitem

D.

incoming1tem

Question 3

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

You have an application named App1 that caches customers and must be notified when the list of customers changes.

You implement a change feed. The Time to Live settings have the default values.

You discover the following:

• Notifications for INSERT and UPDATE operations are received within 10 seconds.

• Notifications for DELETE operations are NOT received.

Which two actions should you perform to ensure that App1 receives notifications for DELETE operations? Each correct answer present part of the solution.

NOTE: Each correct selection is worth one point.

Options:

A.

Add a post-trigger.

B.

Use an UPDATE instead of a DELETE.

C.

Add an IsDeleted flag to the items.

D.

Increase the TTL

E.

Add a pre-trigger.

Question 4

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

Question 5

You have an Azure Cosmos DB account named accounts

You need to access account1 from an on-premises environment by using a Site-to-Site VPN. What should you use?

Options:

A.

a private endpoint

B.

Azure Synapse Link

C.

a dedicated gateway

Question 6

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:

Question 7

You are designing three apps named App1, App2, and App3. Each app will use a separate Azure Cosmos DB for NoSQL account. The apps have the following consistency requirements:

• App1: Reads must always return the most recent committed version of an item, where the commit occurred during the same session.

• App2: Reads must always return the most recent committed version of an item, even if the commit occurred during another session.

• App3: Write latency must be minimized and data staleness can be tolerated.

You need to recommend a default consistency level for each Azure Cosmos DB for NoSQL account. The solution must maximize concurrency.

What should you recommend for the account of each app? To answer, drag the appropriate consistency levels to the correct apps. Each consistency level 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:

Question 8

You have an Azure Cosmos DB for NoSQL account named account1 that has a single read-write region and one additional read region. Account1 uses the strong default consistency level.

You have an application that uses the eventual consistency level when submitting requests to account1.

How will writes from the application be handled?

Options:

A.

Writes will use the strong consistency level.

B.

Azure Cosmos DB will reject writes from the application.

C.

The write order is not guaranteed during replication.

D.

Writes will use the eventual consistency level.

Question 9

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

You plan to implement the integrated cache for account1.

You need to configure the connectivity mode and the consistency level for requests that target account1. The solution must maximize consistency while using the integrated cache.

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

NOTE: Each correct selection is worth one point.

Options:

Question 10

You have three containers in an Azure Cosmos DB Core (SQL) API account as shown in the following table.

You have the following Azure functions:

A function named Fn1 that reads the change feed of cn1

A function named Fn2 that reads the change feed of cn2

A function named Fn3 that reads the change feed of cn3

You perform the following actions:

Delete an item named item1 from cn1.

Update an item named item2 in cn2.

For an item named item3 in cn3, update the item time to live to 3,600 seconds.

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:

Question 11

You have an Azure Cosmos DB for NoSQL account that contains a database named DB1 and a container named Container1. You need to manage the account by using the Azure Cosmos DB SDK. What should you do?

Options:

A.

List the physical partitions of Container1.

B.

Read a stored procedure in Container1.

C.

Create a user defined function (UDF) in Container1.

D.

Create a container in DB1.

Question 12

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.

Question 13

You have an Azure subscription that contains the resources shown in the following table.

In CosmosDB1, you plan to create a container named Container1 that will store sensitive data.

You need to ensure that Container1 uses Always Encrypted for Azure Cosmos DB.

Which three actions should you perform in sequence? To answer, move the appropriate actions from the list of actions to the answer area and arrange them in the correct order.

Options:

Question 14

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:

Question 15

You have an Azure subscription that contains an Azure Cosmos DB for NoSQL database named DB1. The shared throughput provisioned for DB1 is 10,000 DTU/s. DB1 contains the containers shown in the following table.

You need to modify the throughput for the containers. The solution must meet the following requirements:

• The maximum throughput for Container1 must be 4,000 DTU/s.

• The throughput for Contained must be shared across the containers.

• Administrative effort must be minimized.

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

Options:

Question 16

You plan to create a container named Container1 in an Azure Cosmos DB for NoSQL account Container! will store items that contain user sign-in session data from multiple organizations. Each user is assigned to a single organization.

Contained will include the following properties:

• Userld

• Sessionld

• SessionStart

• Organizationld

The following are common queries served by Container1.

SELECT SessionID,SessionStart,UserID FROM c WHERE Organizationld = 6 AND Userld = 50143

SELECT SessionID,SessionStart,UserID FROM c WHERE Organizationld - 6

You need to recommend a partitioning scheme for Container! that meets the following requirements:

You need to recommend a partitioning scheme for Container! that meets the following requirements:

• Maximizes performance

• Minimizes the cost of read queries

• Minimizes the possibility of reaching the partition size limits

Which type of partition key and which partition key properties should you include in the recommendation? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Options:

Question 17

You have an Azure Cosmos DB for NoSQL account named account1 that stores loT telemetry from 50.000 devices across 10 distinct. Each device writes one 1-KB document per second, Each document includes three properties named deviceld, districtld-. and tinestamp.

You need to implement a partitioning solution that meets the following requirements:

* Ensures that queries for a single device remain routable without scanning all the partitions *Ensures that no single device5 data can exceed the logical partition limit of account1

* Prevents concentrating all the writes for a time window into a single logical partition

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

NOTE: Each correct selection is worth one point.

Options:

Question 18

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.

Question 19

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.

Question 20

You are designing an Azure Cosmos DB for NoSQL solution.

You plan to create a new container named Container1 that will store product data for automotive repair pans as shown in the following table.

The data will be stored in Container! as shown in the following table

You need to recommend a data partitioning solution for the database. The solution must spread the workload to minimize I/O contention.

Which column should you recommend for the physical partition key and the logical partition key? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Options:

Question 21

You have an Azure subscription. The subscription contains an Azure Cosmos DB for NoSQL account named account! that hosts a container named Container 1. Container! has a provisioned throughput of 100 request units per second (RU/s) and uses a single physical partition.

Vou are evaluating the available throughput for Container1.

What is the maximum burst capacity that Container1 can accumulate?

Options:

A.

300 RU/s

B.

1,000 RU/s

C.

30,000 RU/s

D.

100.000 RU/s

Question 22

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:

Question 23

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:

Question 24

You have an Azure Cosmos DB for NoSQL database that hosts a container named Container1. Container1 stores customer documents that have the following structure.

You need to retrieve the city of residence and the age of each customer who is older than 40.

Which three statements should you run in sequence to build the query? To answer, move the appropriate statements from the list of statements to the answer area and arrange them in the correct order.

Options:

Question 25

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:

Question 26

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

You configure the diagnostic settings to send all log information to a Log Analytics workspace.

You need to identify when the provisioned request units per second (RU/s) for resources within the account were modified.

You write the following query.

AzureDiagnostics

| where Category == " ControlPlaneRequests "

What should you include in the query?

Options:

A.

| where OperationName startswith " AccountUpdateStart "

B.

| where OperationName startswith " SqlContainersDelete "

C.

| where OperationName startswith " MongoCollectionsThroughputUpdate "

D.

| where OperationName startswith " SqlContainersThroughputUpdate "

Question 27

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

The following is a sample of a document in container1.

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:

Question 28

You have an Azure subscription that contains an Azure Cosmos DB for NoSQL account named account! You plan to configure the Apache Kafka service as a data source for account 1. What should you use to store the Kafka configuration?

Options:

A.

Azure Key Vault

B.

Apache Gremlin

C.

ApacheZooKeeper

D.

Apache Tomcat

Question 29

You have a database in an Azure Cosmos DB for NoSQL account that is configured for multi-region writes.

You need to use the Azure Cosmos DB SDK to implement the conflict resolution policy for a container. The solution must ensure that any conflict sent to the conflict feed.

Solution: You set ConfilictResolutionMode to Custom and you use the default settings for the policy.

Does this meet the goal?

Options:

A.

Yes

B.

No

Question 30

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

Question 31

You plan to create an Azure Cosmos DB Core (SQL) API account that will use customer-managed keys stored in Azure Key Vault.

You need to configure an access policy in Key Vault to allow Azure Cosmos DB access to the keys.

Which three permissions should you enable in the access policy? Each correct answer presents part of the solution.

NOTE: Each correct selection is worth one point.

Options:

A.

Wrap Key

B.

Get

C.

List

D.

Update

E.

Sign

F.

Verify

G.

Unwrap Key

Question 32

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:

Question 33

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.

Question 34

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.

Question 35

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

Question 36

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

Question 37

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:

Question 38

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.

Question 39

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

Demo: 39 questions
Total 204 questions