0
0
Azurecloud~10 mins

AKS monitoring with Container Insights in Azure - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to enable Container Insights on an AKS cluster using Azure CLI.

Azure
az aks enable-addons --resource-group myResourceGroup --name myAKSCluster --addons [1]
Drag options to blanks, or click blank then click option'
Amonitoring
Blogging
Cingress
Dnetwork-policy
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'logging' instead of 'monitoring' disables Container Insights.
Choosing 'network-policy' or 'ingress' does not enable monitoring.
2fill in blank
medium

Complete the command to create a Log Analytics workspace for Container Insights.

Azure
az monitor log-analytics workspace create --resource-group myResourceGroup --workspace-name [1]
Drag options to blanks, or click blank then click option'
AmyWorkspace
BmyCluster
CmyInsights
DmyLogs
Attempts:
3 left
💡 Hint
Common Mistakes
Using the cluster name instead of a workspace name.
Choosing names that do not reflect the purpose of the workspace.
3fill in blank
hard

Fix the error in the command to link the Log Analytics workspace to the AKS cluster.

Azure
az aks update --resource-group myResourceGroup --name myAKSCluster --workspace-resource-id [1]
Drag options to blanks, or click blank then click option'
AmyWorkspace
B/myResourceGroup/myWorkspace
Cworkspace-id
D/subscriptions/xxxx/resourceGroups/myResourceGroup/providers/Microsoft.OperationalInsights/workspaces/myWorkspace
Attempts:
3 left
💡 Hint
Common Mistakes
Using only the workspace name instead of the full resource ID.
Using incomplete or incorrect resource paths.
4fill in blank
hard

Fill the three blanks to create a Kubernetes namespace and label it for monitoring.

Azure
kubectl create namespace [1]
kubectl label namespace [2] [3]=enabled
Drag options to blanks, or click blank then click option'
Amonitoring
Blogging
Cazure.monitoring
Dcontainerinsights
Attempts:
3 left
💡 Hint
Common Mistakes
Using different names for namespace creation and labeling.
Using incorrect label keys that do not enable monitoring.
5fill in blank
hard

Fill the two blanks to query CPU usage from Container Insights in Log Analytics.

Azure
Perf
| where ObjectName == [1]
| where CounterName == [2]
| summarize avg(CounterValue) by bin(TimeGenerated, 5m)
Drag options to blanks, or click blank then click option'
A"K8SNode"
B"Processor"
C"% Processor Time"
D"Memory"
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect object or counter names that return no data.
Omitting quotes around string values.