This page represents practice test consisting of objective questions and answers on Kubernetes. This practice test covers the topic such as Pod Lifecycle. The practice test can prove to be very helpful if you are preparing to take Certified Kubernetes Administrator (CKA) certification examination in near future. It covers the Core Concepts from CKA certification exam syllabus.
Those preparing for interviews in relation with Kubernetes or cloud-native apps would also find these questions to be useful enough. These questions can as well prove to be useful for interns / freshers / beginners.
Revision Notes – Kubernetes Concepts (Pod Lifecycle)
- A Pod status field is a PodStatus object which has got phase field.
- The phase of the pod is a simple, high-level summary of where the Pod is in its lifecycle
- Kubelet invokes following probe handlers to check some of the following:
- ExecAction to execute a command within a container
- TCPSocketAction to check if a port is open at a containeer’s IP address
- HttpGetAction to perform an HTTP Get request against the Container’s IP address on a specified port and path.
- In case a diagnostic probe failed to execute, the status returned is Unknown and not Failure
- Liveness probe is used to indicate whether a container is running.
- Readiness probe needs to be specified if the requirement is to send traffic to a Pod only when a probe succeeds.
- Liveness probe needs to be specified if the requirement is kill and restart the container if a probe fails
- Probes are executed by Kubelet
- The possible values of restartPolicy are Always, OnFailure, Never.
- restartPolicy refers to restart of the container by the kubelet on same node.
- Pods with succeeded and failed for more than some duration will expire and be automatically destroyed
- Controller, DaemonSet, can be used to create/manage Pods which need to run one per machine.
- Controller, Job, can be used to create/manage Pods with restartPolicy as OnFailure or Never
- Controller, ReplicationController, can be used to create/manage Pods that are not expected to terminate, for example, web servers, e.g., ReplicationController are appropriate for Pods with restartPolicy of Always.
Practice Test – Kubernetes Concepts (Pod Lifecycle)
[wp_quiz id=”6115″]
Additional Practice Tests
These are additional practice tests which relates to core concepts part of CKA certification test. Note that as per syllabus, core concepts will cover 19% questions in CKA certification test.
References
- OpenAI GPT Models in 2024: What’s in it for Data Scientists - December 30, 2024
- Collaborative Writing Use Cases with ChatGPT Canvas - December 29, 2024
- When to Use ChatGPT O1 Model - December 28, 2024
I found it very helpful. However the differences are not too understandable for me