exam questions

Exam DP-420 All Questions

View all questions & answers for the DP-420 exam

Exam DP-420 topic 1 question 21 discussion

Actual exam question from Microsoft's DP-420
Question #: 21
Topic #: 1
[All DP-420 Questions]

You are building an application that will store data in an Azure Cosmos DB Core (SQL) API account. The account uses the session default consistency level. The account is used by five other applications. The account has a single read-write region and 10 additional read region.
Approximately 20 percent of the items stored in the account are updated hourly.
Several users will access the new application from multiple devices.
You need to ensure that the users see the same item values consistently when they browse from the different devices. The solution must NOT affect the other applications.
Which two actions should you perform? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.

  • A. Set the default consistency level to eventual
  • B. Associate a session token to the device
  • C. Use implicit session management when performing read requests
  • D. Provide a stored session token when performing read requests
  • E. Associate a session token to the user account
Show Suggested Answer Hide Answer
Suggested Answer: DE 🗳️

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
comoon
Highly Voted 9 months ago
Selected Answer: DE
In such case user would see the same data from the different device, because session would be the same
upvoted 8 times
...
imando
Highly Voted 11 months, 4 weeks ago
Selected Answer: DE
D and E are correct answers
upvoted 5 times
...
Garyn
Most Recent 7 months, 4 weeks ago
BC is the right answer. Please update. To ensure that users see the same item values consistently when browsing from different devices while not affecting the other applications, you should perform the following two actions: B. Associate a session token to the device: You should associate a session token with each user's device. This means that each device used by a user will have its own session token. This ensures that the same user, when browsing from different devices, maintains a consistent session with the Azure Cosmos DB. It allows users to see consistent item values across their devices. C. Use implicit session management when performing read requests: When performing read requests from the new application, use implicit session management. Implicit session management means that the SDK you are using to interact with Azure Cosmos DB automatically manages the session token for you. It keeps track of the session token associated with the device, ensuring that each read operation uses the correct session token. This ensures consistency for the user's session across devices. Here's an additional explanation of the options you should not select:
upvoted 1 times
...
AshishKu
8 months ago
D and E are correct. We login to device with a user-id so session token should be associated with user not device.
upvoted 2 times
...
krcmyoyo
9 months ago
Selected Answer: BC
B. By associating a session token with each device, you ensure that reads from the same device maintain consistent and up-to-date results. C. Implicit session management involves utilizing Cosmos DB's built-in session handling capabilities.
upvoted 2 times
...
azuredemo2022three
11 months ago
Selected Answer: BC
Selected Answer: BC
upvoted 2 times
...
azuredemo2022three
11 months, 2 weeks ago
B. Associate a session token to the device. C. Use implicit session management when performing read requests.
upvoted 2 times
...
aliounegdiop
11 months, 2 weeks ago
B. Associate a session token to the device. E. Associate a session token to the user account. By associating a session token to each device and user account, you can maintain consistency across multiple devices used by the same user. The session token represents a logical session and helps track the user's interaction with the data. This ensures that when the user switches between devices, they continue to see the same consistent data.
upvoted 1 times
...
[Removed]
1 year ago
Selected Answer: BD
By associating a session token to the device and providing a stored session token when performing read requests, the application ensures that the user sees the same item values consistently when browsing from different devices.
upvoted 1 times
...
arnabdt
1 year, 1 month ago
Selected Answer: BC
B. Associate a session token to the device: When a user logs in to the application from a device, a session token should be generated and associated with the device. This will ensure that subsequent requests from the same device are routed to the same backend server that served the first request, and the user will see consistent item values. C. Use implicit session management when performing read requests: When performing read requests, the application should use implicit session management. This means that the SDK will automatically manage the session token, and the user will continue to see consistent item values regardless of which backend server serves the request.
upvoted 3 times
arnabdt
1 year, 1 month ago
It talk about different devices so I think I will go with D & E.
upvoted 4 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 ...