CKA Dumps

CKA Free Practice Test

Linux-Foundation CKA: Certified Kubernetes Administrator (CKA) Program

QUESTION 16

CORRECT TEXT
Create a busybox pod and add “sleep 3600” command
Solution:
kubectl run busybox --image=busybox --restart=Never -- /bin/sh -c
"sleep 3600"

Does this meet the goal?

Correct Answer: A

QUESTION 17

CORRECT TEXT
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
Solution:
solution
CKA dumps exhibit
F:WorkData Entry WorkData Entry20200827CKA15 B.JPG
CKA dumps exhibit
F:WorkData Entry WorkData Entry20200827CKA15 C.JPG

Does this meet the goal?

Correct Answer: A

QUESTION 18

CORRECT TEXT
List “nginx-dev” and “nginx-prod” pod and delete those pods
Solution:
kubect1 get pods -o wide
kubectl delete po “nginx-dev”kubectl delete po “nginx-prod”

Does this meet the goal?

Correct Answer: A

QUESTION 19

CORRECT TEXT
Score: 4%
CKA dumps exhibit
Task
Set the node named ek8s-node-1 as unavailable and reschedule all the pods running on it.
Solution:
SOLUTION:
[student@node-1] > ssh ek8s
kubectl cordon ek8s-node-1
kubectl drain ek8s-node-1 --delete-local-data --ignore-daemonsets --force

Does this meet the goal?

Correct Answer: A

QUESTION 20

Score:7%
CKA dumps exhibit
Task
Create a new PersistentVolumeClaim
• Name: pv-volume
• Class: csi-hostpath-sc
• Capacity: 10Mi
Create a new Pod which mounts the PersistentVolumeClaim as a volume:
• Name: web-server
• Image: nginx
• Mount path: /usr/share/nginx/html
Configure the new Pod to have ReadWriteOnce access on the volume.
Finally, using kubectl edit or kubectl patch expand the PersistentVolumeClaim to a capacity of 70Mi and record that change.
Solution:
Solution:
vi pvc.yaml storageclass pvc apiVersion: v1
kind: PersistentVolumeClaim metadata:
name: pv-volume spec: accessModes:
- ReadWriteOnce volumeMode: Filesystem resources:
requests: storage: 10Mi
storageClassName: csi-hostpath-sc
# vi pod-pvc.yaml apiVersion: v1 kind: Pod metadata:
name: web-server spec:
containers:
- name: web-server image: nginx volumeMounts:
- mountPath: "/usr/share/nginx/html"
name: my-volume volumes:
- name: my-volume persistentVolumeClaim: claimName: pv-volume
# craete
kubectl create -f pod-pvc.yaml
#edit
kubectl edit pvc pv-volume --record

Does this meet the goal?

Correct Answer: A