exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 3 question 58 discussion

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

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?

  • A. session
  • B. eventual
  • C. bounded staleness
  • D. consistent prefix
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
de55d65
Highly Voted 6 months, 3 weeks ago
Selected Answer: D
What we can rule out is B eventual, since there can be out-of-order reads, and C, since the question does not contain any information about a boundary. If the wording of the question was "consistency" instead of "concurrency", I would go for A "session". Therefore I'd expect the lower the consistency, the higher the concurrency. I would go for D Consistent prefix. Reference: https://learn.microsoft.com/en-us/azure/cosmos-db/consistency-levels No words about concurrency there.
upvoted 9 times
...
patrykcpt
Most Recent 5 days, 9 hours ago
Selected Answer: D
Since consistent prefix allows for a consistent read for e.g. 2 write operations (documents aren’t returned in mixed versions), then same applies for 3, 4, 5 etc., which means more write operations can be done in parallel. Hence the answer D, consistent prefix allows for bigger concurrency.
upvoted 1 times
...
DanielRO
5 months, 1 week ago
Selected Answer: D
ChatGPT response: Consistent prefix.
upvoted 1 times
...
Jay456
6 months, 3 weeks ago
Selected Answer: D
After reading the documentation I fully agree with de55d65's explanation and choose D as well.
upvoted 2 times
...
Vichu_1607
7 months, 1 week ago
Selected Answer: C
C. bounded staleness: Bounded staleness consistency ensures that reads never see out-of-order writes and provides a lag window within which the data might be stale. This consistency level guarantees that reads are consistent within a specified staleness window, which meets the requirement of never receiving out-of-order writes. It also allows for high concurrency of read operations across multiple regions.
upvoted 3 times
...
Mattt
7 months, 3 weeks ago
Selected Answer: C
C is the correct answer Bounded staleness guarantees that read operations will never see writes out of order, which directly addresses your requirement for ensuring that read operations never receive write operations that are out of order. It also maximizes the concurrency of read operations in multiple regions while providing a guarantee that reads lag behind writes by a certain staleness window (defined in terms of time or number of versions). This balance between consistency and availability fits your scenario well.
upvoted 4 times
...
passme847
7 months, 3 weeks ago
Selected Answer: D
"Consistent prefix consistency, the reads never see out of order writes for a transactional batch of writes" https://learn.microsoft.com/en-us/azure/cosmos-db/consistency-levels
upvoted 1 times
Mattt
7 months, 3 weeks ago
But it doesn’t maximize the concurrency
upvoted 2 times
Jay456
6 months, 3 weeks ago
Neither does bounded staleness
upvoted 1 times
...
...
...
ns4098
8 months ago
Selected Answer: C
Why not C?
upvoted 2 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 ...