Designing an Azure Data Solution (legacy) — Question 43
You need to recommend an Azure Cosmos DB solution that meets the following requirements:
✑ All data that was NOT modified during the last 30 days must be purged automatically.
✑ The solution must NOT affect ongoing user requests.
What should you recommend using to purge the data?
Answer options
- A. an Azure Cosmos DB stored procedure executed by an Azure logic app
- B. an Azure Cosmos DB REST API Delete Document operation called by an Azure function
- C. Time To Live (TTL) setting in Azure Cosmos DB
- D. an Azure Cosmos DB change feed queried by an Azure function
Correct answer: C
Explanation
The Time To Live (TTL) setting in Azure Cosmos DB allows for automatic deletion of items after a specified period, which in this case can be set to 30 days. This feature operates without impacting current user transactions, unlike the other options which might require manual intervention or could disrupt ongoing requests.