exam questions

Exam DP-420 All Questions

View all questions & answers for the DP-420 exam

Exam DP-420 topic 1 question 24 discussion

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

You have an application named App1 that reads the data in an Azure Cosmos DB Core (SQL) API account. App1 runs the same read queries every minute. The default consistency level for the account is set to eventual.
You discover that every query consumes request units (RUs) instead of using the cache.
You verify the IntegratedCacheiteItemHitRate metric and the IntegratedCacheQueryHitRate metric. Both metrics have values of 0.
You verify that the dedicated gateway cluster is provisioned and used in the connection string.
You need to ensure that App1 uses the Azure Cosmos DB integrated cache.
What should you configure?

  • A. the indexing policy of the Azure Cosmos DB container
  • B. the consistency level of the requests from App1
  • C. the connectivity mode of the App1 CosmosClient
  • D. the default consistency level of the Azure Cosmos DB account
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

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
lakime
Highly Voted 2 years, 7 months ago
Selected Answer: C
C is correct https://docs.microsoft.com/en-us/azure/cosmos-db/how-to-configure-integrated-cache If you're using the .NET or Java SDK, set the connection mode to gateway mode. This step isn't necessary for the Python and Node.js SDKs since they don't have additional options of connecting besides gateway mo
upvoted 13 times
...
[Removed]
Most Recent 9 months, 2 weeks ago
Selected Answer: C
I can’t tell if my application is using the dedicated gateway: Check the DedicatedGatewayRequests. This metric includes all requests that use the dedicated gateway, regardless of whether they hit the integrated cache. If your application uses the standard gateway or direct mode with your original connection string, you will not see an error message, but the DedicatedGatewayRequests will be zero. If your application uses direct mode with your dedicated gateway connection string, you may still see a few DedicatedGatewayRequests. https://learn.microsoft.com/en-us/azure/cosmos-db/integrated-cache#i-cant-tell-if-my-application-is-using-the-dedicated-gateway
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 ...