An administrator is configuring access control and monitoring for an Azure subscription. The subscription contains a Log Analytics workspace named Workspace1 that collects logs from virtual machines and Azure SQL databases.
You need to configure Workspace1 and write a Kusto Query Language (KQL) query to meet the following requirements:
- Ensure that database administrators can view diagnostic logs only for their SQL databases. They must not have access to any other logs stored in Workspace1.
- Retrieve SQL database diagnostic logs from the AzureDiagnostics table where the execution duration of a query is greater than 5 seconds.
- Sort the query results to show the longest-running queries first.
Which three options should you select to meet the requirements?
- Configure Workspace1 to use the "Use resource or workspace permissions" access control mode.Cevap
- Assign the Reader role to the database administrators on the resource groups containing the SQL databases.Cevap
- Run the KQL query: AzureDiagnostics | where ResourceProvider == "MICROSOFT.SQL" and DurationMs > 5000 | sort by DurationMs descCevap
- DConfigure Workspace1 to use the "Require workspace permissions" access control mode.
- EAssign the Reader role to the database administrators on Workspace1.
- FRun the KQL query: AzureDiagnostics | filter ResourceProvider == "MICROSOFT.SQL" and DurationMs > 5000 | sort by DurationMs desc