Developing Solutions for Microsoft Azure — Question 39

You are developing an inventory tracking solution. The solution includes an Azure Function app containing multiple functions triggered by Azure Cosmos DB. You plan to deploy the solution to multiple Azure regions.

The solution must meet the following requirements:

• Item results from Azure Cosmos DS must return the most recent committed version of an item.
• Items written to Azure Cosmos DB must provide ordering guarantees.

You need to configure the consistency level for the Azure Cosmos DB deployments.

Which consistency level should you use?

Answer options

Correct answer: D

Explanation

The correct answer is D, strong consistency, as it guarantees that any read operation will return the most recent committed version of an item, meeting the first requirement. It also ensures that operations are ordered, which satisfies the second requirement. The other options either provide weaker consistency guarantees or allow for stale reads, which do not fulfill the requirements stated.