You manage an Azure Cosmos DB for NoSQL account. For two years, its diagnostic setting sent the DataPlaneRequests category to a Log Analytics workspace in Azure diagnostics mode. On 15 November 2026, an administrator recreated the setting in resource-specific mode.
- The workspace also receives logs from other Azure services. This account is the only Azure Cosmos DB account that sends logs to it.
- Workspace retention covers all of November 2026.
- The account contains one database, named
retail.
You need a KQL query that counts rate-limited requests (HTTP status 429) on 2 November 2026 UTC for each operation, across all containers, and returns only rows that come from Azure Cosmos DB.
How should you complete the query?
| where TimeGenerated >= datetime(2026-11-02) and TimeGenerated < datetime(2026-11-03) | where | where | summarize throttled = count() by OperationName
- Blank 1: AzureDiagnostics (correct answer)
The 2 November records were ingested in Azure diagnostics mode, so they remain in AzureDiagnostics after the switch. CDBDataPlaneRequests receives resource-specific data-plane logs rather than these historical records. CDBControlPlaneRequests contains resource changes, not data requests. CDBQueryRuntimeStatistics contains query statistics, and that category was not collected.
- Blank 2: ResourceProvider == "MICROSOFT.DOCUMENTDB" and Category == "DataPlaneRequests" (correct answer)
The correct filter selects Azure Cosmos DB data-plane records from the shared table. CDBDataPlaneRequests is a table name rather than a category value. ControlPlaneRequests selects resource changes rather than data requests. DatabaseName uses the resource-specific column name instead of the legacy type-suffixed name and does not select the required provider and category.
- Blank 3: statusCode_s == "429" (correct answer)
The legacy statusCode_s column stores the status code as a string, and 429 identifies rate limiting. StatusCode is the resource-specific column name. Filtering for 503 does not select 429 responses. requestCharge_s contains the RU charge rather than the HTTP status.
Changing the destination mode does not relocate records already ingested, so the historical records remain in AzureDiagnostics. The provider and category filters select Azure Cosmos DB data-plane logs, and statusCode_s selects their 429 responses. The time filter covers 2 November UTC while excluding the following midnight.