exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 2 question 25 discussion

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

DRAG DROP -
You are developing a solution for a hospital to support the following use cases:
✑ The most recent patient status details must be retrieved even if multiple users in different locations have updated the patient record.
✑ Patient health monitoring data retrieved must be the current version or the prior version.
✑ After a patient is discharged and all charges have been assessed, the patient billing record contains the final charges.
You provision a Cosmos DB NoSQL database and set the default consistency level for the database account to Strong. You set the value for Indexing Mode to
Consistent.
You need to minimize latency and any impact to the availability of the solution. You must override the default consistency level at the query level to meet the required consistency guarantees for the scenarios.
Which consistency levels should you implement? To answer, drag the appropriate consistency levels to the correct requirements. Each consistency level may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content.
NOTE: Each correct selection is worth one point.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: Strong -
Strong: Strong consistency offers a linearizability guarantee. The reads are guaranteed to return the most recent committed version of an item. A client never sees an uncommitted or partial write. Users are always guaranteed to read the latest committed write.

Box 2: Bounded staleness -
Bounded staleness: The reads are guaranteed to honor the consistent-prefix guarantee. The reads might lag behind writes by at most "K" versions (that is
"updates") of an item or by "t" time interval. When you choose bounded staleness, the "staleness" can be configured in two ways:
The number of versions (K) of the item
The time interval (t) by which the reads might lag behind the writes

Box 3: Eventual -
Eventual: There's no ordering guarantee for reads. In the absence of any further writes, the replicas eventually converge.
Incorrect Answers:
Consistent prefix: Updates that are returned contain some prefix of all the updates, with no gaps. Consistent prefix guarantees that reads never see out-of-order writes.
Reference:
https://docs.microsoft.com/en-us/azure/cosmos-db/consistency-levels

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
AndresMza
Highly Voted 4 years, 1 month ago
Answers are correct
upvoted 78 times
...
mlantonis
Highly Voted 3 years, 11 months ago
Box 1: Strong Box 2: Bounded staleness Box 3: Eventual Note: Consistent prefix: Updates that are returned contain some prefix of all the updates, with no gaps. Consistent prefix guarantees that reads never see out-of-order writes. Reference: https://docs.microsoft.com/en-us/azure/cosmos-db/consistency-levels
upvoted 34 times
TakumaK
3 years, 10 months ago
what is the Note for in your comment? you just copied it from the correct answer description which doesn't make sense to me.
upvoted 27 times
MrAzz
1 year, 6 months ago
Consistent Prefix: This guarantees that a read operation will return the most recent version of the data written (the order is correct), but it could be outdated. It does not guarantee the most recent value of all writes anywhere. For example, if data is written in A, B, C order, the user may get A, B or A, B, C. It will not get out of order writes such as A, C or A, C, B. https://www.mssqltips.com/sqlservertip/7158/azure-cosmos-db-consistency-levels-strong-bounded-staleness-session-consistent-prefix-eventual/
upvoted 3 times
AhmedAbdelAziz
1 year, 2 months ago
Consistent Prefix keep the order only within transaction , but with single write it behave like Eventual
upvoted 2 times
...
...
...
...
Thameur01
Most Recent 4 weeks, 1 day ago
Strong Bounded Staleness Strong: final charges = most recent data
upvoted 2 times
...
heptadecane
5 months, 2 weeks ago
Strong, Strong, Eventual > Return the most recent patient status : **Strong** > Strong consistency offers a linearizability guarantee. The reads are guaranteed to return the most recent committed version of an item. A client never sees an uncommitted or partial write. Users are always guaranteed to read the latest committed write. > > Return health monitoring data that is no less than one version behind : **Strong** > Bounded staleness The reads are guaranteed to honor the consistent-prefix guarantee. The reads might lag behind writes by at most "K" versions of an item or by "t" time interval. > However, For a single region account, the minimum value of K and T is 10 write operations or 5 seconds. For multi-region accounts the minimum value of K and T is 100,000 write operations or 300 seconds. > Therefore, in order to ensure data is no less than once version behind, Strong consistency should be used. > After patient is discharged and all charges are assessed, retrieve the correct billing data with the final charges : **Eventual** > In the absence of any further writes, the replicas eventually converge.
upvoted 1 times
...
Christian_garcia_martin
8 months, 1 week ago
Box 3 is Eventual and not strong ,once all charges are assessed billing information wont change frequently and latency for retrieval is an important factor so . Strong , Bounded stanless , Eventual
upvoted 1 times
...
DaniloPeres
9 months, 2 weeks ago
Box 3 should be Strong From ChatGPT Key Consideration: Correct Billing Data: This implies that the data must be accurate and reflect the final charges without any inconsistencies. Decision: Strong Consistency is the safest choice for retrieving the final billing data because it ensures that you get the latest and accurate charges immediately after all assessments are done. Eventual Consistency might result in retrieving stale data if you read the billing information before the system has converged to the latest state. This could lead to inaccuracies in billing, which is unacceptable in a healthcare billing context.
upvoted 3 times
...
AhmedAbdelAziz
1 year, 2 months ago
We all Agreed that Box 1: Strong Box 2: Bounded staleness For Box 3 : it should be Strong as you should issue the bill with all the items added , for example in the Right Region you have item1 , item2, item3 if you use Bounded staleness or Eventual you may read in the time you issue the bill from read region item1, item2 only and for financial matter it's disaster and for the bill the order doesn't matter what matter is you should issue the bill with all items
upvoted 5 times
...
dddddd111
1 year, 5 months ago
This is in my exam last Sept 20, 2023. I chose same answers.
upvoted 3 times
Ciupaz
1 year, 4 months ago
Exam passed?
upvoted 1 times
...
...
agiler
1 year, 6 months ago
for box 3, why should i risk to have a wrong bill because the database was not aligned yet?
upvoted 4 times
...
shekhar11
1 year, 7 months ago
In my exam on 22sep 2023
upvoted 2 times
...
kingAzure
1 year, 8 months ago
Got this Q on my exam 25/08/2023
upvoted 2 times
yawxir
1 year, 7 months ago
Hi, How was your exam, considering the latest Open Book development ?
upvoted 1 times
...
...
jakobste
1 year, 8 months ago
In a real world scenario, if the last charge is applied and then the final bill is immediately generated from a query against the database you might be in trouble with eventual consistency. However, if you can read the data as events in order asynchronous it would not be a problem. I don't think i would go through the effort though, i would just use strong consistency to generate the final bill.
upvoted 2 times
yawxir
1 year, 7 months ago
Agreed. I think the answer in last should be Strong consistency due to financially critical scenario.
upvoted 2 times
...
...
JH81
1 year, 10 months ago
Got this on 6/28/2023 and passed with 850. Went with answer.
upvoted 4 times
...
Sleepers
1 year, 10 months ago
Got this question on 27/06/2023
upvoted 1 times
...
LanGo
2 years ago
Got this question today (17/04/2023). Answered strong, bounded staleness, eventual. Result: 846
upvoted 5 times
...
Papit
2 years ago
rcvd this question 04/2023
upvoted 1 times
...
Una20
2 years, 1 month ago
received the qn in exam 02/2022
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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago