Kubernetes Quiz: Questions And Answers

Reviewed by Godwin Iheuwa
Godwin Iheuwa, MS (Computer Science) |
Database Administrator
Review Board Member
Godwin Iheuwa, a Database Administrator at MTN Nigeria, holds an MS in Computer Science, specializing in Agile Methodologies and Database Administration from the University of Bedfordshire and a Bachelor's in Computer Science from the University of Port Harcourt. His proficiency in SQL Server Integration Services (SSIS) and SQL Server Management Studio contributes to his expertise in database management.
, MS (Computer Science)
Approved & Edited by ProProfs Editorial Team
The editorial team at ProProfs Quizzes consists of a select group of subject experts, trivia writers, and quiz masters who have authored over 10,000 quizzes taken by more than 100 million users. This team includes our in-house seasoned quiz moderators and subject matter experts. Our editorial experts, spread across the world, are rigorously trained using our comprehensive guidelines to ensure that you receive the highest quality quizzes.
Learn about Our Editorial Process
| By S_sushant
S
S_sushant
Community Contributor
Quizzes Created: 2 | Total Attempts: 21,919
Questions: 18 | Attempts: 21,312

SettingsSettingsSettings
Kubernetes Quiz: Questions And Answers - Quiz

You need to take our Kubernetes quiz with informative questions and answers today if you want to find out how much you actually know about it! You must be aware that Kubernetes is an open-source platform for managing containerized workloads and services which is portable and extensible. It also facilitates both declarative configuration and automation. It even has a large, rapidly growing ecosystem. Kubernetes services, support, and tools are widely available all over the world. The name Kubernetes has its origins in Greek, meaning helmsman or pilot. Now let's get on with the quiz!


Questions and Answers
  • 1. 

    ___________ runs on each node and ensures containers are running in a pod.

    • A.

      Kubelet

    • B.

      Etcd

    • C.

      Scheduler

    • D.

      Pod

    Correct Answer
    A. Kubelet
    Explanation
    The kubelet is responsible for running containers on each node in a Kubernetes cluster. It ensures that the containers specified in a pod are running and healthy. It communicates with the Kubernetes API server to receive instructions on which containers to run and monitors their status. The kubelet also performs tasks such as pulling container images, mounting volumes, and managing networking for the containers. Therefore, the kubelet is the component that runs on each node and ensures containers are running in a pod.

    Rate this question:

  • 2. 

    _______ manages the assigning nodes to pods depending on resource availability.

    • A.

      Etcd

    • B.

      Kubectl

    • C.

      Scheduler

    • D.

      Flanneld

    Correct Answer
    C. Scheduler
    Explanation
    The scheduler is responsible for managing the assignment of nodes to pods based on the availability of resources. It evaluates the resource requirements of each pod and determines the best node to schedule it on. This ensures efficient utilization of resources and optimal performance of the cluster.

    Rate this question:

  • 3. 

    As soon a service starts, .......... daemon running on each node add a set of environment variables on the pod for each active service.

    • A.

      Kubectl

    • B.

      Kubelet

    • C.

      Kubeadm

    • D.

      Service discovery

    Correct Answer
    B. Kubelet
    Explanation
    The kubelet is responsible for managing the state of each node in a Kubernetes cluster. When a service starts, the kubelet running on each node adds a set of environment variables on the pod for each active service. These environment variables provide important information and configuration details for the service to function correctly within the cluster.

    Rate this question:

  • 4. 

    Replication Controllers and Deployment Controllers are part of

    • A.

      API Controller Manager

    • B.

      Etcd manager

    • C.

      Master Controller Manager

    • D.

      Kubeadm

    Correct Answer
    C. Master Controller Manager
    Explanation
    The Master Controller Manager is responsible for managing different controllers in Kubernetes, such as Replication Controllers and Deployment Controllers. These controllers are crucial for ensuring the desired state of the cluster, managing the scaling and replication of pods, and handling updates and rollbacks. Therefore, the Master Controller Manager is the correct option as it encompasses the overall management of controllers in Kubernetes.

    Rate this question:

  • 5. 

    ___________________ is a special namespace that is used for special purposes like bootstrapping a cluster.

    • A.

      Kube-public

    • B.

      Kube-private

    • C.

      Kube-system

    • D.

      Default

    Correct Answer
    A. Kube-public
    Explanation
    The kube-public namespace is a special namespace used for special purposes like bootstrapping a cluster. It is a publicly readable namespace that contains resources that should be accessible to all users and services in the cluster. This namespace is commonly used for storing cluster-wide resources that need to be accessed by multiple users or services, such as cluster-wide configuration maps or public secrets.

    Rate this question:

  • 6. 

    Kubernetes uses _______________________ to connect to path 2 providers to offload the authentication to external services.

    • A.

      Webhook Token Authentication

    • B.

      Keystone Password

    • C.

      OpenID Connect Tokens

    • D.

      Authentication Proxy

    • E.

      Both A and D

    Correct Answer
    E. Both A and D
    Explanation
    Both Option A, "Webhook Token Authentication," and Option D, "Authentication Proxy," are valid concepts in the context of Kubernetes authentication. They represent different approaches to handling authentication and can be used in different scenarios.

    Webhook Token Authentication (Option A): This approach involves using webhooks to connect to external identity providers and validate authentication tokens. It allows Kubernetes to delegate authentication to external services.

    Authentication Proxy (Option D): An authentication proxy can be used to handle authentication requests on behalf of Kubernetes. It may interact with external identity providers and enhance the authentication process.

    The choice between these options may depend on specific use cases, requirements, and the desired architecture for handling authentication in a Kubernetes cluster. Both approaches can be part of a Kubernetes authentication setup, depending on the implementation chosen by the cluster administrator.

    Rate this question:

  • 7. 

    To program additional authentication logic besides available authenticator modules, _______________ can be used.

    • A.

      WebHook Authentication

    • B.

      Authentication Proxy

    • C.

      Keystone Password

    • D.

      OpenID Connect Tokens

    Correct Answer
    B. Authentication Proxy
    Explanation
    To program additional authentication logic besides available authenticator modules, an Authentication Proxy can be used. An Authentication Proxy acts as an intermediary between the user and the authentication system, allowing for the implementation of custom authentication logic. It can authenticate users based on various factors such as user credentials, device information, or location, and then communicate with the authentication system to verify the user's identity. By using an Authentication Proxy, developers have the flexibility to add their own authentication logic on top of the existing authenticator modules.

    Rate this question:

  • 8. 

    Kubernetes is written in

    • A.

      C++

    • B.

      Go

    • C.

      Python

    • D.

      Java Spring framework

    Correct Answer
    B. Go
    Explanation
    Kubernetes is written in Go. Go, also known as Golang, is a programming language developed by Google. It is known for its simplicity, efficiency, and strong support for concurrency. Go's fast execution speed and built-in features for networking and parallelism make it an ideal choice for developing highly scalable and efficient systems like Kubernetes. Additionally, Go's strong type system and garbage collection help ensure the reliability and stability of the Kubernetes codebase.

    Rate this question:

  • 9. 

    An abstraction in Kubernetes that defines a logical set of pods and a policy to access them.

    • A.

      Kubelet

    • B.

      Service

    • C.

      Node

    • D.

      Container

    Correct Answer
    B. Service
    Explanation
    A service in Kubernetes is an abstraction that defines a logical set of pods and a policy to access them. It acts as a stable endpoint to connect to a group of pods, providing load balancing and service discovery functionality. By defining a service, applications can easily communicate with each other without needing to know the specific IP addresses or ports of individual pods.

    Rate this question:

  • 10. 

    To create a new deployment in Kubernetes, use the command.

    • A.

      Kubernetes set deployment

    • B.

      Kubernetes get deployment

    • C.

      Kubectl run

    • D.

      Kubectl deploy

    Correct Answer
    C. Kubectl run
    Explanation
    The correct answer is "kubectl run" because this command is used to create a new deployment in Kubernetes. It allows users to run a particular image on the cluster and manage it as a deployment. The "kubectl run" command is commonly used to quickly create and deploy containers in Kubernetes.

    Rate this question:

  • 11. 

    The command to create Kubernetes service is

    • A.

      Kubectl expose

    • B.

      Kubectl set service

    • C.

      Kubectl run

    • D.

      Kubectl deploy

    Correct Answer
    A. Kubectl expose
    Explanation
    The correct answer is "kubectl expose" because this command is used to create a Kubernetes service. It allows the user to expose a deployment, replication controller, or pod as a new service. This command is essential for setting up networking within a Kubernetes cluster and making the service accessible to other pods or external clients.

    Rate this question:

  • 12. 

    Kube-Episerver on Kubernetes master is designed to scale. 

    • A.

      Vertically

    • B.

      Horizontally

    Correct Answer
    B. Horizontally
    Explanation
    The correct answer is horizontally. This means that the Kube-Episerver on the Kubernetes master is designed to scale by adding more instances of the Kube-Episerver horizontally. Horizontal scaling involves adding more machines or instances to distribute the workload and increase capacity. This allows for better performance and handling of increased traffic or demand in a Kubernetes cluster.

    Rate this question:

  • 13. 

    Following k8s resources do not associate with any namespace.

    • A.

      DaemonSets

    • B.

      PersistentVolumes

    • C.

      ReplicaSets

    • D.

      Nodes

    • E.

      Services

    Correct Answer(s)
    B. PersistentVolumes
    D. Nodes
    Explanation
    PersistentVolumes and Nodes do not associate with any namespace in Kubernetes.

    PersistentVolumes are storage resources that exist independently of any namespace and can be accessed by any pod in the cluster. They provide a way to store data that needs to persist beyond the lifetime of a pod.

    Nodes, on the other hand, represent the worker machines in the cluster and are responsible for running pods. They are not associated with any specific namespace as they are part of the cluster infrastructure rather than an application or service running within a namespace.

    Rate this question:

  • 14. 

    The Service Type _____________ works only if your cluster is setup to work with a cloud provider.

    • A.

      ClusterIP

    • B.

      NodePort

    • C.

      LoadBalancer

    • D.

      ExternalName

    Correct Answer
    C. LoadBalancer
    Explanation
    The LoadBalancer service type works only if your cluster is set up to work with a cloud provider. This is because a LoadBalancer service type requires the cloud provider's load balancer to distribute traffic to the service. If the cluster is not set up with a cloud provider, the load balancer functionality will not be available, and therefore the LoadBalancer service type cannot be used.

    Rate this question:

  • 15. 

    This volume type can be used to share contents within containers in a pod, but will not persist beyond the life of a pod.

    • A.

      EmptyDir

    • B.

      FlexVolume

    • C.

      ConfigMap

    • D.

      Local

    Correct Answer
    A. EmptyDir
    Explanation
    Explanation: The emptyDir volume type in Kubernetes is designed to share content among containers within a pod. This volume is created when the pod starts and is deleted when the pod stops or is terminated. It does not persist beyond the lifecycle of the pod, making it suitable for temporary data storage or for sharing data between containers in the same pod. This characteristic makes emptyDir ideal for use cases where data persistence is not required after the pod's lifecycle ends.

    Rate this question:

  • 16. 

    __________________ is responsible for health check of the pods running on individual nodes

    • A.

      Kubectl

    • B.

      Kube controller manager

    • C.

      Kube scheduler

    • D.

      Kubelet

    Correct Answer
    D. Kubelet
    Explanation
    The kubelet is responsible for the health check of the pods running on individual nodes. It is an agent that runs on each node in the cluster and ensures that the containers in the pods are running and healthy. The kubelet communicates with the Kubernetes API server to receive instructions about which pods to run and monitor. It also reports the status of the pods back to the API server.

    Rate this question:

  • 17. 

    Cronjobs in Kubernetes run in

    • A.

      UTC only

    • B.

      Server NTP settings

    • C.

      Local time zone

    • D.

      GMT only

    Correct Answer
    A. UTC only
    Explanation
    Cronjobs in Kubernetes run in UTC only. This means that the scheduled tasks will be executed based on Coordinated Universal Time, which is a standardized time used worldwide. The use of UTC ensures consistency and avoids any confusion caused by different time zones.

    Rate this question:

  • 18. 

    _________ service is automatically created for you k8s cluster creation and takes care of the internal routing of the cluster.

    • A.

      NodePort

    • B.

      ClusterIP

    • C.

      Headless

    • D.

      Load Balancer

    Correct Answer
    B. ClusterIP
    Explanation
    A ClusterIP service is automatically created for you during k8s cluster creation and it takes care of the internal routing of the cluster. ClusterIP is a type of service in Kubernetes that assigns a virtual IP address to a set of pods. This IP address allows communication between the pods within the cluster, but it is not accessible from outside the cluster. ClusterIP services are used for internal communication and are not exposed to the external network.

    Rate this question:

Godwin Iheuwa |MS (Computer Science) |
Database Administrator
Godwin Iheuwa, a Database Administrator at MTN Nigeria, holds an MS in Computer Science, specializing in Agile Methodologies and Database Administration from the University of Bedfordshire and a Bachelor's in Computer Science from the University of Port Harcourt. His proficiency in SQL Server Integration Services (SSIS) and SQL Server Management Studio contributes to his expertise in database management.

Quiz Review Timeline +

Our quizzes are rigorously reviewed, monitored and continuously updated by our expert board to maintain accuracy, relevance, and timeliness.

  • Current Version
  • Feb 13, 2024
    Quiz Edited by
    ProProfs Editorial Team

    Expert Reviewed by
    Godwin Iheuwa
  • Apr 14, 2018
    Quiz Created by
    S_sushant
Back to Top Back to top
Advertisement
×

Wait!
Here's an interesting quiz for you.

We have other quizzes matching your interest.