
Q1
Q1 What is the main function of Kubernetes?
Orchestrating containers
Writing apps
Storing data
Serving static websites
Q2
Q2 Which company originally developed Kubernetes?
Microsoft
Amazon
IBM
Q3
Q3 What is a Kubernetes cluster?
A group of containers
A set of nodes working together
A single database
A network tool
Q4
Q4 What is the smallest deployable unit in Kubernetes?
Node
Pod
Cluster
Service
Q5
Q5 What is the purpose of the kube-scheduler component?
Managing pods
Assigning pods to nodes
Monitoring nodes
Storing cluster data
Q6
Q6 How does Kubernetes ensure high availability?
By replicating nodes
By using Load Balancers
By scaling pods
All of the above
Q7
Q7 What is the role of the etcd component in Kubernetes?
Managing logs
Storing cluster state
Monitoring nodes
Assigning IPs
Q8
Q8 Which command is used to get all namespaces in a cluster?
kubectl get pods
kubectl get namespaces
kubectl describe pods
kubectl list namespaces
Q9
Q9 A Kubernetes pod is "CrashLoopBackOff". What could be the reason?
Misconfigured image
Lack of CPU
Incorrect port
Unreachable node
Q10
Q10 Which component in Kubernetes serves as the cluster's brain?
Kubelet
Kube-proxy
Kube-apiserver
Scheduler
Q11
Q11 What is the primary role of the kubelet in a Kubernetes cluster?
Managing networking
Monitoring applications
Running containers
Assigning IPs
Q12
Q12 Which Kubernetes component manages network rules to allow pods to communicate?
Kubelet
Kube-proxy
Kube-scheduler
Controller manager
Q13
Q13 Where is the cluster state stored in Kubernetes?
ConfigMap
etcd
Kube-proxy
Controller manager
Q14
Q14 What is the primary function of the controller manager in Kubernetes?
Enforcing policies
Managing controllers
Scaling replicas
Storing logs
Q15
Q15 What is the role of the scheduler in Kubernetes?
Managing API calls
Assigning pods to nodes
Balancing cluster state
Monitoring pods
Q16
Q16 What type of network model does Kubernetes use for pod communication?
Layer 4
Layer 7
Flat network
Hierarchical network
Q17
Q17 Which command displays the configuration of the kubelet on a node?
kubectl describe kubelet
kubectl get config
kubectl describe node
kubectl get kubelet
Q18
Q18 A node in a Kubernetes cluster is marked as "NotReady." What could be the reason?
Missing pod labels
Kubelet not running
Invalid container image
API server is down
Q19
Q19 What is a pod in Kubernetes?
A container group
A single container
A node
A service
Q20
Q20 What is the purpose of a ReplicaSet in Kubernetes?
Scaling applications
Storing logs
Managing nodes
Defining networks
Q21
Q21 Which command is used to delete a pod in Kubernetes?
kubectl remove pod
kubectl delete pod
kubectl drop pod
kubectl terminate pod
Q22
Q22 What is the primary use of a Deployment in Kubernetes?
Deploying images
Scaling and managing pods
Scheduling nodes
Managing services
Q23
Q23 What happens if a pod fails in a ReplicaSet?
It's recreated
It's deleted
Nothing happens
It's reconfigured
Q24
Q24 Which field in a Deployment ensures the pod uses a specific version of an image?
spec.strategy
spec.template.spec.containers.image
metadata.name
spec.selector
Q25
Q25 How do you scale a deployment to 5 replicas?
kubectl scale --replicas=5
kubectl scale deployment
kubectl add replicas 5
kubectl update replicas
Q26
Q26 Which command displays logs of a specific pod?
kubectl get logs
kubectl log pod
kubectl logs
kubectl describe logs
Q27
Q27 How do you update the image of a deployment using kubectl?
kubectl edit deployment
kubectl set image
kubectl update deployment
kubectl patch deployment
Q28
Q28 A pod is stuck in the "ContainerCreating" state. What is a likely cause?
Missing container
Failed image pull
Node unavailability
Resource constraints
Q29
Q29 A pod keeps restarting. What could be a potential issue?
Out of memory
Incorrect container port
Invalid ReplicaSet
Cluster down
Q30
Q30 A deployment rollout is paused. What command can you use to resume it?
kubectl restart rollout
kubectl resume rollout
kubectl rollout restart
kubectl rollout resume