AI-102 Question 56
Select 3You are designing an Azure AI solution and need to enable diagnostic logging for an Azure Cognitive Services resource to monitor and troubleshoot issues. Which of the following steps are required to configure diagnostic logging for the resource?
- A
Enable diagnostic settings in the Azure portal for the resource.
- B
Specify a storage account, Log Analytics workspace, or Event Hub for log data export.
- C
Enable Application Insights for the resource.
- D
Grant appropriate roles (e.g., 'Log Analytics Contributor') to access the logs.
- E
Configure a virtual network for the Cognitive Services resource to ensure logging is enabled.
Show answer and explanation
Correct answers: A, B, D
Explanation
To configure diagnostic logging for an Azure Cognitive Services resource, you need to enable diagnostic settings in the Azure portal, specify a destination for the logs (such as a storage account, Log Analytics workspace, or Event Hub), and ensure that users or services have the necessary RBAC permissions to access the logs. Application Insights and virtual networks are not directly related to the diagnostic logging configuration process.
- A. Correct.
Correct: Diagnostic settings must be enabled in the Azure portal for the resource to collect and export logs.
- B. Correct.
Correct: A storage account, Log Analytics workspace, or Event Hub must be specified as the destination to store or analyze the logs.
- C. Incorrect.
Incorrect: Application Insights is used for application performance monitoring and is not required to configure diagnostic logging for Azure Cognitive Services.
- D. Correct.
Correct: Appropriate role-based access control (RBAC) permissions are needed for users or services to access and manage the logs.
- E. Incorrect.
Incorrect: Virtual networks are not required for enabling diagnostic logging; they are used for network-level access control.