CKA Dumps

CKA Free Practice Test

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

QUESTION 1

CORRECT TEXT
Create a busybox pod that runs the command “env” and save the output to “envpod” file
Solution:
kubectl run busybox --image=busybox --restart=Never –-rm -it -- env > envpod.yaml

Does this meet the goal?

Correct Answer: A

QUESTION 2

CORRECT TEXT
List all the pods showing name and namespace with a json path expression
Solution:
kubectl get pods -o=jsonpath="{.items[*]['metadata.name',
'metadata.namespace']}"

Does this meet the goal?

Correct Answer: A

QUESTION 3

CORRECT TEXT
Schedule a pod as follows:
✑ Name: nginx-kusc00101
✑ Image: nginx
✑ Node selector: disk=ssd
Solution:
solution
CKA dumps exhibit
F:WorkData Entry WorkData Entry20200827CKA6 B.JPGF:WorkData
CKA dumps exhibit
F:WorkData Entry WorkData Entry20200827CKA6 C.JPG
CKA dumps exhibit
F:WorkData Entry WorkData Entry20200827CKA6 D.JPG

Does this meet the goal?

Correct Answer: A

QUESTION 4

CORRECT TEXT
Check the Image version of nginx-dev pod using jsonpath
Solution:
kubect1 get po nginx-dev -o
jsonpath='{.spec.containers[].image}{"n"}'

Does this meet the goal?

Correct Answer: A

QUESTION 5

CORRECT TEXT
List all the pods sorted by name
Solution:
kubect1 get pods --sort-by=.metadata.name

Does this meet the goal?

Correct Answer: A