An Azure Cosmos DB deployment must update its index whenever items are created, updated, or deleted. Which setting ensures the index is updated immediately on write operations?
Choose an answer
Tap an option to check your answer.
Correct answer: Set the indexing mode to Consistent..
Why this is the answer
Setting the indexing mode to Consistent ensures that the index is updated synchronously during every write operation (create, update, or delete). This guarantees that queries reflect the latest data immediately. Lazy indexing mode updates the index asynchronously, leading to a delay before new data appears in queries. Setting the automatic property of the indexing policy to False disables automatic indexing, requiring manual index management. The EnableScanInQuery option allows queries to perform scans when an index lookup isn't possible, but it doesn't control when the index itself is updated.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed