Question 1
Why are Deployments better than manually managing Pods?
Deployments use fewer resources.
Deployments provide self-healing and automatic scaling.
Deployments don’t require container images.
Deployments are faster than Pods.
Question 2
Which component in a Deployment manifest defines the blueprint for Pods?
Metadata
Spec → Template
Status
Selector
Question 3
Which command is used to create a Deployment from a YAML file?
kubectl run
kubectl apply -f deployment.yaml
kubectl create pod -f deployment.yaml
kubectl start deployment.yaml
Question 4
You currently have 2 replicas running. Traffic has increased, and you want to scale it to 5 replicas. Which command should you run?
kubectl set replicas deployment/nginx-deployment=5
kubectl scale deployment/nginx-deployment --replicas=5
kubectl edit pod nginx-deployment
kubectl rollout scale nginx-deployment=5
Question 5
You want to clean up unused ReplicaSets left behind after multiple rollouts. Which command will help you?
kubectl delete rs --all
kubectl cleanup deployment myapp
kubectl delete replicaset <rs-name>
kubectl prune deployment myapp
Question 6
What does the Deployment Controller do?
It monitors and adjusts the number of running Nodes.
It ensures the actual state of Pods matches the desired state.
It handles communication between Pods and Services.
It assigns persistent storage to Pods.
Question 7
What happens if a Pod managed by a Deployment crashes?
Nothing, the Deployment ignores Pod failures.
The ReplicaSet ensures a new Pod is created automatically.
The Pod restarts only if manually triggered.
The Node must be restarted.
Question 8
You want to temporarily stop a Deployment rollout to apply multiple changes before resuming. Which command do you use?
kubectl rollout stop deployment/webapp
kubectl rollout pause deployment/webapp
kubectl pause pod webapp
kubectl suspend deployment/webapp
Question 9
If you pause a Deployment, which of the following still happens?
Pods are deleted
ReplicaSet keeps scaling automatically
New updates are not rolled out until resumed
Deployment is permanently stopped
Question 10
If a Deployment specifies replicas: 3 but only 2 Pods are running successfully, what will Kubernetes do?
Do nothing
Restart one of the failed Pods until 3 are running
Scale down the Deployment
Remove the Deployment
There are 10 questions to complete.