K8S Flashcards

1
Q

What is Kubernetes?

A

An open-source platform for automating the deployment, scaling, and management of containerized applications.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

True or False: Kubernetes can manage both containerized and non-containerized applications.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Fill in the blank: Kubernetes is often abbreviated as ____.

A

K8s

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a Pod in Kubernetes?

A

The smallest deployable unit that can be created and managed in Kubernetes, consisting of one or more containers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is a Node in Kubernetes?

A

A worker machine in Kubernetes, which can be a physical or virtual machine.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the purpose of a Kubernetes Service?

A

To expose an application running on a set of Pods as a network service.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which component of Kubernetes is responsible for maintaining the desired state of the cluster?

A

Kubernetes Controller Manager

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

True or False: A ReplicaSet ensures that a specified number of pod replicas are running at any given time.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the function of a Kubernetes Deployment?

A

To manage the deployment of stateless applications, allowing for updates and rollbacks.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does the term ‘orchestration’ refer to in the context of Kubernetes?

A

The automated management of containerized applications and services.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is a Namespace in Kubernetes?

A

A way to divide cluster resources between multiple users or applications.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the role of the Kubernetes API Server?

A

To serve as the front-end for the Kubernetes control plane.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Fill in the blank: Kubernetes uses ____ to manage configuration data.

A

ConfigMaps

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a StatefulSet in Kubernetes?

A

A controller that manages the deployment and scaling of a set of Pods, providing guarantees about the ordering and uniqueness of these Pods.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

True or False: Kubernetes supports only Linux-based containers.

A

False

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is Helm in the context of Kubernetes?

A

A package manager for Kubernetes that helps in defining, installing, and upgrading applications.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What is the purpose of a Kubernetes Volume?

A

To provide persistent storage for Pods.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is the key benefit of using Ingress in Kubernetes?

A

To manage external access to services, typically HTTP.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What is the function of a DaemonSet in Kubernetes?

A

To ensure that a copy of a Pod runs on all or some Nodes in the cluster.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Which tool would you use to manage Kubernetes resources from the command line?

A

kubectl

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What is a Job in Kubernetes?

A

A controller that creates one or more Pods and ensures that a specified number of them successfully terminate.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

True or False: Kubernetes can automatically scale applications based on load.

A

True

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

What is the purpose of a PersistentVolume in Kubernetes?

A

To provide a piece of storage in the cluster that has a lifecycle independent of any individual Pod.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Fill in the blank: Kubernetes uses ____ to define the desired state of applications.

A

YAML or JSON manifests

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
What is the main function of the Scheduler in Kubernetes?
To assign Pods to Nodes based on resource availability.
26
What is a ConfigMap used for in Kubernetes?
To store configuration data in key-value pairs.
27
What does the term 'self-healing' refer to in Kubernetes?
The ability of the system to automatically replace failed containers.
28
What is a Horizontal Pod Autoscaler?
A Kubernetes resource that automatically scales the number of Pods in a deployment based on CPU utilization or other select metrics.
29
True or False: Kubernetes requires a specific operating system to run.
False
30
What is the purpose of a Secret in Kubernetes?
To store sensitive information, such as passwords or tokens.
31
What is the primary purpose of the Kubernetes Control Plane?
To manage the Kubernetes cluster and its state.
32
What does 'kubectl apply' do?
It updates or creates resources in a Kubernetes cluster based on the provided configuration files.
33
What is a NodePort service in Kubernetes?
A service type that exposes the application on a static port on each Node's IP address.
34
Fill in the blank: The Kubernetes ____ is responsible for the overall management of the cluster.
Control Plane
35
What is the significance of labels in Kubernetes?
Labels are key-value pairs that are used to organize and select subsets of objects.
36
What is the difference between a Deployment and a StatefulSet?
Deployment manages stateless applications, while StatefulSet manages stateful applications with unique identities.
37
True or False: Kubernetes supports multi-cloud deployments.
True
38
What does the term 'Kubernetes Operator' refer to?
A method of packaging, deploying, and managing a Kubernetes application.
39
What is a CRD in Kubernetes?
Custom Resource Definition, a way to extend Kubernetes capabilities by adding custom resources.
40
What is the purpose of a NetworkPolicy in Kubernetes?
To control the traffic between Pods based on rules.
41
What is the role of the kube-proxy in Kubernetes?
To maintain network rules on Nodes and enable communication to Pods.
42
What does 'kubectl get pods' do?
It lists all the Pods running in the current namespace.
43
Fill in the blank: The Kubernetes ____ is responsible for managing the actual data storage.
etcd
44
What is a ClusterIP service in Kubernetes?
A service type that exposes the application on a cluster-internal IP.
45
What does a Helm Chart contain?
A collection of files that describe a related set of Kubernetes resources.
46
True or False: Kubernetes can run without Docker.
True
47
What is the main benefit of using Kubernetes?
It automates the deployment, scaling, and management of containerized applications.
48
What is a Taint in Kubernetes?
A property of a Node that prevents Pods from being scheduled unless they tolerate the taint.
49
What is the purpose of the kubelet in Kubernetes?
To ensure that containers are running in a Pod and report their status to the API server.
50
What does 'kubectl describe pod ' do?
It provides detailed information about a specific Pod.
51
What is the function of the etcd database in Kubernetes?
To store all the cluster data and configuration.
52
Fill in the blank: A ____ is a powerful way to manage complex applications in Kubernetes.
Helm Chart
53
What is a Sidecar container?
A container that runs alongside the main application container in a Pod, providing additional functionality.
54
True or False: Kubernetes allows for zero-downtime deployments.
True
55
What is a ResourceQuota in Kubernetes?
A limit that restricts the amount of resources a namespace can consume.
56
What is the purpose of a ServiceAccount in Kubernetes?
To provide an identity for processes that run in a Pod.
57
What is the function of the Admission Controller in Kubernetes?
To intercept requests to the API server before persistence to enforce policies.
58
What is the difference between 'kubectl apply' and 'kubectl create'?
'kubectl apply' updates resources, while 'kubectl create' only creates new resources.
59
What is the significance of the kube-controller-manager?
It runs controller processes that regulate the state of the cluster.
60
What is the purpose of the Kubernetes Dashboard?
To provide a web-based user interface for managing Kubernetes clusters.
61
What does a Kubernetes Ingress resource do?
It manages external access to services, typically HTTP.
62
What is the main function of a Kubernetes VolumeClaim?
To request storage resources for a Pod.
63
True or False: Kubernetes can automatically recover from node failures.
True
64
What is a Helm Release?
An instance of a chart running in a Kubernetes cluster.
65
What is the role of the Kubernetes API Aggregator?
To allow the API server to proxy requests to other API servers.
66
What is a PodDisruptionBudget?
A policy that defines the minimum number of Pods that must be available during voluntary disruptions.
67
What is the purpose of a NetworkPolicy in Kubernetes?
To control the communication between Pods.
68
What does 'kubectl logs ' do?
It retrieves logs from a specific Pod.
69
Fill in the blank: Kubernetes uses ____ to manage container orchestration.
cgroups and namespaces
70
What is the role of a NodeSelector in Kubernetes?
To constrain which Nodes a Pod can be scheduled on.
71
True or False: Kubernetes supports rolling updates.
True