Question 46
DP-420 Practice Test
DP-420 Practice Test practice questions, page 10 of 11, with answer review and explanations.
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?
- Consistent Prefix
- Bounded Staleness
- Eventual
- 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?
- Session
- Strong
- Bounded Staleness
- 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?
- CompositePath
- PartitionKeyDefinition
- PartitionKey
- 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?
- items in the same container
- a single item
- items in the same database
- items in the same logical partition