Visit Official SkillCertPro Website :-
Certified Kubernetes Administrator (CKA) Exam Dumps 2022
For a full set of 170+ questions. Go to
https://skillcertpro.com/product/certified-kubernetes-administrator-cka-exam-questions/
SkillCertPro offers detailed explanations to each question which helps to understand the concepts better.
It is recommended to score above 85% in SkillCertPro exams before attempting a real exam.
SkillCertPro updates exam questions every 2 weeks.
You will get life time access and life time free updates
SkillCertPro assures 100% pass guarantee in first attempt.
Question 1:
Create a busybox pod that runs the command “env” and save the output to “envpod” file
A. kubectl run busybox --image=easybox --restart=Never –-y-run -- env > envpod.yaml
B. kubectl run busybox --image=busybox --restart=Never –-y-run > envpod.yaml
C. kubectl run busybox --image=busybox --restart=Never –-rm -it -- env > envpod.yaml
D. kubectl run busybox --image=busybox --restart=Never –-y-run -- Env > envpod.yaml
Answer: C
Question 2:
Watch the job that runs 10 times one by one and verify 10 pods are created and delete those after it’s completed
A. kubectl get jobs -all kubectl get po kubectl delete j hello-job-mu
B. kubectl list job -w kubectl list po kubectl delete job hello-job
C. kubectl get job -w kubectl get po kubectl remove job hello-job
D. kubectl get job -w kubectl get po kubectl delete job hello-job
Answer: D
Question 3:
List all the pods sorted by name
A. kubectl set pods --sort-by=name
B. kubectl get pods --sort-by=name
C. kubectl get pods --sort-by=.metadata.name
D. kubectl list pods --sort-by=name
Answer: C
Question 4:
Undo/Rollback deployment to specific revision “1”
A. Check Deployment History kubectl history rollout deployment webapp //Rollback to particular revision kubectl undo rollout deploymet webapp --to-revision=1
B. Check Deployment History kubectl rollout history deployment webapp kubectl rollout undo deploymet webapp --to-revision=1
C. Check Deployment History kubectl rollout history deployment webapp //Rollback to particular revision kubectl rollout undo deploymet webapp --to-revision=1
D. Check Deployment History kubectl history deployment webapp //Rollback to particular revision kubectl undo deploymet webapp --to-revision=1
Answer: C
Question 5:
Create an nginx pod and load environment values from the above configmap “keyvalcfgmap” and exec into the pod and verify the environment variables and delete the pod
A. kubectl run nginx --image=busybox--restart=Always --dry-run -o yaml > nginx-pod.yml // edit the yml to below file and create vim nginx-pod.yml apiVersion: v1 kind: Pod metadata: labels: run: nginx name: nginx spec: containers: - image: busybox name: nginx envFrom: - configMapRef: name: keyvalcfgmap restartPolicy: Always kubectl apply -f nginx-pod.yml // verify kubectl exec -it nginx -- env kubectl delete po nginx
B. kubectl run nginx --image=nginx --restart=Always --dry-run -o yaml > nginx-pod.yml // edit the yml to below file and create vim nginx-pod.yml apiVersion: v1 kind: Pod metadata: labels: run: nginx name: nginx spec: containers: - image: nginx name: nginx envFrom: - configMapRef: name: keyvalcfgmap restartPolicy: Always kubectl apply -f nginx-pod.yml // verify kubectl exec -it nginx -- env kubectl delete po nginx
C. kubectl apply nginx --image=nginx --restart=Always --dry-run -o yaml > nginx-pod.yml // edit the yml to below file and create vim nginx-pod.yml apiVersion: v1 kind: Pod metadata: labels: run: nginx name: nginx spec: containers: - image: nginx name: nginx envFrom: - configMapRef: name: keyvalcfgmap restartPolicy: Always kubectl apply -f nginx-pod.yml // verify kubectl exec -it nginx -- env kubectl rm po nginx
D. first run this command to save the pod yaml kubectl run nginx --image=nginx --restart=Always --dry-run -o yaml > nginx-pod.yml // edit the yml to below file and create vim nginx-pod.yml apiVersion: v1 name: nginx envFrom: - configMapRef: name: keyvalcfgmap restartPolicy: Always kubectl apply -f nginx-pod.yml // verify kubectl exec -it nginx -- env kubectl delete po nginx
Answer: B
For a full set of 170+ questions. Go to
https://skillcertpro.com/product/certified-kubernetes-administrator-cka-exam-questions/
SkillCertPro offers detailed explanations to each question which helps to understand the concepts better.
It is recommended to score above 85% in SkillCertPro exams before attempting a real exam.
SkillCertPro updates exam questions every 2 weeks.
You will get life time access and life time free updates
SkillCertPro assures 100% pass guarantee in first attempt.
Question 6:
Create a Cronjob with busybox image that prints date and hello
from kubernetes cluster message for every minute
A. apiVersion: batch/v1beta1 kind: CronJob metadata: name: date-job spec: schedule: "*/1 * * * *" jobTemplate: spec: template: spec: containers: - name: hello image: busybox args: - /bin/sh - -c - date; echo Hello from the Kubernetes cluster restartPolicy: OnFailure kubectl apply -f date-job.yaml kubectl get cj date-job -o yaml
B. apiVersion: batch/v1beta1 kind: CronJob metadata: name: date-job spec: schedule: "*/1 * * * *" jobTemplate: spec: template: - /bin/sh - -c - date; echo Hello from the Kubernetes cluster restartPolicy: OnFailure kubectl apply -f date-job.yaml //Verify kubectl get cj date-job -o yaml
C. apiVersion: batch/v1beta1 kind: CronJob metadata: name: date-job spec: schedule: "* * * * */1" jobTemplate: spec: template: spec: containers: - name: hello image: busybox args: - /bin/sh - -c - date; echo Hello from the Kubernetes cluster restartPolicy: OnFailure kubectl apply -f date-job.yaml kubectl get cj date-job -o yaml
D. apiVersion: batch/v1beta1 kind: CronJob metadata: name: date-job spec: schedule: "* * * * *" jobTemplate: spec: template: spec: containers: - name: hello image: busybox args: - /bin/sh - -c - date; echo Hello from the Kubernetes cluster restartPolicy: OnFailure kubectl apply -f date-job.yaml kubectl get cj date-job -o yaml
Answer: A
Question 7:
Create an nginx pod and list the pod with different levels of verbosity
A. create a pod kubectl run nginx --image=nginx --restart=Never --port=80 // List the pod with different verbosity kubectl get po nginx --verbose=7,8,9
B. create a pod kubectl run nginx --image=nginx --restart=Never --port=80 // List the pod with different verbosity kubectl get po nginx --verb=7 kubectl get po nginx --verb=6 kubectl get po nginx --verb=9
C. create a pod kubectl run nginx --image=nginx --restart=Never --port=80 // List the pod with different verbosity kubectl get po nginx --verbose
D. create a pod kubectl run nginx --image=nginx --restart=Never --port=80 // List the pod with different verbosity kubectl get po nginx --v=7 kubectl get po nginx --v=8 kubectl get po nginx --v=9
Answer: D
Question 8:
Check the history of deployment
A. kubectl roll history deployment webapp
B. kubectl history rollout deployment webapp
C. kubectl history deployment webapp
D. kubectl rollout history deployment webapp
Answer: D
Question 9:
List all service account and create a service account called “admin”
A. kubectl get sa kubectl get sa --all-namespaces kubectl create sa admin //Verify kubectl get sa admin -o yaml
B. kubectl get sa kubectl get sa --all-namespaces kubectl delete sa admin //Verify kubectl get sa admin -o yaml
C. kubectl get sa kubectl get sa --all-namespaces //Verify kubectl get sa admin -o yaml
D. kubectl list sa kubectl list sa --all-namespaces kubectl create sa admin //Verify kubectl get sa admin -o yaml
Answer: A
Question 10:
Get the pods with labels env=dev and env=prod and output the labels as well
A. kubectl ls pods -l 'env in (dev,prod)' --show-labels
B. kubectl get pods -l 'env in (dev,prod)' --show-labels
C. kubectl get pods -l 'env between (dev,prod)' --show-labels
D. kubectl pods -l 'env in (dev,prod)' --show-labels
Answer: B
For a full set of 170+ questions. Go to
https://skillcertpro.com/product/certified-kubernetes-administrator-cka-exam-questions/
SkillCertPro offers detailed explanations to each question which helps to understand the concepts better.
It is recommended to score above 85% in SkillCertPro exams before attempting a real exam.
SkillCertPro updates exam questions every 2 weeks.
You will get life time access and life time free updates
SkillCertPro assures 100% pass guarantee in first attempt.