nerdexam
Microsoft

AZ-204 · Question #447

An organization deploys Azure Cosmos DB. You need to ensure that the index is updated as items are created, updated, or deleted. What should you do?

The correct answer is D. Set the indexing mode to Consistent. Azure Cosmos DB supports two indexing modes: Consistent: The index is updated synchronously as you create, update or delete items. This means that the consistency of your read queries will be the consistency configured for the None: Indexing is disabled on the container…

Submitted by kev92· Mar 30, 2026Develop for Azure storage

Question

An organization deploys Azure Cosmos DB. You need to ensure that the index is updated as items are created, updated, or deleted. What should you do?

Options

  • ASet the indexing mode to Lazy.
  • BSet the value of the automatic property of the indexing policy to False.
  • CSet the value of the EnableScanInQuery option to True.
  • DSet the indexing mode to Consistent.

How the community answered

(44 responses)
  • A
    18% (8)
  • B
    5% (2)
  • C
    7% (3)
  • D
    70% (31)

Explanation

Azure Cosmos DB supports two indexing modes: Consistent: The index is updated synchronously as you create, update or delete items. This means that the consistency of your read queries will be the consistency configured for the None: Indexing is disabled on the container. https://docs.microsoft.com/en-us/azure/cosmos-db/index-policy

Topics

#Cosmos DB#indexing policy#consistent indexing#index management

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice