Online Exam Quiz

questionQuestion  1 to 30

What is the purpose of the HorizontalPodAutoscaler in Kubernetes?

  • To manage DNS resolution
  • To scale pods based on a schedule
  • To automatically adjust the number of replica pods in a deployment based on CPU or memory usage
  • To handle network policies
Mark for review

Which Kubernetes resource is used to manage network policies?

  • Ingress
  • NetworkPolicy
  • PodSecurityPolicy
  • ServiceAccount
Mark for review

How does Kubernetes ensure that pods can communicate with each other?

  • By using host networking
  • By assigning each pod a unique IP address
  • By setting up VPN connections
  • By using NAT traversal
Mark for review

What is the purpose of a DaemonSet in Kubernetes?

  • To manage application lifecycle
  • To load balance incoming traffic
  • To ensure a pod runs on every node in the cluster
  • To run a pod with multiple replicas
Mark for review

How does Kubernetes manage pod affinity and anti-affinity?

  • By limiting resource usage
  • By using labels and selectors to schedule pods onto specific nodes
  • By manually configuring nodes
  • By setting pod priority
Mark for review

How does Kubernetes handle node failures?

  • By rescheduling pods onto available nodes
  • By pausing affected applications
  • By terminating affected pods
  • By automatically scaling the cluster
Mark for review

Which command is used to create a new Kubernetes cluster with kubeadm?

  • kubectl apply
  • kubeadm init
  • kubectl cluster create
  • kubectl create
Mark for review

What is the role of the kube-scheduler in Kubernetes?

  • To handle ingress rules
  • To assign pods to nodes based on resource availability and scheduling requirements
  • To manage pod networking
  • To scale applications
Mark for review

What is the purpose of a StatefulSet in Kubernetes?

  • To run pods on every node
  • To handle batch jobs
  • To manage network policies
  • To manage stateful applications that require stable, unique network identifiers and persistent storage
Mark for review

Which component of Kubernetes is responsible for managing the lifecycle of pods?

  • kube-apiserver
  • kube-controller-manager
  • kube-proxy
  • Kubelet
Mark for review

What is the recommended way to manage Kubernetes cluster configuration and secrets?

  • Storing in environment variables
  • Keeping in source code
  • Using ConfigMaps and Secrets
  • Hardcoding in application
Mark for review

What is the purpose of the kube-proxy component in Kubernetes?

  • To handle DNS resolution
  • To manage network routing and load balancing for services
  • To manage pod lifecycles
  • To authenticate API requests
Mark for review

Which Kubernetes component is responsible for managing secrets?

  • kube-scheduler
  • kubelet
  • kube-controller-manager
  • kube-apiserver
Mark for review

Which Kubernetes component is responsible for managing secrets?

  • kube-apiserver
  • kube-controller-manager
  • kube-scheduler
  • kubelet
Mark for review

Which Kubernetes object type is used to ensure a certain number of pods are always running?

  • Pod
  • StatefulSet
  • Deployment
  • ReplicaSet
Mark for review

Which Kubernetes component is responsible for managing container runtime on each node?

  • kube-apiserver
  • Container runtime (e.g., Docker, containerd)
  • kube-proxy
  • kubelet
Mark for review

What is the purpose of the ClusterRole in Kubernetes?

  • To manage network policies
  • To define permissions for resources at the cluster level
  • To handle DNS resolution
  • To allocate CPU resources
Mark for review

What is the purpose of the kube-proxy component in Kubernetes?

  • To authenticate API requests
  • To manage pod lifecycles
  • To handle DNS resolution
  • To manage network routing and load balancing for services
Mark for review

What is the purpose of a PodSecurityPolicy in Kubernetes?

  • To handle pod lifecycle
  • To manage network policies
  • To enforce security constraints on pods and containers
  • To manage DNS resolution
Mark for review

Which Kubernetes resource is used to manage user access control?

  • NetworkPolicy
  • Role
  • ServiceAccount
  • Namespace
Mark for review

Which Kubernetes object type is used to ensure a certain number of pods are always running?

  • StatefulSet
  • Pod
  • ReplicaSet
  • Deployment
Mark for review

How does Kubernetes manage updates to applications?

  • By pausing affected applications
  • By rolling updates or recreating pods with updated configurations
  • By scheduling updates during off-peak hours
  • By scaling horizontally
Mark for review

What is the purpose of the readiness probe in Kubernetes?

  • To authenticate API requests
  • To scale applications
  • To determine when a pod is ready to serve traffic
  • To manage network policies
Mark for review

How does Kubernetes manage container networking between pods on different hosts?

  • By exposing host IP addresses
  • Using overlay networks
  • Through a network plugin
  • Via DNS resolution
Mark for review

What is the purpose of the readiness probe in Kubernetes?

  • To scale applications
  • To authenticate API requests
  • To determine when a pod is ready to serve traffic
  • To manage network policies
Mark for review

What is the purpose of a PersistentVolumeClaim (PVC) in Kubernetes?

  • To manage ingress rules
  • To allocate CPU resources
  • To request storage that persists beyond the life of a pod
  • To define pod priority
Mark for review

Which Kubernetes object type is used to run batch jobs?

  • Job
  • Deployment
  • CronJob
  • Pod
Mark for review

How does Kubernetes handle node failures?

  • By automatically scaling the cluster
  • By rescheduling pods onto available nodes
  • By terminating affected pods
  • By pausing affected applications
Mark for review

What is the purpose of an Ingress resource in Kubernetes?

  • To define pod priority
  • To allocate CPU resources
  • To manage external access to services in a cluster
  • To manage pod lifecycle
Mark for review

What is the role of kube-apiserver in a Kubernetes cluster?

  • To schedule pods
  • To manage container images
  • To expose the Kubernetes API
  • To manage node networking
Mark for review

blinkerOnline

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • Answered
  • Not Answered
  • Marked for Review