exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 3 question 27 discussion

Actual exam question from Microsoft's AZ-204
Question #: 27
Topic #: 3
[All AZ-204 Questions]

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?

  • A. Set the indexing mode to Lazy.
  • B. Set the value of the automatic property of the indexing policy to False.
  • C. Set the value of the EnableScanInQuery option to True.
  • D. Set the indexing mode to Consistent.
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
finnishr
Highly Voted 1 year, 8 months ago
Correct !!!
upvoted 14 times
...
kayvg
Highly Voted 8 months, 2 weeks ago
Answer: D (consistent) Setting indexing mode to consistent ensures that index is updated in sync with data Setting it to lazy means index is updated async, meaning you may not get latest version of data Setting the value of the automatic property to false means you have to manually manage indexing of data Setting EnableScanInQuery to true allows query operations to perform scans across all documents, this is not really relevant + it provides poor performance
upvoted 7 times
...
lyggwtwtczxnhznebw
Most Recent 9 months, 3 weeks ago
Selected Answer: D
Setting the indexing mode to Consistent ensures that the index is always kept up to date with the changes made to the items in Azure Cosmos DB. With this mode, whenever an item is created, updated, or deleted, the index is automatically updated in real-time to reflect those changes.
upvoted 1 times
...
[Removed]
1 year, 1 month ago
Selected Answer: D
D indexing mode ensures that the index is always up-to-date with the data stored in the container and changes are immediately reflected in the index.
upvoted 1 times
...
Esward
1 year, 3 months ago
Given answer is correct. 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 account. None: Indexing is disabled on the container. This mode is commonly used when a container is used as a pure key-value store without the need for secondary indexes. It can also be used to improve the performance of bulk operations. After the bulk operations are complete, the index mode can be set to Consistent and then monitored using the IndexTransformationProgress until complete.
upvoted 4 times
...
OPT_001122
1 year, 4 months ago
Selected Answer: D
D. Set the indexing mode to Consistent.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago