This is a quiz about containers, Docker, and Kubernetes — but mostly about Kubernetes. You can test yourself before a job interview. You may also want to see this list of Kubernetes books.
1. To set a maximum number of failures threshold, which of the following key words would you use (for a Kubernetes application to try a pod)?
a. backofflimit
b. maxnumretries
c. retriesmax
d. numoffailures
e. numfailures
2. Do custom controllers run inside or outside of the control plane?
a. Inside
b. Outside
c. Potentially either A or B
d. None of the above or unknown.
3. How do you view the API resources you have access to?
a. Use online documentation.
b. Run this command: kubectl api-resources
c. Run this command: kubectl config view
d. Run this command: kubeadm list apis
e. None of the above.
4. Which of the following is true?
a. A properly configured headless service always has a selector.
b. A properly configured headless service never has a selector.
c. A properly configured headless service can have a selector but does not need to.
d. There is no such thing as a properly configured headless service in Kubernetes.
5. What is the way of determining how to connect to a service called? Choose the best answer.
a. Service discovery
b. Path determination
c. Route determination
d. kube-proxy routing
e. Label selecting
f. Protocol selecting
6. In Kubernetes, what is a Headless service?
_______________________________________________
7. What container is essential to Heroku?
a. rkt
b. Podman
c. LXC
d. Dyno
e. None of the above
8. A StatefulSet YAML file is a Deployment YAML file with a PVC.
True
False
9. You can limit the CPU and RAM of a "kind: Job" the same way you do with a "kind: Deployment" or a "kind: Pod"
True
False
10. What is an Alpine image?
a. The most commonly used image in Docker or Kubernetes.
b. An image for Kubernetes pods to listen and perform networking functions.
c. A stripped-down Docker image based on Ubuntu Linux
d. A stripped-down Docker image based on Alpine Linux
e. A stripped-down Docker image based on Red Hat Linux
f. None of the above.
11. Roles in Kubernetes are
a. A type of resource
b. Capable of governing what actions can be taken on Kubernetes resources
c. A and B
d. None of the above
12. What should be plural in Kubernetes YAML files? Choose the best answer.
a. endpoints even when there is only one
b. resources even when there is only one
c. kind even when there is only one
d. All of the above
e. A and B
f. None of the above.
13. What is a job in Kubernetes? Choose the best answer.
a. An action that the scheduler assigns.
b. A resource for a discrete task.
c. A component of a Kubernetes operator.
d. The activity that utilizes a pod's computational resources (such as consuming CPU or RAM).
e. None of the above.
14. In Kubernetes a service does what? Choose the best answer.
a. Exposes a Pod as a TCP socket.
b. The Control Plane component that allocates pods.
c. A component of the controller manager.
d. Utilizes a pod to perform non-completable tasks such as listening -- no networking is involved.
e. None of the above.
To see the answers, click here.