nerdexam
MicrosoftMicrosoft

DP-420 · Question #64

DP-420 Question #64: Real Exam Question with Answer & Explanation

The correct answer is D: The connectivity mode of the application App1 CosmosClient. As the integrated cache is specific to the Azure Cosmos DB account and needs significant memory and CPU, it needs a dedicated gateway node. Therefore, you need to configure the connectivity mode of the application CosmosClient. Connect to Azure Cosmos DB with the help of gateway

Optimize an Azure Cosmos DB solution

Question

App1 is an application that reads the data stored in the Azure Cosmos DB Core (SQL) API account. The application runs the same read queries every minute. Eventual is the default consistency level set for the account. You identify that instead of using the cache, the request units are consumed by every query. You verify that both the metrics IntegratedCacheiteItemHitRate and IntegratedCacheQueryHitRate are having values of 0. You also verify the provisioning of the dedicated gateway cluster and its use in the connection string. You need to ensure that the application App1 uses the Azure Cosmos DB integrated cache. Which of the following do you need to configure?

Options

  • AThe consistency level of the requests from the application App1
  • BThe indexing policy of the Azure Cosmos DB container
  • CThe default consistency level of the Azure Cosmos DB account
  • DThe connectivity mode of the application App1 CosmosClient

Explanation

As the integrated cache is specific to the Azure Cosmos DB account and needs significant memory and CPU, it needs a dedicated gateway node. Therefore, you need to configure the connectivity mode of the application CosmosClient. Connect to Azure Cosmos DB with the help of gateway mode. Option A is incorrect. You need to configure the connectivity mode of App1 CosmosClient, not the consistency level of the requests. Option B is incorrect. There is no need to configure the indexing policy. Option C is incorrect. Eventual is the default consistency level set for the account. Therefore, configuring the default consistency level of the Azure Cosmos DB account is not the right answer. Option D is correct. You need to configure the connectivity mode of the application CosmosClient. Connect to Azure Cosmos DB using gateway mode. https://docs.microsoft.com/en-us/azure/cosmos-db/integrated-cache-faq

Topics

#Azure Cosmos DB Integrated Cache#Cosmos DB Connectivity#Performance Optimization#Client Configuration

Community Discussion

No community discussion yet for this question.

Full DP-420 PracticeBrowse All DP-420 Questions