HOTSPOT - You have an Azure Cosmos DB Core (SQL) API account named account1 that has the disableKeyBasedMetadataWriteAccess property enabled. You are developing an app named App1 that will be used by a user named DevUser1 to create containers in account1. DevUser1 has a non-privileged user account in the Azure Active Directory (Azure AD) tenant. You need to ensure that DevUser1 can use App1 to create containers in account1. What should you do? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Hot Area:
正解と解説を表示
正解
CB
解説
With disableKeyBasedMetadataWriteAccess enabled, use RBAC to grant container creation permissions. Container creation is a control-plane operation via the Azure Resource Manager API.
問題 2
HOTSPOT - You have an Azure Cosmos DB Core (SQL) account that has a single write region in West Europe. You run the following Azure CLI script. For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point. Hot Area:
正解と解説を表示
正解
YNN
解説
failover-priority-change makes North Europe the write region. West Europe becomes read-only. Adding a region increases cost.
問題 3
You are developing an application that will use an Azure Cosmos DB Core (SQL) API account as a data source. You need to create a report that displays the top five most ordered fruits as shown in the following table. A collection that contains aggregated data already exists. The following is a sample document: Which two queries can you use to retrieve data for the report? Each correct answer presents a complete solution. NOTE: Each correct selection is worth one point. A. B. C. D.
A. SELECT TOP i.name, i.types, i.orders FROM items i WHERE EXISTS(SELECT VALUE t FROM t IN i.types WHERE t.name = 'fruit') ORDER BY i.orders, i.types
B. SELECT TOP i.name, i.types, i.orders FROM items i WHERE EXISTS(SELECT VALUE t FROM t IN i.types WHERE t.name = 'fruit') ORDER BY i.orders DESC
C. SELECT TOP i.name, i.types, i.orders FROM items i WHERE EXISTS(SELECT VALUE t FROM t IN i.types WHERE t.name = 'fruit') ORDER BY i.types DESC
D. SELECT TOP i.name, i.types, i.orders FROM items i WHERE ARRAY_CONTAINS(i.types, {name: 'fruit'}) ORDER BY i.orders DESC
正解と解説を表示
正解
BD
解説
Top five fruits require ORDER BY i.orders DESC. Options B and D filter fruit items and sort by orders descending.
問題 4
HOTSPOT - You have a database in an Azure Cosmos DB Core (SQL) API account. You plan to create a container that will store employee data for 5,000 small businesses. Each business will have up to 25 employees. Each employee item will have an emailAddress value. You need to ensure that the emailAddress value for each employee within the same company is unique. To what should you set the partition key and the unique key? To answer, select the appropriate options in the answer area. NOTE: Each correct selection is worth one point. Hot Area:
正解と解説を表示
正解
AB
解説
Use companyId as partition key. Unique key on emailAddress enforces uniqueness per company (logical partition).
問題 5
HOTSPOT - You have a container named container1 in an Azure Cosmos DB Core (SQL) API account. The container1 container has 120 GB of data. The following is a sample of a document in container1. The orderId property is used as the partition key. For each of the following statements, select Yes if the statement is true. Otherwise, select No. NOTE: Each correct selection is worth one point. Hot Area:
正解と解説を表示
正解
YYN
解説
Partition key is orderId. Queries without orderId equality are cross-partition. Query with orderId equality is single-partition.