Free Linux Foundation CKA Exam Actual Questions

The questions for CKA were last updated On Dec 17, 2024

Question No. 1

Create a pod with image nginx called nginx and allow traffic on port 80

Show Answer Hide Answer
Correct Answer: A

Question No. 2

Configure the kubelet systemd- managed service, on the node labelled with name=wk8s-node-1, to launch a pod containing a single container of Image httpd named webtool automatically. Any spec files required should be placed in the /etc/kubernetes/manifests directory on the node.

You can ssh to the appropriate node using:

[student@node-1] $ ssh wk8s-node-1

You can assume elevated privileges on the node with the following command:

[student@wk8s-node-1] $ | sudo --i

Show Answer Hide Answer
Correct Answer: A

Question No. 3

Ensure a single instance of pod nginx is running on each node of the Kubernetes cluster where nginx also represents the Image name which has to be used. Do not override any taints currently in place.

Use DaemonSet to complete this task and use ds-kusc00201 as DaemonSet name.

Show Answer Hide Answer
Correct Answer: A

Question No. 4

List the nginx pod with custom columns POD_NAME and POD_STATUS

Show Answer Hide Answer
Correct Answer: A

Question No. 5

Create 2 nginx image pods in which one of them is labelled with env=prod and another one labelled with env=dev and verify the same.

Show Answer Hide Answer
Correct Answer: A