
Q121
Q121 What is the purpose of Kubernetes Operators?
To manage clusters
To automate application lifecycle management
To schedule pods
To log events
Q122
Q122 What does an Operator typically use to manage application states?
Deployments
Custom Resource Definitions (CRDs)
Pods
Secrets
Q123
Q123 How do Operators differ from controllers in Kubernetes?
Operators work with CRDs
Operators are built-in
Controllers are custom
Operators handle logs
Q124
Q124 What is the main benefit of using Operators?
Simplify logging
Enhance resource allocation
Automate operational tasks
Reduce networking latency
Q125
Q125 How do you create a Custom Resource Definition (CRD) for an Operator?
kubectl create crd
kubectl apply -f
kubectl set crd
kubectl generate crd
Q126
Q126 Which tool is commonly used to build Kubernetes Operators?
Helm
Kubebuilder
Terraform
Minikube
Q127
Q127 How do you view all custom resources defined in a Kubernetes cluster?
kubectl get crds
kubectl list crds
kubectl get operators
kubectl describe crds
Q128
Q128 An Operator is not reconciling the application's state. What could be the issue?
Incorrect RBAC permissions
Cluster is down
Missing pod labels
Node taints applied
Q129
Q129 A Custom Resource (CR) is not being managed by the Operator. What might resolve this?
Restart the cluster
Update CRD spec
Reinstall the Operator
Add network policies
Q130
Q130 What is the primary role of Kubernetes in a CI/CD pipeline?
Log management
Container orchestration
Test execution
Code deployment
Q131
Q131 Which tool is commonly integrated with Kubernetes for CI/CD workflows?
Jenkins
Prometheus
Minikube
Kube-proxy
Q132
Q132 How does Kubernetes enable blue/green deployments in CI/CD pipelines?
By using ConfigMaps
By managing replicas
By leveraging Services and Deployments
By using CRDs
Q133
Q133 How do you deploy an application to Kubernetes as part of a CI/CD pipeline?
Use kubectl commands
Apply ConfigMaps
Create a Service
Modify network policies
Q134
Q134 How do you automate deployment updates using Kubernetes?
Use Helm
Use Jenkins with kubectl
Use a Deployment strategy
All of the above
Q135
Q135 A CI/CD pipeline fails to deploy to Kubernetes. What could be the issue?
Missing RBAC roles
Pod labels missing
Service not created
Storage class not defined
Q136
Q136 A deployment update fails during a rolling update. What might resolve this?
Increase replica count
Check readiness probes
Use a different namespace
Restart cluster
Q137
Q137 What is the first step in troubleshooting a failed pod?
Check logs
Restart pod
Delete pod
Recreate pod
Q138
Q138 Which tool is commonly used for troubleshooting Kubernetes clusters?
Fluentd
Helm
kubectl debug
etcd
Q139
Q139 What is a common cause of "ImagePullBackOff" errors in Kubernetes?
Missing PVC
Incorrect image name
Pod labels missing
RBAC misconfiguration
Q140
Q140 How do you view detailed pod events for troubleshooting?
kubectl logs
kubectl describe pod
kubectl events
kubectl get logs
Q141
Q141 How do you troubleshoot a node marked as "NotReady"?
Restart kube-proxy
Check kubelet logs
Recreate node
Check node labels
Q142
Q142 A Service is not routing traffic to the pods. What could be the cause?
Missing node selector
Incorrect labels on pods
Storage issue
Cluster down
Q143
Q143 A pod is stuck in "Pending" state. What might resolve the issue?
Add node taints
Increase cluster capacity
Restart pod
Check deployment spec
Q144
Q144 How does a canary deployment help in Kubernetes?
Rollbacks faster
Partial traffic routing
Cluster scaling
Pod scaling
Q145
Q145 Which deployment strategy is best suited for zero-downtime updates?
Recreate
Rolling update
Blue/Green
Canary
Q146
Q146 What is a potential drawback of using a Recreate deployment strategy?
Requires more storage
Downtime during updates
Increased network load
Higher costs
Q147
Q147 How do you configure a rolling update for a Kubernetes Deployment in YAML?
Specify replicas
Set updateStrategy to RollingUpdate
Add imagePullPolicy
Add maxSurge
Q148
Q148 How do you implement a Blue/Green deployment in Kubernetes?
Use multiple Deployments
Use multiple namespaces
Use multiple Services
All of the above
Q149
Q149 A rolling update fails halfway through. What could resolve the issue?
Check readiness probes
Restart the cluster
Recreate pods
Check resource limits
Q150
Q150 A canary deployment leads to increased latency. What might resolve this?
Adjust resource limits
Scale the canary replica
Change deployment strategy
Add ConfigMaps