exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 3 question 40 discussion

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

HOTSPOT
-

You provisioned an Azure Cosmos DB for NoSQL account named account1 with the default consistency level.

You plan to configure the consistency level on a per request basis. The level needs to be set for consistent prefix for read and write operations to account1.

You need to identify the resulting consistency level for read and write operations.

Which levels should you configure? To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

Show Suggested Answer Hide Answer
Suggested Answer:

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
adilkhan
Highly Voted 2 years ago
Just passed the exam 26/04/2023. All the questions were from Exam topics. Got 970 marks!
upvoted 30 times
[Removed]
1 year, 9 months ago
useless comment
upvoted 19 times
LucreziaB
1 year, 9 months ago
Still more useful than yours :)
upvoted 40 times
...
...
Christian_garcia_martin
9 months, 1 week ago
congrats i got 984 in AZ-900 but i don't think i will get similar score in AZ-204
upvoted 1 times
...
UzrShkl
1 year, 11 months ago
Bro you had the contributor access?
upvoted 5 times
Christian_garcia_martin
9 months, 1 week ago
you can't get 970 only with the 100 firts questions.
upvoted 1 times
...
Rodikito
1 year, 8 months ago
of course
upvoted 1 times
...
...
Ciupaz
1 year, 5 months ago
Never seen a score so high.
upvoted 4 times
...
...
adilkhan
Highly Voted 2 years ago
both should be consistent prefix
upvoted 18 times
Makonee
1 year, 9 months ago
Wrong. The Given answer is correct. Only Read Consistency can be set by client. Write stays at server setting which is session by default. https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/how-to-manage-consistency?tabs=portal%2Cdotnetv2%2Capi-async#override-the-default-consistency-level
upvoted 21 times
Vladimir_Gajinov
1 year, 8 months ago
You are right, the given answer is correct. Microsoft documentation states: Overriding the default consistency level only applies to <b>reads</b> within the SDK client. <b>An account configured for strong consistency by default will still write and replicate data synchronously to every region in the account.</b> When the SDK client instance or request overrides this with Session or weaker consistency, reads will be performed using a single replica.
upvoted 1 times
giuliohome
10 months ago
Still very confusing explanation. The other thing you must consider is that the level can only be relaxed. In conclusion I guess you have to configur prefix for write because it cannot be change while you can configure strong for read because it can be relaxed on a per SDK request basis.
upvoted 1 times
...
...
...
b1992
1 year, 9 months ago
could you explain why?
upvoted 2 times
...
...
Jay456
Most Recent 7 months ago
Read operations will result in consistent prefix. Write operations will remain session because of the settings of the storage account.
upvoted 2 times
...
ciamp
8 months, 2 weeks ago
For Azure Cosmos DB, when you provision an account with a default consistency level, you can override this setting on a per-request basis. Here's how you should configure the consistency levels for read and write operations to achieve a consistent prefix: Read operations: Consistent Prefix Write operations: Consistent Prefix By setting both read and write operations to the Consistent Prefix level, you ensure that the data is read and written in the order in which it was updated, without requiring a strong consistency level, which can be more resource-intensive. This guarantees that reads never see out-of-order writes.
upvoted 1 times
...
Christian_garcia_martin
9 months, 1 week ago
Both are consistent prefix .
upvoted 1 times
...
giuliohome
10 months ago
My answer would be that the resulting levels are both consisten prefix because it is written that they are set like that at account level and it is only possible to relax them via SDK (and only for read), so it would exclude strong and session as resulting levels for read or any other for write
upvoted 1 times
...
1989jay
1 year, 3 months ago
This question was on exam. 09/01/2024. Passed 872.
upvoted 4 times
...
CarlosTheBoldest
1 year, 4 months ago
I got this question on my exam, 2023Dec, go with what I remember was the most voted answer. Score 902, most of the questions were here, slightly different on wording because the Azure Ad <-> Entra Id change. Case was City Power & Light. Good luck! Important tip, you have access to microsoft learn during the exam!
upvoted 7 times
LittleBean
1 year, 4 months ago
Hi, does all question were from exam topic? Did you bought contributor access? And what does it mean by case study city power and light. In free version I haven't came across thus term/ farmer case study
upvoted 1 times
...
...
richardc7
1 year, 7 months ago
got in 28/09/2023
upvoted 1 times
...
seanzhenxiao
1 year, 8 months ago
Sorry, my first cmmt is error I think should be : read: consistent prefix, write: session 1. default level is session 2. override only work for read 3. To move from weaker to stronger consistency, update the default consistency for the Azure Cosmos DB account strong > boundary > session > consistent prefix > eventually https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/how-to-manage-consistency?tabs=portal%2Cdotnetv2%2Capi-async#override-the-default-consistency-level
upvoted 6 times
...
seanzhenxiao
1 year, 8 months ago
I think should be session, session 1. default level is session 2. override only work for read 3. To move from weaker to stronger consistency, update the default consistency for the Azure Cosmos DB account https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/how-to-manage-consistency?tabs=portal%2Cdotnetv2%2Capi-async#override-the-default-consistency-level
upvoted 1 times
...
Dianahu
1 year, 9 months ago
answer is here: https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/how-to-manage-consistency?tabs=portal%2Cdotnetv2%2Capi-async#override-the-default-consistency-level Overriding the default consistency level only applies to reads within the SDK client. defaut consistency is session
upvoted 6 times
[Removed]
1 year, 9 months ago
Now I get it! Appreciated.
upvoted 2 times
...
...
Mark16
1 year, 10 months ago
stupid question xD
upvoted 4 times
...
dy0917
2 years ago
Any explanation? For read operations with the requirement of consistent prefix, the resulting consistency level option is C. Consistent prefix. Following is what ChatGPT said, but I am not convinced. For write operations, there is no consistency level option called "Consistent prefix". The available options are Strong, Bounded staleness, Session, and Eventual. If you want to ensure consistency prefix for write operations, you should choose Strong consistency level.
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