Question 240
In a cloud architecture review concerning cosmos db partitioning and throughput, stakeholders report: A dataset must expire individual documents after a specified lifespan without manual cleanup jobs. Which choice addresses the actual requirement?
Explanation
Correct Answer
Configure Cosmos DB time to live on the appropriate items or container. TTL automatically removes expired items under supported account configuration.
Incorrect Answers
Choose a partition key aligned with frequent tenant-scoped access addresses A multi-tenant Cosmos container must query all records for a tenant at low RU cost; Queries that include the partition key can avoid unnecessary cross-partition fan-out.
This option, Adjust provisioned or autoscale RU capacity after measuring requests and partition distribution, would fit the separate requirement A document store experiences provisioned throughput throttling during peak demand. Cosmos DB request units and partition load govern request capacity.
Redesign the query or data model around efficient partition-key filtering applies when A client submits a large analytical query without filtering by partition key and sees high RU usage, because cross-partition scans generally consume more ru than targeted partition queries.