You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: learn-pr/wwl-data-ai/monitor-apps-azure-kubernetes-service/6-module-assessment.yml
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -36,26 +36,26 @@ quiz:
36
36
explanation: "Scaling down and up restarts pods but doesn't explain why the container fails, so it doesn't help you diagnose the problem."
37
37
- content: "A Service that fronts your AI API shows no endpoints, even though the pods appear healthy and ready. Which command helps you confirm whether the Service selectors match pod labels?"
38
38
choices:
39
-
- content: "kubectl describe service <service-name> -n <namespace>"
39
+
- content: "`kubectl describe service <service-name> -n <namespace>`"
40
40
isCorrect: true
41
41
explanation: "`kubectl describe service` shows the selector labels and current endpoints, so you can verify whether the Service matches the pods."
42
-
- content: "kubectl top nodes"
42
+
- content: "`kubectl top nodes`"
43
43
isCorrect: false
44
-
explanation: "kubectl top nodes only shows node resource usage and doesn't expose Service selector or endpoint details."
explanation: "Pod logs help debug application behavior but don't show how the Service selects pods or why it has no endpoints."
48
48
- content: "You need to debug a new AI endpoint inside the cluster before exposing it externally. You want to send HTTP requests from your development machine directly to the Service. Which command should you use?"
explanation: "`kubectl port-forward` from your workstation to the Service lets you send HTTP requests directly to the endpoint inside the cluster."
53
-
- content: "kubectl get endpoints <service-name> -n <namespace>"
53
+
- content: "`kubectl get endpoints <service-name> -n <namespace>`"
54
54
isCorrect: false
55
55
explanation: "`kubectl get endpoints` shows which pods back the Service but doesn't forward traffic from your development machine."
56
-
- content: "kubectl describe node on the node that hosts the pod"
56
+
- content: "`kubectl describe node` on the node that hosts the pod"
57
57
isCorrect: false
58
-
explanation: "kubectl describe node focuses on node state and scheduling, not on creating a local tunnel to the Service for HTTP requests."
58
+
explanation: "`kubectl describe node` focuses on node state and scheduling, not on creating a local tunnel to the Service for HTTP requests."
59
59
- content: "Metrics for a model-serving pod show sustained CPU usage at its configured limit, and users report increased latency. What is the most appropriate next step?"
60
60
choices:
61
61
- content: "Adjust CPU requests and limits or scale out replicas so the pod has enough capacity."
0 commit comments