📁 Sangam Dhakal - Portfolio v2.0 - Netscape Navigator 4.0
_
□
×

📚 Interview question

How would you keep Azure AI Search in sync with a SQL Server database?

Intermediate Theory Intermediate

🎯 Key points

  • SQL stays the source of truth
  • Indexer with change tracking, or push via outbox
  • Soft-delete column or explicit delete handling
  • Idempotent upserts by document key
  • Monitor lag and failures
  • Full reindex with index aliasing for schema changes

⏱ 30-second answer

Keep SQL as the source of truth. Options: the Azure SQL indexer with change tracking (integrated change detection) pulls changes on a schedule, deletes via a soft-delete column; or push from the app with an outbox table processed by a background worker calling the Search API in batches; or CDC into a stream. Accept eventual consistency (seconds to minutes), make updates idempotent by document key, handle deletes explicitly, monitor indexer failures and lag, and support a full reindex into a new index with alias swap for schema changes.

🔍 What the interviewer is checking

Checks understanding of sync mechanisms, consistency and failure handling.

↩ Usually asked after

More in SQL Features

Last updated 23 Nov 2026.

🌐 Sangam's Webring

⏪ Previous 🏠 Main Next ⏩
💬 Chat with me