exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 2 question 64 discussion

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

DRAG DROP -

You have an Azure Cosmos DB for NoSQL API account named account1 and a database named db1. An application named app1 will access db1 to perform read and write operations.

You plan to modify the consistency levels for read and write operations performed by app1 on db1.

You must enforce the consistency level on a per-operation basis whenever possible.

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

Which locations should you configure? To answer, move the appropriate locations to the correct operations. You may use each location once, more than once, or not at all. You may need to move the split bar between panes or scroll to view content.

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
de55d65
Highly Voted 5 months, 1 week ago
Hency only read can be overwritten by the SDK I'd go with read: app1 write: account1 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 5 times
Piddi
3 months, 4 weeks ago
Consistency can only be relaxed at the SDK instance or request level. To move from weaker to stronger consistency, update the default consistency for the Azure Cosmos DB account.
upvoted 1 times
...
Piddi
3 months, 4 weeks ago
Overriding the default consistency level only applies to reads within the SDK client. An account configured for strong consistency by default will still write and replicate data synchronously to every region in the account. 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
...
...
Alekeyh
Most Recent 4 weeks, 1 day ago
Answer is ok. Reads are flexible, writes are firm, only can be changed in the account.
upvoted 1 times
...
de55d65
5 months, 2 weeks ago
Shouldn't write be on the account hence the write consistency level cannot be set within the app?
upvoted 1 times
...
Mattt
5 months, 2 weeks ago
--per operation-- It should be app1 for read and write
upvoted 2 times
...
alvingeo
5 months, 4 weeks ago
It is app1 for both Read and Write operations, as per-operation consistency can be set from the client application level (app1) in this scenario.
upvoted 4 times
...
fc61c73
6 months ago
it is app1 for both, it says per operation that mean from client location in this case app1.
upvoted 3 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