exam questions

Exam AZ-304 All Questions

View all questions & answers for the AZ-304 exam

Exam AZ-304 topic 3 question 43 discussion

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

You are designing an Azure Cosmos DB solution that will host multiple writable replicas in multiple Azure regions.
You need to recommend the strongest database consistency level for the design. The solution must meet the following requirements:
✑ Provide a latency-based Service Level Agreement (SLA) for writes.
✑ Support multiple regions.
Which consistency level should you recommend?

  • A. bounded staleness
  • B. strong
  • C. session
  • D. consistent prefix
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
Each level provides availability and performance tradeoffs. The following image shows the different consistency levels as a spectrum.

Note: The service offers comprehensive 99.99% SLAs which covers the guarantees for throughput, consistency, availability and latency for the Azure Cosmos DB
Database Accounts scoped to a single Azure region configured with any of the five Consistency Levels or Database Accounts spanning multiple Azure regions, configured with any of the four relaxed Consistency Levels.
Incorrect Answers:
B: Strong consistency for accounts with regions spanning more than 5000 miles (8000 kilometers) is blocked by default due to high write latency. To enable this capability please contact support.
Reference:
https://azure.microsoft.com/en-us/support/legal/sla/cosmos-db/v1_3/ https://docs.microsoft.com/en-us/azure/cosmos-db/consistency-levels#consistency-levels-and-latency

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
booboo2k
Highly Voted 3 years, 9 months ago
Bounded staleness https://docs.microsoft.com/en-us/azure/cosmos-db/consistency-levels Bounded staleness is frequently chosen by globally distributed applications that expect low write latencies but require total global order guarantee. Bounded staleness is great for applications featuring group collaboration and sharing, stock ticker, publish-subscribe/queueing etc.
upvoted 18 times
...
exampass999
Highly Voted 3 years, 9 months ago
B: Strong ? https://docs.microsoft.com/ja-jp/azure/cosmos-db/consistency-levels
upvoted 5 times
examineezer
3 years, 7 months ago
Not if the regions span more than 5000 miles
upvoted 1 times
...
...
Dawn7
Most Recent 3 years, 3 months ago
Selected Answer: A
Seems correct
upvoted 1 times
...
examineezer
3 years, 5 months ago
"Provide a latency-based Service Level Agreement (SLA) for writes." is actually the key here I think. For Azure Cosmos accounts configured with strong consistency with more than one region, the write latency is equal to two times round-trip time (RTT) between any of the two farthest regions, plus 10 milliseconds at the 99th percentile. High network RTT between the regions will translate to higher latency for Cosmos DB requests since strong consistency completes an operation only after ensuring that it has been committed to all regions within an account. The exact RTT latency is a function of speed-of-light distance and the Azure networking topology. Azure networking doesn't provide any latency SLAs for the RTT between any two Azure regions, however it does publish Azure network round-trip latency statistics. https://docs.microsoft.com/en-us/azure/cosmos-db/consistency-levels
upvoted 1 times
examineezer
3 years, 5 months ago
See also here for Bounded Staleness write latency SLA https://azure.microsoft.com/en-gb/support/legal/sla/cosmos-db/v1_3/
upvoted 2 times
...
...
syu31svc
3 years, 8 months ago
Strong consistency for accounts with regions spanning more than 5000 miles (8000 kilometers) is blocked by default due to high write latency. To enable this capability please contact support. In session consistency, within a single client session reads are guaranteed to honor the consistent-prefix, monotonic reads, monotonic writes, read-your-writes, and write-follows-reads guarantees. In consistent prefix option, updates that are returned contain some prefix of all the updates, with no gaps. Consistent prefix consistency level guarantees that reads never see out-of-order writes. Answer is A
upvoted 3 times
...
icklebear
3 years, 9 months ago
A bounded stateless due to - https://docs.microsoft.com/en-us/azure/cosmos-db/consistency-levels#write-latency-and-strong-consistency this paragrpah "For Azure Cosmos accounts configured with strong consistency with more than one region, the write latency is equal to two times round-trip time (RTT) between any of the two farthest regions, plus 10 milliseconds at the 99th percentile. High network RTT between the regions will translate to higher latency for Cosmos DB requests since strong consistency completes an operation only after ensuring that it has been committed to all regions within an account. The exact RTT latency is a function of speed-of-light distance and the Azure networking topology. Azure networking doesn't provide any latency SLAs for the RTT between any two Azure regions, however it does publish Azure network round-trip latency statistics."
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 ...