This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
You receive reports that an AI inference API on Azure Kubernetes Service occasionally returns HTTP 500 errors and higher latency. You want to inspect recent error messages for a specific pod while reproducing the issue. Which approach is most appropriate?
Use kubectl logs -f <pod-name> -n <namespace> while you send test requests to the API.
kubectl logs -f <pod-name> -n <namespace>
Open Azure Monitor and review only node CPU metrics for the last week.
Run kubectl describe node on all nodes to look for scheduling events.
kubectl describe node
A pod that runs a model-serving container is stuck in CrashLoopBackOff. You want to understand why the container exits. What should you do first?
Run kubectl describe pod <pod-name> -n <namespace> and inspect events and container status.
kubectl describe pod <pod-name> -n <namespace>
Immediately delete the pod so Kubernetes recreates it.
Scale the Deployment to zero replicas and then scale it back up.
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?
kubectl describe service <service-name> -n <namespace>
kubectl top nodes
kubectl logs <pod-name> -n <namespace>
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?
kubectl port-forward service/<service-name> 8080:80 -n <namespace>
kubectl get endpoints <service-name> -n <namespace>
kubectl describe node on the node that hosts the pod
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?
Adjust CPU requests and limits or scale out replicas so the pod has enough capacity.
Ignore the metrics because the pod is still running.
Delete the Service and recreate it with the same configuration.
You must answer all questions before checking your work.
Was this page helpful?
Need help with this topic?
Want to try using Ask Learn to clarify or guide you through this topic?