Free CKA Exam Braindumps

Pass your Certified Kubernetes Administrator (CKA) Program exam with these free Questions and Answers

Page 4 of 14
QUESTION 11

Get list of all pods in all namespaces and write it to file “/opt/pods-list.yaml”
Solution:
kubectl get po –all-namespaces > /opt/pods-list.yaml

Does this meet the goal?

  1. A. Yes
  2. B. No

Correct Answer: A

QUESTION 12

Create a pod named kucc8 with a single app container for each of the following images running inside (there may be between 1 and 4 images specified): nginx + redis + memcached.
Solution:

solution
F:WorkData Entry WorkData Entry20200827CKA5 B.JPG
CKA dumps exhibit
F:WorkData Entry WorkData Entry20200827CKA5 C.JPG
CKA dumps exhibit
F:WorkData Entry WorkData Entry20200827CKA5 D.JPG
CKA dumps exhibit

Does this meet the goal?

  1. A. Yes
  2. B. No

Correct Answer: A

QUESTION 13

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?

  1. A. Yes
  2. B. No

Correct Answer: A

QUESTION 14

Score: 4%
CKA dumps exhibit
Task
Create a pod named kucc8 with a single app container for each of the following images running inside (there may be between 1 and 4 images specified): nginx + redis + memcached .
Solution:
Solution:
kubectl run kucc8 --image=nginx --dry-run -o yaml > kucc8.yaml
# vi kucc8.yaml apiVersion: v1 kind: Pod metadata:
creationTimestamp: null name: kucc8
spec: containers:
- image: nginx name: nginx
- image: redis name: redis
- image: memcached
name: memcached
- image: consul name: consul
#
kubectl create -f kucc8.yaml
#12.07

Does this meet the goal?

  1. A. Yes
  2. B. No

Correct Answer: A

QUESTION 15

List all the pods sorted by created timestamp
Solution:
kubect1 get pods--sort-by=.metadata.creationTimestamp

Does this meet the goal?

  1. A. Yes
  2. B. No

Correct Answer: A

Page 4 of 14

Post your Comments and Discuss Linux-Foundation CKA exam with other Community members: