DP-420 Practice Test

DP-420 Practice Test practice questions, page 10 of 11, with answer review and explanations.

Question 46

You have an Azure Cosmos DB for NoSQL container that contains the following item. You need to update the OrderQty value to 5 by using a patch operation. How should you complete the JSON Patch document? To answer, select the appropriate options in the answer area.

Question 47

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?

  1. Consistent Prefix
  2. Bounded Staleness
  3. Eventual
  4. Strong

Question 48

You have an Azure subscription. The subscription contains an Azure Cosmos DB for NoSQL account named account1 that uses a default consistency level of Consistent Prefix. You execute a SELECT query and specify the Consistent Prefix consistency level. You need to execute a second SELECT query during the same session and specify a lower consistency level. Which consistency level can be used for the second SELECT query?

  1. Session
  2. Strong
  3. Bounded Staleness
  4. Eventual

Question 49

You have an Azure subscription that contains an Azure Cosmos DB for NoSQL database named DB1. In DB1, you plan to create a container that will use a hierarchical partition key. You need to identify which hierarchical partition key path to use when adding new items to the container. Which SDK class should you use?

  1. CompositePath
  2. PartitionKeyDefinition
  3. PartitionKey
  4. PartitionKeyBuilder

Question 50

You are designing an Azure Cosmos DB for NoSQL data model that will contain authors, books the authors have written, and reviews of the books. You need to maintain referential integrity between entities by using server-side transactional support. What is the largest scope of the transactions you can use?

  1. items in the same container
  2. a single item
  3. items in the same database
  4. items in the same logical partition