Knowledge check

Completed
1.

You are writing a C# application that interfaces with Azure Cosmos DB for NoSQL and are now tasked with creating a custom indexing policy in code. Which class should you use to author your new indexing policy and customize the indexing mode, enable automatic updates, and set the include/exclude paths?

2.

The most used query in your Azure Cosmos DB for NoSQL application is SELECT * FROM products p ORDER BY p.name ASC, p.price ASC. You would like to define a composite index to make the query more efficient and consume fewer RU/s. Which composite index should you use to support this query?