Azure Cognitive Search Query Metrics | Microsoft AI-102 Exam Solution

Analyzing Query Metrics in Azure Cognitive Search

Question

In your Azure Cognitive Search solution, your users reported errors and concerns such as “error code 503” or “Too many requests.

Please try again later”

You have already enabled the diagnostic logging in Azure Portal to log the events and metrics.

Analyzing the error, you observe that queries were dropped while a replica was taken out of rotation during indexing.

Which is the most appropriate query metric would you check for such a scenario where queries are dropped? (select one answer choice)

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

Correct Answer: B.

Option A is incorrect because Queries per second (QPS) is the metric used to measure the queries executed in one minute.

You can get values such as sum, average, cound, max and min values through this metric in Azure Portal.

Option B is correct because the Throttling search queries metric is used to identify the percentage of queries dropped in a given interval.

Throttling is likely during the events where resources are consumed to an extent that they are unable to process additional queries and hence drop the queries.

The metric also provides the values such as average, max, min, count and total.

Option C is incorrect because Search latency is aimed at identifying the time taken to complete a query and figure out the latency involved in the processing.

It also gives values such as average, min and max latency.

Option D is incorrect as the Azure Diagnostic extension is used for monitoring the metrics of a guest operating system and storing them in Azure Storage.

These metrics are used by Azure Monitor.

To learn more about monitoring search queries in Azure, use the link given below:

The most appropriate query metric to check for dropped queries in Azure Cognitive Search would be "Throttling." Throttling is a mechanism that Azure Cognitive Search uses to limit the number of requests that can be made to a search service during a given time period. When the service receives too many requests, it may temporarily reject new ones and return an error message such as "error code 503" or "Too many requests. Please try again later."

In this scenario, it seems that queries were dropped because a replica was taken out of rotation during indexing. This means that the service was unable to handle the number of requests it received, and as a result, some queries were dropped. To understand this issue better, we need to check the throttling metrics.

The "Throttling" metric measures the number of requests that are rejected by the search service due to throttling. This metric can help identify the source of the throttling, such as too many queries per second or too many concurrent connections. By analyzing the throttling metric, we can determine if the search service is configured correctly and if it can handle the load it receives.

Enabling diagnostic logging in the Azure Portal is a good practice to log the events and metrics that can help troubleshoot and optimize the search service. Azure Diagnostics is a service that allows you to collect, analyze, and diagnose issues with your Azure resources. However, in this scenario, the most appropriate query metric to check for dropped queries would be "Throttling."