Microsoft Building AI Applications with Azure Cosmos DB DP-420 Exam Questions

Page: 1 / 14
Total 204 questions
Question 1

You have an Azure Cosmos OB for NoSQL account configured for global distribution across four regions. At connection time, the SQL SDK needs to identify the optimal endpoint for reading and writing. Which two factors can influence the SDK? Each correct answer presents a complete solution NOTE- Each correct selection is worth one point.



Answer : B, E


Question 2

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 to the blog post

Items in the blog post container will be partitioned based on the post ID. Items in the user container will be partitioned based on the user ID.

You need to minimize the number of request units allocated to queries that list all the posts of a given user. The solution must minimize administrative and development effort

What should you include in the solution?



Answer : D


Question 3

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?



Answer : B


Question 4

You have an Azure subscription.

You plan to implement an Azure Cosmos DB for NoSQL single-region write account named account1 that will replicate across two Azure regions.

You need to set the default consistency level for account1. The solution must meet the following requirements:

* Writes must be performed to a local majority in a single region.

* Reads must be performed from a local minority in a single region.

Which consistency level should you select?



Answer : D


Question 5

You have an Azure Cosmos DB for NoSQL database that hosts a container named Container^

You are developing a new app named App1 that will use Container 1.

You need to ensure that when App1 attempts to delete a document in Container1, the action is blocked, and an error is returned to the app.

What should you use?



Answer : D


Question 6

You have an Azure Cosmos DB for NoSQL container named Container1 that has a provisioned throughput of 1.000 request units per second (RU/s). Container1 is queried by using an app named App1.

Users of App1 report that several times a day, they receive the following error message: "HTTP error code 429." You need to improve the reliability of App1 without affecting the performance of the app. What are two ways to improve the reliability? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point.



Answer : C, E


Question 7

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?



Answer : B

You can facilitate aggregate data by using Change Feed and Azure Functions, and then use it for reporting.


Page:    1 / 14   
Total 204 questions