AI-102 Question 58
Single answerYou are designing an Azure AI solution that involves multiple Azure Cognitive Services. To monitor performance and troubleshoot issues, you need to configure diagnostic logging to capture detailed logs for the services. Which step is essential to enable diagnostic logging for Azure Cognitive Services?
- A
Enable 'Application Insights' for the Azure Cognitive Services resource.
- B
Create a Log Analytics Workspace and link it to the Azure Cognitive Services resource.
- C
Enable 'Diagnostic settings' for the Azure Cognitive Services resource and configure a sink such as Log Analytics.
- D
Enable 'Activity log alerts' for the Azure Cognitive Services resource.
Show answer and explanation
Correct answer: C
Explanation
To capture diagnostic logs for Azure Cognitive Services, you must enable 'Diagnostic settings' on the resource and configure it to send logs to a sink such as Log Analytics, Event Hub, or a Storage Account. This allows you to monitor and troubleshoot the performance and operations of the Cognitive Services effectively.
- A. Incorrect.
Application Insights is used for monitoring custom applications or other Azure resources but is not directly used to enable diagnostic logging for Azure Cognitive Services.
- B. Incorrect.
While a Log Analytics Workspace can store logs, it does not enable diagnostic logging directly. Diagnostic logging must be configured separately.
- C. Correct.
Enabling 'Diagnostic settings' and configuring a sink (e.g., Log Analytics, Event Hub, or Storage Account) is the correct step to capture diagnostic logs for Azure Cognitive Services.
- D. Incorrect.
Activity log alerts track specific actions at the subscription level (e.g., resource deletions) but are not used for enabling diagnostic logging for Azure Cognitive Services.