Kubernetes Quiz

This is a quiz about containers, Docker, and Kubernetes -- but mostly about Kubernetes.

1. cgroups govern which of the following resources (choose all that apply)?

a. CPU
b. Namespaces
c. Memory
d. Disk I/O rates

2. What does the Docker cache do?

a. It makes containers start up and be fully functional from a stopped state more rapid.
b. It makes pulling an image from a repository happen more rapid.
c. It makes the creation of an image from a Dockerfile more rapid.
d. It was designed for Swarm and later was redesigned to benefit Kubernetes.

3. What type of logging solution underlies Kubernetes default centralized capabilities?

a. LogStash via Elastic Stack
b. The EFK stack (ElasticSearch, FluentD, and Kibana)
c. Open source Splunk
d. Syslog
e. None of the above, Kubernetes has no centralized logging by default.

4. What Does the docker inspect Command Analyze?

a. Containers.
b. Images.
c. Docker networks.
d. All of the above.

5. What are three (of the six) types of resources that are namespaced via a Docker container?

6. Using a kubectl command, can you list individual containers?


7. Which of the following is the primary function of the Kubernetes scheduler do?

a. Sets a trigger based on resource utilization for a Kubernetes event to happen.
b. Sets a trigger based on time for a Kubernetes event to happen.
c. Allocates a worker node for a given pod based.
d. Prioritizes the maintenance of the controller manager according to the time of day.

8. How does the Kubelet authenticate with Kubernetes to govern the worker node and ensure it is part of the Kubernetes cluster?

a. Using secrets it authenticates with the Controller Manager.
b. etcd must be configured directly without the API server, and etcd must have the node's configuration information for a worker node to work.
c. The Kubelet contacts the control plane and the scheduler will accept or reject the node.
d. Initially the Kubelet registers with the API server to create a "node" resource.

9. What are the two things that the API server in the Kubernetes control plane does (choose one of the following letter options)?

a. Finds nodes with sufficient resources and assigns pods to such nodes
b. Manages replications of pods by increasing them during a scale out and decreasing them when scaling in
c. Ensure no resource starvation happens for a given cluster and manages the Deployment API object.
d. Stores resources in etcd and notifies clients about the change
e. Listens to the Kubernetes service proxy and manages affinity/anti-affinity rules.

10. What is the Kubernetes Service Proxy? Choose two.

a. A distributed key-value data store.
b. kube-proxy, one of three components that comprise a worker node (the others being a container runtime and kubelet).
c. The part of the control plane that performs cluster-level functions such as replication.
d. Something that load-balances network traffic between application components.
e. An HTTP endpoint for Services that do not require a fixed IP address.
f. An HTTP endpoint for Services that do not require port 443.

11. What is the kube-proxy? Choose two.

a. It acts as a proxy-like endpoint for a website that is powered by a Kubernetes cluster to allow for external traffic to be routed to the Pods.
b. It exists on the worker node and routes internal traffic destined for Kubernetes endpoints to one or more Pods on a given worker node.
c. It controls the container runtime on the node.
d. It exists on the control plane and routes internal traffic destined for Kubernetes endpoints to one or more Pods on a given worker node.
e. The Kubernetes Service Proxy.

12. What is a label selector in Kubernetes?

a. a pod label selector
b. a node label selector
c. Something used by kubectl to list a subset of pods.
d. Something used by Kubernetes internally to list a subset of pods.
e. It is something that is defined in a .yaml file (e.g., for use in a command such as "kubectl create -f foobar.yaml").
f. Something the can be combined for composite criteria (e.g., type1=alpha,type2=financialapp) when selecting pods.
g. All of the above
h. none of the above

13. What creates the pods on the nodes when a Deployment Controller attempts to converge system resources toward a desired state?

a. Deployment Manager
b. The Kubelet
c. The Replication Manager
d. The Node Controller
e. The Scheduler

14. Stateful containers and the StatefulSet Controller deal with which of the following?

a. Stateful containers and StatefulSet Controller do not exist; containers are ephemeral.
b. Ensuring each atomic process of a container is related to the previous process (e.g., to prevent a container breakout).
c. Instantiating, managing, mounting, and/or writing to a persistent volume.
d. None of the above.

15. What is a pod in Kubernetes?

a. A container
b. A container and etcd
c. A group of one or more closely related containers
d. The Docker host (the server that hosts containers)
e. None of the above

16. What command in Kubernetes will list the pods (associated with the kubeconfig) on your server with kubectl?

a. kubectl describe pods
b. kubectl explain pods
c. kubectl get pods
d. kubectl list-cluster
e. kubectl list pods

17. What is the equivalent of the "man" page for Kubernetes services?

a. kubectl describe svc
b. kubectl help svc
c. kubectl man svc
d. kubectl explain svc

18. How do you find out the IP address, the TCP/IP port and age of a given service that is running on your Kubernetes cluster?

a. kubectl describe svc
b. kubectl get resources
c. kubectl get rs
d. kubectl get svc
e. kubectl explain svc

19. When a Kubernetes cluster supports a web application, how is routing done? ____________________________________________

20. What component of the Kubernetes control plane sends out the liveness probes to the pods?

a. The API server
b. The Controller Manager
c. etcd
d. The Scheduler
e. None of the above.

21. What component of the Kubernetes control plane ultimately responds to failed liveness probes of containers?

a. The API server
b. The Controller Manager
c. etcd
d. The Scheduler
e. None of the above.

22. Which of the following are true in Kubernetes? Choose all that apply.

a. Taints apply to nodes.
b. Taints apply to pods.
c. Tolerations apply to nodes.
d. Tolerations apply to pods.

23. From which of the following can you create a Docker image?

a. a Dockerfile
b. a container
c. a .tar file
d. all of the above
e. none of the above

24. How many Schedulers in the control plane can run in a Kubernetes cluster?

a. You must have exactly one Scheduler.
b. You can have no Schedulers or at most one Scheduler.
c. You can have one or two Schedulers for every master node.
d. You can have no Schedulers or several.

You can find the answers to this quiz here.

Leave a comment

Your email address will not be published. Required fields are marked *