exam questions

Exam DP-420 All Questions

View all questions & answers for the DP-420 exam

Exam DP-420 topic 2 question 8 discussion

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

You have an Azure Cosmos DB Core (SQL) API account named account1 that supports an application named App1. App1 uses the consistent prefix consistency level.
You configure account1 to use a dedicated gateway and integrated cache.
You need to ensure that App1 can use the integrated cache.
Which two actions should you perform for App1? Each correct answer presents part of the solution.
NOTE: Each correct selection is worth one point.

  • A. Change the consistency level of requests to session.
  • B. Change the account endpoint to http://account1.documents.azure.com.
  • C. Change the account endpoint to http://account1.sqlx.cosmos.azure.com.
  • D. Change the connection mode to direct.
  • E. Change the consistency level of requests to strong.
Show Suggested Answer Hide Answer
Suggested Answer: AC 🗳️

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
TRUESON
Highly Voted 1 year, 7 months ago
All dedicated gateway connection strings follow the same pattern. Remove documents.azure.com from your original connection string and replace it with sqlx.cosmos.azure.com A C
upvoted 13 times
...
Tuopikson
Most Recent 3 months, 1 week ago
Selected Answer: AC
The integrated cache in Azure Cosmos DB can be used only when the consistency level is set to either session or consistent prefix. Since App1 initially uses the consistent prefix consistency level, you need to adjust it to session (A), as session consistency is supported by the integrated cache. The dedicated gateway and its integrated cache require using a specific endpoint format (sqlx.cosmos.azure.com) to access the cache. So, you need to change the account endpoint to http://account1.sqlx.cosmos.azure.com (C). Why not the other options? B. Change the account endpoint to http://account1.documents.azure.com: This is the default endpoint format for Cosmos DB but does not support the integrated cache. D. Change the connection mode to direct: The connection mode must remain as gateway when using the integrated cache. E. Change the consistency level of requests to strong: The integrated cache does not support strong consistency.
upvoted 1 times
...
YellowSky002
4 months, 2 weeks ago
Selected Answer: AB
I change my answer. The integrated cache uses the dedicated gateway within your Azure Cosmos DB account. The integrated cache only works with the Direct connection mode in the Cosmos DB SDK. Make sure App1 is configured to use this mode. While Consistent Prefix works with integrated cache, yet Microsoft recommends using Session consistency for optimal cache hit rates. If your application's design allows, consider switching to Session consistency to potentially further improve performance.
upvoted 1 times
...
YellowSky002
5 months, 1 week ago
Selected Answer: AD
The integrated cache only works with the Direct connection mode in the Cosmos DB SDK. Make sure App1 is configured to use this mode. While Consistent Prefix works with integrated cache, yet Microsoft recommends using Session consistency for optimal cache hit rates. If your application's design allows, consider switching to Session consistency to potentially further improve performance. https://learn.microsoft.com/en-us/azure/cosmos-db/integrated-cache
upvoted 1 times
RosaHutor
3 months, 2 weeks ago
Thanks AI, but you are totally wrong. To use integrated cache you definitely need to use Gateway mode instead of Direct
upvoted 1 times
...
...
3709334
5 months, 3 weeks ago
Selected Answer: AC
AC are the correct options
upvoted 1 times
...
Blubb1860
11 months, 3 weeks ago
Selected Answer: AC
A and C is correct. The endpoint needs to change and only Session and eventual consistency levels are supported
upvoted 3 times
...
monniq
1 year, 2 months ago
It's A and C. D is not an aswer because if you choose to connect with direct mode your requests will not use the dedicated gateway or the integrated cache. https://learn.microsoft.com/en-us/azure/cosmos-db/dedicated-gateway#connect-to-azure-cosmos-db-using-direct-mode
upvoted 4 times
...
Emil_Topics
1 year, 3 months ago
The answer is correct A and C
upvoted 4 times
...
[Removed]
1 year, 3 months ago
Selected Answer: AC
*"All dedicated gateway connection strings follow the same pattern. Remove documents.azure.com from your original connection string and replace it with sqlx.cosmos.azure.com" https://learn.microsoft.com/en-us/azure/cosmos-db/how-to-configure-integrated-cache?tabs=dotnet#configuring-the-integrated-cache *"You must ensure the request consistency is session or eventual" https://learn.microsoft.com/en-us/azure/cosmos-db/how-to-configure-integrated-cache?tabs=dotnet#adjust-request-consistency *Connection for dedicated gateway is "gateway" mode https://learn.microsoft.com/en-us/azure/cosmos-db/dedicated-gateway#connect-to-azure-cosmos-db-using-gateway-mode https://learn.microsoft.com/en-us/azure/cosmos-db/how-to-configure-integrated-cache?tabs=dotnet#verify-cache-hits
upvoted 4 times
...
azuredemo2022three
1 year, 5 months ago
Selected Answer: AD
Selected Answer: AD
upvoted 1 times
...
azuredemo2022three
1 year, 6 months ago
Selected Answer: AD
upvoted 1 times
...
[Removed]
1 year, 7 months ago
Selected Answer: AD
To use the integrated cache with an Azure Cosmos DB Core (SQL) API account, you need to use the "Gateway" connection mode and the "Session" or "Consistent Prefix" consistency levels. Therefore, you should perform the following actions for App1: A. Change the consistency level of requests to session. D. Change the connection mode.
upvoted 1 times
...
arnabdt
1 year, 8 months ago
Selected Answer: AD
To ensure that App1 can use the integrated cache, you need to configure the Cosmos DB client SDK to use the Direct connection mode and set the consistency level to session. This is because the integrated cache is available only in the Direct connection mode and the session consistency level is recommended to maximize cache hit rates.
upvoted 1 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 ...