Online Exam Quiz

questionQuestion  1 to 30

Which Kubernetes resource allows scaling of applications based on CPU or memory usage?

  • HorizontalPodAutoscaler
  • StatefulSet
  • Pod
  • Deployment
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

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

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

Which Kubernetes resource is used to manage network policies?

  • Ingress
  • NetworkPolicy
  • PodSecurityPolicy
  • ServiceAccount
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

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

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

How does Kubernetes manage secrets used by applications?

  • By hardcoding in applications
  • By exposing them in environment variables
  • By storing them in Kubernetes Secrets and mounting them into pods
  • By embedding them in YAML files
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

Which Kubernetes object type is used to expose a container port to the cluster?

  • Ingress
  • Pod
  • Deployment
  • Service
Mark for review

What is the purpose of a StatefulSet in Kubernetes?

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

What is the purpose of the kubelet in Kubernetes?

  • To manage container storage
  • To manage node networking
  • To expose the Kubernetes API
  • To manage the lifecycle of pods on a node
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 role of kube-apiserver in a Kubernetes cluster?

  • To expose the Kubernetes API
  • To manage node networking
  • To schedule pods
  • To manage container images
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

How does Kubernetes manage resource allocation for pods?

  • By scaling vertically
  • By defining resource requests and limits in pod specifications
  • By using external storage
  • By allocating fixed resources
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

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

  • Pod
  • StatefulSet
  • Deployment
  • ReplicaSet
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 Kubernetes object type is used to ensure a certain number of pods are always running?

  • StatefulSet
  • Pod
  • ReplicaSet
  • Deployment
Mark for review

Which Kubernetes object type is used to group multiple services that logically belong together?

  • ServiceAccount
  • RoleBinding
  • Namespace
  • Deployment
Mark for review

Which Kubernetes object type is used to group multiple services that logically belong together?

  • RoleBinding
  • Deployment
  • ServiceAccount
  • Namespace
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 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

How does Kubernetes manage scheduling of pods onto nodes?

  • By running pods on all available nodes
  • By deploying pods manually
  • By using the kube-scheduler component
  • By using Kubernetes API
Mark for review

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

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

Which Kubernetes resource is used to manage user access control?

  • NetworkPolicy
  • Role
  • ServiceAccount
  • Namespace
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

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