Microsoft DP-420 Practice Test - Questions Answers, Page 14
List of questions
Question 131

HOTSPOT
You have an Azure subscription.
You need to deploy the following resources to an Azure Cosmos DB for NoSQL account:
* A container
* A user-defined function (UDF)
The solution must minimize the possibility of the deployment failing.
How should you complete the template? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Question 132

HOTSPOT
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.
Question 133

HOTSPOT
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.
Question 134

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?
Question 135

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?
Question 136

DRAG DROP
You have an Azure Cosmos DB for NoSQL account.
You need to implement Always Encrypted for all the data stored in the account. The solution must minimize administrative effort.
At which level should you define the encryption policy and set the data encryption key? To answer, drag the appropriate levels to the correct requirements. Each 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.
Question 137

You plan to create an Azure Cosmos DB for NoSQL account that will have a single write region and three read regions. You need to set the consistency level for the account. The solution must meet the following requirements:
* In the write region, writes must replicate synchronously across at least three replicas.
* In the read regions, reads must see writes in order for transactional batches.
* Throughput for reads and writes must be maximized.
Which consistency level should you select?
Question 138

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.
Question 139

You have an app named App1 that uses an Azure Cosmos DB for NoSQL database.
App1 uses the spatial columns shown in the following table.
You need to design an indexing strategy for App1.
Which columns can be indexed by using spatial indexes?
Question