A multi-tenant corporate wellness application tracks daily employee physical activity logs in an Azure Cosmos DB API for NoSQL container. The application's workload profile is as follows:
- The platform supports corporate clients (tenants), each with up to employees.
- Users write multiple activity log entries throughout the day.
- A background process performs transactional batch operations using `TransactionalBatch` to update an employee's daily activity summary item and append new activity log items. These operations must succeed or fail together.
- You must ensure the container scales to handle write ingestion without reaching the 20 GB logical partition limit or creating hot partitions.
Which two actions should you perform to implement a partitioning strategy that meets these requirements? (Select two.)
- Create a synthetic partition key by concatenating the employee ID and the current date (e.g., employeeId_YYYYMMDD) to use as the container's partition key.Answer
- Ensure all items updated or created within a single TransactionalBatch use the same concatenated employee ID and date value as their partition key.Answer
- CConfigure tenantId as the partition key of the container to allow transactional batches across all employees of a tenant.
- DConfigure activityId (a unique GUID) as the partition key of the container to maximize write distribution across physical partitions.