AZ-305 Question 3
Single answerYou manage a microservices-based application running in multiple Azure Kubernetes Service (AKS) clusters, Azure SQL Database instances, and Azure Storage accounts. The operations team is having difficulty troubleshooting performance bottlenecks because logs and metrics are collected in various locations without a unified view. They also want proactive alerts on high CPU usage in AKS pods and long-running queries in Azure SQL Database. Which solution design should you implement to ensure centralized logging, correlated insights, and effective alerting across all these Azure resources?
- A
Deploy Azure Monitor agents on each resource, store logs in Azure Storage accounts, and schedule a daily job to parse them for dashboards and alerts.
- B
Enable Azure Monitor for all resources and configure a single Log Analytics workspace to collect logs, metrics, and set up alerts in a unified environment.
- C
Restrict logging to Azure Monitor for VMs only, because container logs and database logs require separate storage and cannot be combined.
- D
Use built-in Azure Storage analytics for all resources and configure email notifications for alerting on performance issues.
Show answer and explanation
Correct answer: B
Explanation
Centralizing logs and metrics in a single Azure Monitor Log Analytics workspace is a best practice that allows for real-time alerting, unified dashboards, and simplified correlation across diverse Azure resources. According to Microsoft documentation (https://docs.microsoft.com/azure/azure-monitor/), using Azure Monitor ensures each resource’s telemetry is available for querying and analysis in one place, which greatly streamlines troubleshooting and improves operational visibility.
- A. Incorrect.
Option 1 is incorrect because while Azure Monitor agents and Azure Storage can capture logs, scheduling a daily parsing job does not provide real-time alerts or an easy way to correlate data across different services. This approach also complicates query and alerting configurations.
- B. Correct.
Option 2 is correct. By enabling Azure Monitor and funneling all logs and metrics into a single Log Analytics workspace, you can correlate data from AKS, SQL Database, and Storage. This setup also supports real-time alerts, dashboards, and deeper insights, facilitating a unified monitoring and logging strategy.
- C. Incorrect.
Option 3 is incorrect because container logs and database monitoring can be integrated into Azure Monitor. Container Insights can collect logs and metrics from AKS pods, and Azure Monitor can capture SQL Database diagnostics, so there is no need for separate solutions just for containers or databases.
- D. Incorrect.
Option 4 is incorrect because Azure Storage analytics provides basic metrics and logging for storage services, but does not offer the comprehensive and correlated insights necessary for complex microservices scenarios. Email notifications alone are insufficient for a robust alerting strategy.