Skip to content

Commit dad5e78

Browse files
committed
adding inline code to fix html char issue
1 parent c5316d5 commit dad5e78

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

learn-pr/wwl-data-ai/monitor-apps-azure-kubernetes-service/6-module-assessment.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,26 +36,26 @@ quiz:
3636
explanation: "Scaling down and up restarts pods but doesn't explain why the container fails, so it doesn't help you diagnose the problem."
3737
- 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?"
3838
choices:
39-
- content: "kubectl describe service <service-name> -n <namespace>"
39+
- content: "`kubectl describe service <service-name> -n <namespace>`"
4040
isCorrect: true
4141
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`"
4343
isCorrect: false
44-
explanation: "kubectl top nodes only shows node resource usage and doesn't expose Service selector or endpoint details."
45-
- content: "kubectl logs <pod-name> -n <namespace>"
44+
explanation: "`kubectl top nodes` only shows node resource usage and doesn't expose Service selector or endpoint details."
45+
- content: "`kubectl logs <pod-name> -n <namespace>`"
4646
isCorrect: false
4747
explanation: "Pod logs help debug application behavior but don't show how the Service selects pods or why it has no endpoints."
4848
- 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?"
4949
choices:
50-
- content: "kubectl port-forward service/<service-name> 8080:80 -n <namespace>"
50+
- content: "`kubectl port-forward service/<service-name> 8080:80 -n <namespace>`"
5151
isCorrect: true
5252
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>`"
5454
isCorrect: false
5555
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"
5757
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."
5959
- 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?"
6060
choices:
6161
- content: "Adjust CPU requests and limits or scale out replicas so the pod has enough capacity."

0 commit comments

Comments
 (0)