Developing Solutions for Microsoft Azure — Question 55
You are developing a Cosmos DB solution that will be deployed to multiple Azure regions.
Your solution must meet the following requirements:
• Read operations will never receive write operations that are out of order.
• Maximize concurrency of read operations in all regions.
You need to choose the consistency level for the solution.
Which consistency level should you use?
Answer options
- A. session
- B. eventual
- C. bounded staleness
- D. consistent prefix
Correct answer: D
Explanation
The correct answer is 'consistent prefix' because it guarantees that reads will see writes in the order they were completed, which meets the requirement of not receiving out-of-order operations. Other options like 'session' and 'eventual' do not provide the same level of consistency needed for this scenario, while 'bounded staleness' may allow some level of inconsistency as well.