Q15 Cosmos DB Domain 2 · 25–30% of exam Priority · Real Exam

A container stores chat history that should be removed automatically after 30 days. What is the correct configuration?

  1. A A scheduled Azure Function issuing bulk deletes
  2. B Container-level TTL set to 2592000 seconds (correct answer)
  3. C A retention policy on the account
  4. D Analytical store TTL

Shortcut: Setting DefaultTimeToLive on the container expires documents automatically using leftover RUs. Per-document ttl can override it. This is far cheaper than issuing explicit deletes.