Practice English vocabulary for kubectl commands: getting pods, describing resources, following logs, exec into containers, and applying manifests.
0 / 10 completed
1 / 10
You want to list all pods in a specific namespace. Which kubectl command phrase is correct?
'kubectl get pods -n namespace' lists all pods in the specified namespace. 'get' is the standard kubectl verb for listing resources, and '-n' is the namespace flag.
2 / 10
You run a kubectl command that shows recent events for a pod, including warnings and errors. Which phrase is correct?
'kubectl describe pod shows events' — the describe command provides detailed information including the Events section at the bottom, which is essential for debugging.
3 / 10
You want to continuously stream a pod's log output to your terminal in real time. Which phrase is correct?
'kubectl logs follows the log stream' — using the '-f' or '--follow' flag makes kubectl logs follow (stream) the output continuously, similar to 'tail -f'.
4 / 10
You need to open an interactive shell session inside a running container. Which kubectl command phrase is correct?
'kubectl exec -it' opens an interactive terminal session inside a running container. '-i' keeps stdin open, '-t' allocates a pseudo-TTY, enabling interactive shell use.
5 / 10
You deploy a Kubernetes resource defined in a YAML file. Which phrase describes this action?
'kubectl apply -f deploys the manifest' — the apply command creates or updates resources from a YAML or JSON manifest file. It is the standard declarative deployment method.
6 / 10
Sarah from the DevOps team messages you on Slack: 'Hey, I'm seeing a lot of `kubectl describe pod mypod` outputs showing 'Error: No such container: nginx' – it seems like the container isn't running correctly. What does 'kubectl describe pod mypod' primarily tell you about the pod?
kubectl describe pod is a diagnostic tool. It doesn't restart pods or modify YAML files. Instead, it presents a comprehensive view of the pod's current state, including its configuration (labels, deployments), status (ready/not ready), and recent events – which is precisely what Sarah is observing in her message. This detailed output allows you to troubleshoot issues like missing containers.
7 / 10
You're reviewing a pull request for a new microservice deployment. The PR description includes the following: 'We've used kubectl apply -f myapp.yaml to deploy our application using Kubernetes.' What does 'kubectl apply -f myapp.yaml' most accurately represent?
kubectl apply -f is used to *update* an existing Kubernetes resource (in this case, a deployment) based on a defined YAML file. It doesn't delete and recreate; it intelligently updates the configuration, ensuring consistency with the desired state. This behavior is critical for maintaining stable deployments.
8 / 10
During a standup meeting, you're discussing your progress on deploying a new feature. You mention that you used kubectl rollout restart deployment myapp. What is the primary purpose of this command?
kubectl rollout restart deployment performs a rolling update. This method ensures minimal downtime by gradually replacing old pods with new ones, maintaining service availability throughout the process. This contrasts sharply with a hard reset which would interrupt all traffic.
9 / 10
You're investigating a performance issue with a web application running in Kubernetes. You execute the command: kubectl logs -f myapp-pod. What does this command primarily achieve?
kubectl logs -f is used to continuously stream the log data from a container's standard output. The `-f` flag stands for 'follow', enabling you to observe real-time events and troubleshoot issues by monitoring the application's logs as they are generated. It doesn't allow editing or provide shell access.
10 / 10
You need to quickly check the status of a deployment named 'webserver' in the 'production' namespace. Which command is most appropriate and efficient for this task?
kubectl get deployments is the most straightforward command to retrieve basic information about a deployment – in this case, its name, replicas, and age. The other options are used for different purposes: describing the deployment in detail, entering a shell session within a container (which isn't necessary here), or scaling the number of replicas.
Practice English vocabulary for kubectl commands: getting pods, describing resources, following logs, exec into containers, and applying manifests.
How many exercises are in this module?
This module has 10 multiple-choice exercises, each with instant feedback and a full explanation of the correct answer.
Is this exercise free to use?
Yes. Every exercise on CoderSlingo, including this one, is free to use with no account, sign-up, or paywall.
Do I need to create an account to do these exercises?
No account is required. Just click an option to answer — your score for this session is tracked automatically in the progress bar above.
What happens if I choose the wrong answer?
You'll immediately see which answer was correct, plus a full explanation covering the vocabulary and reasoning behind it — mistakes are where most of the learning happens.
Can I retry the exercises if I want a higher score?
Yes — use the "Try again" button on the results screen to reset and go through all the questions again.
Is my progress saved if I close the page?
No. Progress is tracked only for your current visit; reloading or leaving the page resets the counter. This keeps the exercise simple and account-free.
Where can I find more Kubernetes Operations exercises?
Browse the full Kubernetes Operations hub for related drills, or check the "Next up" link below to continue with a connected topic.
How is this different from reading an article on the same topic?
Articles explain vocabulary and concepts in prose; this exercise tests and reinforces that vocabulary through active recall with immediate feedback — the two work best together.
Who writes these exercises?
Every exercise is written by the CoderSlingo team, drawing on real workplace English used in IT roles, then reviewed for accuracy and clarity.