You are designing an Azure Cosmos DB database that will use the SQL API. The database will receive data from loT devices. The loT devices will insert documents that have the following structure.
Customer data will be recorded in the database also. The documents for the customer data have the following structure.
Most queries to the database will return loT data and will filter the results based on the date.
You need to implement a partitioning strategy that will minimize the number of request units (RUs) consumed.
What should you do?
A . Create a collection for loT documents and a collection for customer documents. For the lol document collection, set the partition key to device id. For the customer document collection, set the partition key to id.
B . Create a collection Set the partition key to date, Embed the lol data into the customer data.
C . Create a collection for loT documents and a collection for customer documents. For the lol document collection set the partition key to date. For the customer document collection, set the partition key to id.
D . Create a collection. Set the partition key to device id. Embed the loT data into the customer data.
Answer: A