Microsoft Certified: DevOps Engineer ExpertImplement an instrumentation strategyHard

A DevOps team is managing an Azure Kubernetes Service (AKS) cluster that hosts several critical applications. They need to implement a strategy to collect and analyze logs from all pods, containers, and Kubernetes nodes. The solution must provide a centralized view of all logs, allow for complex querying across namespaces and historical data, and support long-term retention for compliance. Which Azure service combination is best suited for this comprehensive logging strategy?

  1. AAzure Monitor for Containers and Log Analytics workspace
  2. BAzure Data Explorer and Azure Blob Storage
  3. CAzure Event Hubs and Azure Stream Analytics
  4. DAzure Container Registry and Azure Storage Account
Show answer & explanation

Correct answer: A. Azure Monitor for Containers and Log Analytics workspace

Azure Monitor for Containers is specifically designed to monitor AKS clusters, collecting logs and metrics from pods, containers, and nodes. It integrates directly with a Log Analytics workspace, which provides centralized storage, powerful Kusto Query Language (KQL) for complex querying, and configurable long-term retention for compliance.

Why the other options are wrong

  • B. Data Explorer is for big data analytics, not the primary integrated logging solution for AKS; Blob Storage is raw storage.
  • C. Event Hubs and Stream Analytics are for real-time event processing, not primarily for centralized, queryable Kubernetes logs with long-term retention.
  • D. Container Registry stores images; Storage Account stores raw data, neither provides integrated Kubernetes logging/querying.

Azure Monitor for Containers & Log Analytics

Azure Monitor for Containers provides rich monitoring experiences for AKS. It collects performance metrics, inventory data, and health status from container hosts and containers. This data is stored in a Log Analytics workspace, enabling powerful Kusto queries, visualizations, and alerts.

  • Collects logs from all Kubernetes components (pods, nodes, controllers).
  • Log Analytics offers centralized storage, KQL querying, and retention.
  • Provides pre-built dashboards and insights for AKS health and performance.

Memory trick: Containers' chaos is calmed by Monitor's logs in Analytics' lake.

More Implement an instrumentation strategy questions