Kubernetes is a tool that helps run and manage many containers across many computers easily. It makes sure your apps keep running and can grow when needed.
Click to reveal answer
beginner
What is a container in Kubernetes?
A container is a small package that holds an app and everything it needs to run. Kubernetes manages these containers to keep apps working smoothly.
Click to reveal answer
beginner
Why use Kubernetes instead of just running containers alone?
Kubernetes helps by automatically fixing problems, adding more containers when needed, and organizing containers across many computers so apps don’t stop working.
Click to reveal answer
intermediate
What is a Pod in Kubernetes?
A Pod is the smallest unit in Kubernetes. It holds one or more containers that share resources and work together.
Click to reveal answer
intermediate
How does Kubernetes help with app updates?
Kubernetes can update apps without stopping them by slowly replacing old containers with new ones, so users don’t see any downtime.
Click to reveal answer
What does Kubernetes primarily manage?
AContainers
BDatabases
CWeb browsers
DOperating systems
✗ Incorrect
Kubernetes manages containers, which are packages of apps and their dependencies.
What is the smallest deployable unit in Kubernetes?
ANode
BCluster
CService
DPod
✗ Incorrect
A Pod is the smallest unit that Kubernetes deploys, containing one or more containers.
How does Kubernetes help when an app container crashes?
AIt deletes the app
BIt ignores the crash
CIt restarts the container automatically
DIt sends an email
✗ Incorrect
Kubernetes automatically restarts containers if they crash to keep apps running.
Which feature allows Kubernetes to add more containers when app demand grows?
AScaling
BLogging
CNetworking
DStorage
✗ Incorrect
Scaling lets Kubernetes add or remove containers based on app demand.
What is a Kubernetes cluster?
AA single computer
BA group of computers working together
CA type of container
DA programming language
✗ Incorrect
A cluster is many computers joined to run containers managed by Kubernetes.
Explain what Kubernetes is and why it is useful for running applications.
Think about how apps need to keep running and grow without manual work.
You got /4 concepts.
Describe the role of a Pod in Kubernetes.
Pods group containers that work together.
You got /4 concepts.
Practice
(1/5)
1. What is the main purpose of Kubernetes?
easy
A. To design websites with HTML and CSS
B. To manage and run many copies of programs across multiple computers
C. To write code for mobile applications
D. To create databases for storing data
Solution
Step 1: Understand Kubernetes role
Kubernetes is a tool that helps run many copies of programs on many computers.
Step 2: Compare options
Only To manage and run many copies of programs across multiple computers describes managing programs across computers, which matches Kubernetes' purpose.
Final Answer:
To manage and run many copies of programs across multiple computers -> Option B
Quick Check:
Kubernetes = Manage many program copies [OK]
Hint: Kubernetes manages many program copies on many computers [OK]
Common Mistakes:
Confusing Kubernetes with programming languages
Thinking Kubernetes is for website design
Mixing Kubernetes with database creation
2. Which command is used to interact with Kubernetes from the command line?
easy
A. kubectl
B. docker
C. git
D. npm
Solution
Step 1: Identify Kubernetes command-line tool
The tool to control Kubernetes is called kubectl.
Step 2: Check other options
Docker manages containers, git manages code versions, npm manages JavaScript packages, so they are not correct.
Final Answer:
kubectl -> Option A
Quick Check:
Kubernetes CLI = kubectl [OK]
Hint: Use kubectl to control Kubernetes from terminal [OK]
Common Mistakes:
Using docker instead of kubectl for Kubernetes
Confusing git with Kubernetes commands
Thinking npm controls Kubernetes
3. What happens if a program managed by Kubernetes crashes on one computer?
medium
A. Kubernetes deletes all copies of the program
B. The program stays crashed and Kubernetes does nothing
C. Kubernetes automatically restarts the program on the same or another computer
D. You must manually restart the program yourself
Solution
Step 1: Understand Kubernetes fault handling
Kubernetes watches programs and restarts them automatically if they crash.
Step 2: Evaluate options
Only Kubernetes automatically restarts the program on the same or another computer describes automatic restart, which matches Kubernetes behavior.
Final Answer:
Kubernetes automatically restarts the program on the same or another computer -> Option C