1. What does kubectl get pods -n ml do? Junior A. list all Pods in the ml namespace B. show detailed state and recent events for the Pod named api C. create or update resources to match the declared YAML manifest D. stream logs from a Pod managed by the api Deployment Reveal the answer + AI explanation — free account
2. Which command will list all Pods in the ml namespace? Junior A. kubectl get pods -n ml B. kubectl port-forward svc/api 8080:80 C. kubectl rollout restart deploy/api D. kubectl describe pod api Reveal the answer + AI explanation — free account
3. Which statement is correct? Junior A. kubectl get pods -n ml — list all Pods in the ml namespace B. kubectl get pods -n ml — show detailed state and recent events for the Pod named api C. kubectl get pods -n ml — trigger a rolling restart of the api Deployment's Pods D. kubectl get pods -n ml — create or update resources to match the declared YAML manifest Reveal the answer + AI explanation — free account
4. What does kubectl describe pod api do? Junior A. stream logs from a Pod managed by the api Deployment B. list all Pods in the ml namespace C. show detailed state and recent events for the Pod named api D. change the api Deployment to run five Pod replicas Reveal the answer + AI explanation — free account
5. Which command will show detailed state and recent events for the Pod named api? Junior A. kubectl apply -f manifest.yaml B. kubectl rollout restart deploy/api C. kubectl port-forward svc/api 8080:80 D. kubectl describe pod api Reveal the answer + AI explanation — free account
6. Which statement is correct? Junior A. kubectl describe pod api — show detailed state and recent events for the Pod named api B. kubectl describe pod api — create or update resources to match the declared YAML manifest C. kubectl describe pod api — change the api Deployment to run five Pod replicas D. kubectl describe pod api — stream logs from a Pod managed by the api Deployment Reveal the answer + AI explanation — free account
7. What does kubectl logs -f deploy/api do? Junior A. list all Pods in the ml namespace B. create or update resources to match the declared YAML manifest C. change the api Deployment to run five Pod replicas D. stream logs from a Pod managed by the api Deployment Reveal the answer + AI explanation — free account
8. Which command will stream logs from a Pod managed by the api Deployment? Junior A. kubectl apply -f manifest.yaml B. kubectl logs -f deploy/api C. kubectl describe pod api D. kubectl rollout restart deploy/api Reveal the answer + AI explanation — free account
9. Which statement is correct? Junior A. kubectl logs -f deploy/api — tunnel local port 8080 to port 80 of the api Service for debugging B. kubectl logs -f deploy/api — stream logs from a Pod managed by the api Deployment C. kubectl logs -f deploy/api — list all Pods in the ml namespace D. kubectl logs -f deploy/api — create or update resources to match the declared YAML manifest Reveal the answer + AI explanation — free account
10. What does kubectl apply -f manifest.yaml do? Mid A. create or update resources to match the declared YAML manifest B. show detailed state and recent events for the Pod named api C. stream logs from a Pod managed by the api Deployment D. tunnel local port 8080 to port 80 of the api Service for debugging Reveal the answer + AI explanation — free account
11. Which command will create or update resources to match the declared YAML manifest? Mid A. kubectl port-forward svc/api 8080:80 B. kubectl apply -f manifest.yaml C. kubectl rollout restart deploy/api D. kubectl logs -f deploy/api Reveal the answer + AI explanation — free account
12. Which statement is correct? Mid A. kubectl apply -f manifest.yaml — trigger a rolling restart of the api Deployment's Pods B. kubectl apply -f manifest.yaml — tunnel local port 8080 to port 80 of the api Service for debugging C. kubectl apply -f manifest.yaml — change the api Deployment to run five Pod replicas D. kubectl apply -f manifest.yaml — create or update resources to match the declared YAML manifest Reveal the answer + AI explanation — free account
13. What does kubectl rollout restart deploy/api do? Mid A. tunnel local port 8080 to port 80 of the api Service for debugging B. trigger a rolling restart of the api Deployment's Pods C. change the api Deployment to run five Pod replicas D. show detailed state and recent events for the Pod named api Reveal the answer + AI explanation — free account
14. Which command will trigger a rolling restart of the api Deployment's Pods? Mid A. kubectl rollout restart deploy/api B. kubectl apply -f manifest.yaml C. kubectl logs -f deploy/api D. kubectl port-forward svc/api 8080:80 Reveal the answer + AI explanation — free account
15. Which statement is correct? Mid A. kubectl rollout restart deploy/api — stream logs from a Pod managed by the api Deployment B. kubectl rollout restart deploy/api — show detailed state and recent events for the Pod named api C. kubectl rollout restart deploy/api — create or update resources to match the declared YAML manifest D. kubectl rollout restart deploy/api — trigger a rolling restart of the api Deployment's Pods Reveal the answer + AI explanation — free account
16. What does kubectl scale deploy/api --replicas=5 do? Mid A. list all Pods in the ml namespace B. tunnel local port 8080 to port 80 of the api Service for debugging C. change the api Deployment to run five Pod replicas D. trigger a rolling restart of the api Deployment's Pods Reveal the answer + AI explanation — free account
17. Which command will change the api Deployment to run five Pod replicas? Mid A. kubectl describe pod api B. kubectl scale deploy/api --replicas=5 C. kubectl get pods -n ml D. kubectl rollout restart deploy/api Reveal the answer + AI explanation — free account
18. Which statement is correct? Mid A. kubectl scale deploy/api --replicas=5 — trigger a rolling restart of the api Deployment's Pods B. kubectl scale deploy/api --replicas=5 — tunnel local port 8080 to port 80 of the api Service for debugging C. kubectl scale deploy/api --replicas=5 — change the api Deployment to run five Pod replicas D. kubectl scale deploy/api --replicas=5 — list all Pods in the ml namespace Reveal the answer + AI explanation — free account
19. What does kubectl port-forward svc/api 8080:80 do? Senior A. list all Pods in the ml namespace B. tunnel local port 8080 to port 80 of the api Service for debugging C. create or update resources to match the declared YAML manifest D. change the api Deployment to run five Pod replicas Reveal the answer + AI explanation — free account
20. Which command will tunnel local port 8080 to port 80 of the api Service for debugging? Senior A. kubectl apply -f manifest.yaml B. kubectl port-forward svc/api 8080:80 C. kubectl rollout restart deploy/api D. kubectl scale deploy/api --replicas=5 Reveal the answer + AI explanation — free account
21. Which statement is correct? Senior A. kubectl port-forward svc/api 8080:80 — stream logs from a Pod managed by the api Deployment B. kubectl port-forward svc/api 8080:80 — create or update resources to match the declared YAML manifest C. kubectl port-forward svc/api 8080:80 — tunnel local port 8080 to port 80 of the api Service for debugging D. kubectl port-forward svc/api 8080:80 — change the api Deployment to run five Pod replicas Reveal the answer + AI explanation — free account