0
0
Azurecloud~20 mins

AKS monitoring with Container Insights in Azure - Practice Problems & Coding Challenges

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
AKS Container Insights Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
What is the primary purpose of Container Insights in AKS?

Container Insights helps you monitor your AKS cluster. What does it mainly track?

AIt deploys new container images to the AKS cluster.
BIt collects performance and health data of containers and nodes in the AKS cluster.
CIt automatically scales the number of nodes based on traffic.
DIt manages user access and permissions for the AKS cluster.
Attempts:
2 left
💡 Hint

Think about what monitoring tools usually do: they watch performance and health.

💻 Command Output
intermediate
1:30remaining
What is the output of enabling Container Insights via Azure CLI?

You run this command to enable Container Insights on your AKS cluster:

az aks enable-addons --resource-group myResourceGroup --name myAKSCluster --addons monitoring

What output should you expect if the command succeeds?

AWarning: Monitoring already enabled
BError: Addon monitoring not found
C{"addonProfiles":{"omsagent":{"enabled":true}},"provisioningState":"Succeeded"}
DNo output, command runs silently
Attempts:
2 left
💡 Hint

Successful Azure CLI commands usually return JSON with provisioning state.

Configuration
advanced
2:00remaining
Which configuration snippet correctly enables Container Insights with a custom Log Analytics workspace?

You want to enable Container Insights on AKS but use an existing Log Analytics workspace. Which snippet is correct?

Aaz aks enable-addons --resource-group myRG --name myAKS --addons monitoring --workspace-resource-id /subscriptions/xxx/resourceGroups/myRG/providers/Microsoft.OperationalInsights/workspaces/myWorkspace
Baz aks enable-addons --resource-group myRG --name myAKS --addons monitoring --log-analytics-workspace /subscriptions/xxx/resourceGroups/myRG/providers/Microsoft.OperationalInsights/workspaces/myWorkspace
Caz aks enable-addons --resource-group myRG --name myAKS --addons monitoring --workspace /subscriptions/xxx/resourceGroups/myRG/providers/Microsoft.OperationalInsights/workspaces/myWorkspace
Daz aks enable-addons --resource-group myRG --name myAKS --addons monitoring --log-analytics /subscriptions/xxx/resourceGroups/myRG/providers/Microsoft.OperationalInsights/workspaces/myWorkspace
Attempts:
2 left
💡 Hint

Check the exact parameter name for specifying a custom workspace in Azure CLI docs.

Troubleshoot
advanced
2:00remaining
Why might Container Insights data not appear after enabling monitoring on AKS?

You enabled Container Insights on your AKS cluster, but no data shows up in Azure Monitor. What is a likely cause?

AThe AKS cluster is running on an unsupported Kubernetes version below 1.20.
BThe container images do not have the monitoring agent installed inside them.
CThe Azure CLI command to enable monitoring was run without administrator privileges.
DThe AKS cluster nodes do not have network access to the Log Analytics workspace endpoint.
Attempts:
2 left
💡 Hint

Think about what is needed for data to flow from AKS to Azure Monitor.

🔀 Workflow
expert
2:30remaining
Order the steps to enable and verify Container Insights on an AKS cluster

Put these steps in the correct order to enable Container Insights and verify it is working on AKS.

A3,4,1,2
B1,3,4,2
C3,1,4,2
D4,3,1,2
Attempts:
2 left
💡 Hint

Think about prerequisites before enabling addons and verifying data flow.