あなたは、customers という名前のコンテナを含む Azure Cosmos DB for NoSQL アカウントを持っています。 顧客情報をキャッシュするApp1という名前のアプリケーションがあり、顧客リストが変更されたときに通知を受け取る必要があります。 変更フィードを実装します。有効期限設定にはデフォルト値が設定されています。 あなたは以下のことを発見します。 * INSERTおよびUPDATE操作に関する通知は10秒以内に受信されます。 * DELETE操作に関する通知は受信されません。 App1がDELETE操作の通知を確実に受信できるようにするには、どの2つの操作を実行する必要がありますか? 正解はそれぞれ、解答の一部を示しています。 注:正解ごとに1ポイントが加算されます。
正解:B,C
Implement "Soft Deletes" You can use a soft-delete pattern to make deletions visible to the standard change feed. The Process: Update, don't delete: Instead of a hard delete, update the contact with a property like "isDeleted": true. Set TTL: Apply a small Time to Live (TTL) value (e.g., 60 seconds) to that specific item. Capture Change: The change feed sees this as an update and notifies your app. Final Deletion: Azure Cosmos DB will automatically hard-delete the item once the TTL expires. Reference: https://docs.azure.cn/en-us/cosmos-db/change-feed-design-patterns