exam questions

Exam AZ-204 All Questions

View all questions & answers for the AZ-204 exam

Exam AZ-204 topic 3 question 63 discussion

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

You manage an Azure Cosmos DB for a NoSQL API account named account1. The account contains a database named db1, which contains a container named container1. You configure account1 with a session consistency level.

You plan to develop an application named App1 that will access container1. Individual instances of App1 must perform reads and writes. App1 must allow multiple nodes to participate in the same session.

You need to configure an object to share the session token between the nodes.

Which object should you use?

  • A. Document response
  • B. Request options
  • C. Feed options
  • D. Connection policy
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
czegi90
4 months, 1 week ago
Selected Answer: B
https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/how-to-manage-consistency?tabs=portal%2Cdotnetv2%2Capi-async#utilize-session-tokens
upvoted 2 times
...
examtopicsLogin123
4 months, 2 weeks ago
Selected Answer: B
In .NET SDK V2 it is: RequestOptions.SessionToken in .NET SDK V3 it is: ItemRequestOptions.SessionToken "If you wanted these nodes to participate in the same session ... you would have to send the SessionToken from FeedResponse<T> of the write action to the end-user ... to the CosmosClient for subsequent reads." "To manage session tokens manually, get the session token from the response and set them per request." https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/how-to-manage-consistency#utilize-session-tokens FeedOptions also have the SessionToken property https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.documents.client.feedoptions.sessiontoken
upvoted 3 times
...
Mattt
5 months, 3 weeks ago
Selected Answer: B
B. Request option
upvoted 1 times
...
Vichu_1607
5 months, 3 weeks ago
Selected Answer: B
B. Request options: The RequestOptions object allows you to specify options for individual requests, including the session token. By setting the session token in the RequestOptions, you can ensure that multiple nodes in your application share the same session token, thereby maintaining session consistency across those nodes.
upvoted 1 times
...
overhill
5 months, 4 weeks ago
For me it is Request Options the object we have to set with the session token example here: https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.documents.client.requestoptions.sessiontoken?view=azure-dotnet
upvoted 3 times
...
passme847
6 months, 1 week ago
Selected Answer: A
https://learn.microsoft.com/en-us/dotnet/api/microsoft.azure.documents.client.requestoptions.sessiontoken?view=azure-dotnet
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