WorksheetsIntroduction to Kubernetes
Total questions: 25
Worksheet time: 13mins
What is YAML?
It is a human-friendly, data serialization standard for all programming languages.
It is a generic, read-only data structure for Kubernetes.
It is a markup language dedicated to translating text formatting between sources.
It is a markup language for managing application abstractions.
Why is a node managed by an external, master node?
Because a Kubernetes node is running a traditional operating system package and therefore cannot run in an isolated sense.
Because a node is a simple worker unit and does not have the resource to manage itself.
Because if a node goes offline, there would be no way for it to communicate its status to other nodes.
Because a node does not container the Kubernetes container runtime which stops it from reading its own metadata.
What is the role of the control plane in a cluster?
To register the node it's running with the application programming interface (API) server.
To make the cluster's current state match the desired state.
To deploy and rune the application containers.
To allocate the node the pods need to be created.
Whit is kube-scheduler, one of the kubernetes master components, responsible for?
Allocating cloud resources defined whithin your cluster, such as creating storage voumes.
Watching for newly created Pods, and determining which node they should run on.
Invoking container on a cron schedule that the user defines.
Load balancing between the worker nodes when an incoming request is received.
What is the purpose of a context element in a kubeconfig file?
To group custom resources in a Kubernetes configuration.
To group access parameters under a single name.
To group authentication mapping in a Kubernetes cluster.
To group public elements in a Kubernetes cluster.
The Master Node has which feature?
Container manager.
Image manager.
etcd key/value store.
Kubernetes controller.
What is the most basic type of resource in Kubernetes?
Pod
Deployment
Service
Container
Which of the following is NOT a feature provided by Kubernetes?
Self-healing.
Automate rollouts/rollbacks.
Horizontal Scaling.
Image Creation.
Service Discovery.
Which types of nodes does Kubernetes supports?
Admin and Task.
Master and Worker.
Cluster and Team.
Master and Build.
Which Cluster Component stores the configuration in the Cluster Store?
API Server
kubectl
etcd
kubelet
Controllers
What does Kubernetes enable system and application developers to do?
Change your application architecture from monoliths to micro services.
Quickly and consistently deploy container-based applications.
Store persistent data in distributed cloud infrastructures.
Migrate applications into cloud-based infrastructures.
In Kubernetes, which of the following is NOT true about Pods?
Pods can contain one or more containers.
Pods are the unit of scheduling in the cluster.
Pods are ephemeral and can never be redeployed.
Pods can be redeployed with state.
In Kubernetes, what has the responsibility of managing the state of your Pod?
Cluster Store
kubectl
Controllers
Pods
What has the responsibility of downloading and running container images in Kubernetes?
Scheduler
Controller Manager
Container Runtime
API Server
For Kubernetes to run on a Linux-based operating system, which of the following is required?
Dynamically-sized swap file.
Fixed swap file size.
Swap file on dedicated disk.
Swap disabled.
What is the primary principle behind keeping applications online in Kubernetes?
Desired State
Controllers
ReplicaSets
API Server
In Kubernetes, what are API objects?
A collection of imperative code that configures the state of your system.
A collection of declarative code that configures the state of your system.
A method of deploying applications in Kubernetes.
A collection of primitives to represent the state of your system.
What is the default port number for the API Server?
443/tcp
6443/udp
6443/tcp
80/tcp
Some statements related to Kubernetes are given below. Which of these is true?
Kubernetes acts as a hypervisor and abstracts standalone containers from the underlying hardware and OS.
Kubernetes is an orchestration technology for containers that hosts those container within pods.
Containers that crash in a container cluster managed by Kubernetes cannot be restarted automatically.
Kubernetes is a containerization technology that packages code and its dependencies into an image.
Among the following Kubernetes components, which one refers to the machines that constitute the cluster and run the various Kubernetes services?
Node Images
Clusters
Nodes
Node Pools
What command-line tool is used to interact with the Kubernetes API?
docker
docker-compose
kubernetes
kubectl
kubelet
What is the primary application transport mechanism for the Kubernetes API Server.
TCP multiplexing over HTTP/S
JavaScript over WebSockets
Service side RPC calls
JSON over HTTP/S
Objects in the Kubernetes are organized by which following methods.
Key value store
etcd's concurrency model
Object level resourceVersion
Kind, Group, and API Version
For Kubernetes API Objects that were part of the initial releases, which API Group are they in?
Workload
Core/Legacy
Fundamental
They've been refactored into their appropriate API Groups.
What is the primary unit of allocating work in a Kubernetes Cluster?
Container
Manifest
Deployment
Pod
