Designing and Implementing Cloud-Native Applications Using Microsoft Azure Cosmos DB — Question 31

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?

Answer options

Correct answer: D

Explanation

The correct answer is D, PartitionKeyBuilder, as it provides the functionality to construct partition keys hierarchically. The other options, while related to partition keys, do not specifically cater to the building process required for hierarchical partition keys.