DRAG DROP - You are developing a new page for a website that uses Azure Cosmos DB for data storage. The feature uses documents that have the following format: Y...


Microsoft AZ-204 Exam

Questions Number: 101 out of 355 Questions
28.45%

Question 101
DRAG DROP -
You are developing a new page for a website that uses Azure Cosmos DB for data storage. The feature uses documents that have the following format:
AZ-204_101Q_1.png related to the Microsoft AZ-204 Exam
You must display data for the new page in a specific order. You create the following query for the page:
AZ-204_101Q_2.png related to the Microsoft AZ-204 Exam
You need to configure a Cosmos DB policy to support the query.
How should you configure the policy? To answer, drag the appropriate JSON segments to the correct locations. Each JSON segment 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.
Select and Place:
AZ-204_101Q_3.png related to the Microsoft AZ-204 Exam



Box 1: compositeIndexes -
You can order by multiple properties. A query that orders by multiple properties requires a composite index.
Box 2: descending -
Example: Composite index defined for (name ASC, age ASC):
It is optional to specify the order. If not specified, the order is ascending.
{
"automatic":true,
"indexingMode":"Consistent",
"includedPaths":[
{
"path":"/*"
}
],
"excludedPaths":[],
"compositeIndexes":[
[
{
"path":"/name",
},
{
"path":"/age",
}
]
]
}





Previous Questions Next Questions