AI-102 Question 57
Select 4You are designing an AI solution using Azure Cognitive Services and need to configure diagnostic logging for monitoring purposes. Which steps should you take to enable diagnostic logging for an Azure Cognitive Services resource?
- A
Navigate to the Azure Cognitive Services resource in the Azure portal and enable 'Diagnostics Settings'.
- B
Create a Log Analytics workspace to store diagnostic logs.
- C
Configure a storage account to archive diagnostic logs.
- D
Enable Application Insights on the Azure Cognitive Services resource for diagnostic logging.
- E
Select the specific log categories (e.g., RequestLogs, AuditLogs) to capture in the Diagnostic Settings.
Show answer and explanation
Correct answers: A, B, C, E
Explanation
To configure diagnostic logging for an Azure Cognitive Services resource, you need to enable 'Diagnostics Settings' for the resource, specify where the logs will be stored (e.g., Log Analytics workspace or storage account), and select which log categories to capture. Application Insights is a separate service for performance and usage monitoring and is not directly used for diagnostic logging in this scenario.
- A. Correct.
This is correct. Diagnostic logging must be enabled through the 'Diagnostics Settings' section of the Azure Cognitive Services resource in the Azure portal.
- B. Correct.
This is correct. A Log Analytics workspace is often used to store diagnostic logs for querying and analysis.
- C. Correct.
This is correct. A storage account can be configured to archive diagnostic logs for longer-term retention and compliance purposes.
- D. Incorrect.
This is incorrect. Application Insights is used for performance monitoring and telemetry but is not directly tied to diagnostic logging for Cognitive Services resources.
- E. Correct.
This is correct. When configuring diagnostic logging, you must select the specific log categories you wish to capture, such as RequestLogs or AuditLogs.