DP-420 Practice Test practice questions, page 6 of 11, with answer review and explanations.
Question 26
You plan to store order data in an Azure Cosmos DB Core (SQL) API account. The data contains information about orders and their associated items. You need to develop a model that supports order read operations. The solution must minimize the number of requests. What should you do?
Create a database for orders and a database for order items.
Create a single database that contains a container for orders and a container for order items.
Create a single database that contains one container. Store orders and order items in separate documents in the container.
Create a single database that contains one container. Create a separate document for each order and embed the order items into the order documents.
Question 27
You have a container in an Azure Cosmos DB Core (SQL) API account. The container stores telemetry data from IoT devices. The container uses telemetryId as the partition key and has a throughput of 1,000 request units per second (RU/s). Approximately 5,000 IoT devices submit data every five minutes by using the same telemetryId value. You have an application that performs analytics on the data and frequently reads telemetry data for a single IoT device to perform trend analysis. The following is a sample of a document in the container. You need to reduce the amount of request units (RUs) consumed by the analytics application. What should you do?
Decrease the offerThroughput value for the container.
Increase the offerThroughput value for the container.
Move the data to a new container that uses a partition key of deviceId.
Move the data to a new container that uses a partition key of temp.
Question 28
You plan to use a multi-region Azure Cosmos DB Core (SQL) API account to store data for a new application suite. The suite contains the applications shown in the following table. Each application should use the weakest consistency level possible. Which consistency level should you configure for each application? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.
Question 29
You are designing a data model for an Azure Cosmos DB Core (SQL) API 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.
Question 30
You have an Azure Cosmos DB container named container1. You need to insert an item into container1. The solution must ensure that the item is deleted automatically after two hours. How should you complete the item definition? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point.