0% found this document useful (0 votes)
428 views23 pages

Cka 6

Exambible offers premium CKA exam dumps with a guarantee of a 100% pass rate and 24/7 support. The document includes various Kubernetes tasks and questions designed to help candidates prepare for the Certified Kubernetes Administrator exam. Each question is accompanied by an answer and explanation, focusing on practical Kubernetes operations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
428 views23 pages

Cka 6

Exambible offers premium CKA exam dumps with a guarantee of a 100% pass rate and 24/7 support. The document includes various Kubernetes tasks and questions designed to help candidates prepare for the Certified Kubernetes Administrator exam. Each question is accompanied by an answer and explanation, focusing on practical Kubernetes operations.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 23

We recommend you to try the PREMIUM CKA Dumps From Exambible

https://www.exambible.com/CKA-exam/ (60 Q&As)

Linux-Foundation
Exam Questions CKA
Certified Kubernetes Administrator (CKA) Program

Your Partner of IT Exam visit - https://www.exambible.com


We recommend you to try the PREMIUM CKA Dumps From Exambible
https://www.exambible.com/CKA-exam/ (60 Q&As)

About Exambible

Your Partner of IT Exam

Found in 1998

Exambible is a company specialized on providing high quality IT exam practice study materials, especially Cisco CCNA, CCDA,
CCNP, CCIE, Checkpoint CCSE, CompTIA A+, Network+ certification practice exams and so on. We guarantee that the
candidates will not only pass any IT exam at the first attempt but also get profound understanding about the certificates they have
got. There are so many alike companies in this industry, however, Exambible has its unique advantages that other companies could
not achieve.

Our Advances

* 99.9% Uptime
All examinations will be up to date.
* 24/7 Quality Support
We will provide service round the clock.
* 100% Pass Rate
Our guarantee that you will pass the exam.
* Unique Gurantee
If you do not pass the exam at the first time, we will not only arrange FULL REFUND for you, but also provide you another
exam of your claim, ABSOLUTELY FREE!

Your Partner of IT Exam visit - https://www.exambible.com


We recommend you to try the PREMIUM CKA Dumps From Exambible
https://www.exambible.com/CKA-exam/ (60 Q&As)

NEW QUESTION 1
Create a pod that echo ??hello world?? and then exists. Have the pod deleted automatically when it??s completed

A. Mastered
B. Not Mastered

Answer: A

Explanation:
kubectl run busybox --image=busybox -it --rm --restart=Never -
/bin/sh -c 'echo hello world'
kubectl get po # You shouldn't see pod with the name "busybox"

NEW QUESTION 2
Monitor the logs of pod foo and:
Extract log lines correspondingto error unable-to-access-website
Write them to/opt/KULM00201/foo

A. Mastered
B. Not Mastered

Answer: A

Explanation:

solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\1 B.JPG

F:\Work\Data Entry Work\Data Entry\20200827\CKA\1 C.JPG

Your Partner of IT Exam visit - https://www.exambible.com


We recommend you to try the PREMIUM CKA Dumps From Exambible
https://www.exambible.com/CKA-exam/ (60 Q&As)

NEW QUESTION 3
Create a pod as follows:
Name:mongo
Using Image:mongo
In anew Kubernetes namespacenamed:my-website

A. Mastered
B. Not Mastered

Answer: A

Explanation:
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\9 B.JPG

NEW QUESTION 4
Create a deployment as follows:
Name:nginx-app
Using containernginxwithversion 1.11.10-alpine

Your Partner of IT Exam visit - https://www.exambible.com


We recommend you to try the PREMIUM CKA Dumps From Exambible
https://www.exambible.com/CKA-exam/ (60 Q&As)

The deployment should contain3replicas


Next, deploy the application with newversion1.11.13-alpine, byperforming a rolling update.
Finally, rollback that update to theprevious version1.11.10-alpine.

A. Mastered
B. Not Mastered

Answer: A

Explanation:
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\7 B.JPG

F:\Work\Data Entry Work\Data Entry\20200827\CKA\7 C.JPG

F:\Work\Data Entry Work\Data Entry\20200827\CKA\7 D.JPG

Your Partner of IT Exam visit - https://www.exambible.com


We recommend you to try the PREMIUM CKA Dumps From Exambible
https://www.exambible.com/CKA-exam/ (60 Q&As)

NEW QUESTION 5
List ??nginx-dev?? and ??nginx-prod?? pod and delete those pods

A. Mastered
B. Not Mastered

Answer: A

Explanation:
kubect1 get pods -o wide
kubectl delete po ??nginx-dev??kubectl delete po ??nginx-prod??

NEW QUESTION 6
Set the node named ek8s-node-1as unavailable and reschedule all the pods running on it.

A. Mastered
B. Not Mastered

Answer: A

Explanation:

solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\19 B.JPG

Your Partner of IT Exam visit - https://www.exambible.com


We recommend you to try the PREMIUM CKA Dumps From Exambible
https://www.exambible.com/CKA-exam/ (60 Q&As)

NEW QUESTION 7
Create a persistent volume with nameapp-data, of capacity2Giandaccess modeReadWriteMany. Thetype of volume ishostPathand itslocation is/srv/app-data.

A. Mastered
B. Not Mastered

Answer: A

Explanation:
solution
Persistent Volume
A persistent volume is a piece of storage in aKubernetes cluster. PersistentVolumes are a cluster-level resource like nodes, which don??t belong to any
namespace. It is provisioned by the administrator and has a particular file size. This way, a developer deploying their app on Kubernetes need not knowthe
underlying infrastructure. When the developer needs a certain amount of persistent storage for their application, the system administrator configures the cluster so
that they consume the PersistentVolume provisioned in an easy way.
Creating PersistentVolume
kind: PersistentVolumeapiVersion: v1metadata:name:app-dataspec:capacity: # defines the capacity of PV we are creatingstorage:2Gi#the amount of storage we
are tying to claimaccessModes: # defines the rights of the volumewe are creating-ReadWriteManyhostPath:path: "/srv/app-data" # path to which we are creating
the volume
Challenge
Create a Persistent Volume namedapp-data, with access modeReadWriteMany, storage classname
shared,2Giof storage capacity and the host path/srv/app-data.

Your Partner of IT Exam visit - https://www.exambible.com


We recommend you to try the PREMIUM CKA Dumps From Exambible
https://www.exambible.com/CKA-exam/ (60 Q&As)

* 2. Save the file and create the persistent volume. Image for post

* 3. View the persistent volume.

Our persistent volume status is available meaning it is available and it has not been mounted yet. This status willchange when we mount the persistentVolume
to a persistentVolumeClaim.
PersistentVolumeClaim
In a real ecosystem, a system admin will create the PersistentVolume then a developer will create a PersistentVolumeClaim which will be referenced in a pod. A
PersistentVolumeClaim is created by specifying the minimum size and the access mode they require from the persistentVolume.
Challenge
Create a Persistent Volume Claim that requests the Persistent Volume we had created above. The claim should request 2Gi. Ensurethat the Persistent Volume
Claim has the same storageClassName as the persistentVolume you had previously created.
kind: PersistentVolumeapiVersion: v1metadata:name:app-data spec:
accessModes:-ReadWriteManyresources:
requests:storage:2Gi storageClassName:shared
* 2. Save and create the pvc
njerry191@cloudshell:~(extreme-clone-2654111)$ kubect1 create -f app-data.yaml persistentvolumeclaim/app-data created
* 3. View the pvc Image for post

* 4. Let??s see what has changed in the pv we had initially created.


Image for post

Our status has now changed fromavailabletobound.


* 5. Create a new pod named myapp with image nginx that will be used to Mount the Persistent Volume Claim with the path /var/app/config.
Mounting a Claim
apiVersion: v1kind: Podmetadata:creationTimestamp: nullname: app-dataspec:volumes:- name:congigpvcpersistenVolumeClaim:claimName: app-datacontainers:-
image: nginxname: appvolumeMounts:- mountPath: "/srv/app-data"name: configpvc

NEW QUESTION 8
List all persistent volumes sorted bycapacity, saving the fullkubectloutput to
/opt/KUCC00102/volume_list. Usekubectl 's own functionality forsorting the output, and do not manipulate it any further.

A. Mastered
B. Not Mastered

Your Partner of IT Exam visit - https://www.exambible.com


We recommend you to try the PREMIUM CKA Dumps From Exambible
https://www.exambible.com/CKA-exam/ (60 Q&As)

Answer: A

Explanation:
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\2 C.JPG

NEW QUESTION 9
Create a pod as follows:
Name:non-persistent-redis
container Image:redis
Volume with name:cache-control
Mount path:/data/redis
The pod should launch in thestagingnamespace and the volumemust notbe persistent.

A. Mastered
B. Not Mastered

Answer: A

Explanation:
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\13 B.JPG

Your Partner of IT Exam visit - https://www.exambible.com


We recommend you to try the PREMIUM CKA Dumps From Exambible
https://www.exambible.com/CKA-exam/ (60 Q&As)

F:\Work\Data Entry Work\Data Entry\20200827\CKA\13 C.JPG

F:\Work\Data Entry Work\Data Entry\20200827\CKA\13 D.JPG

Your Partner of IT Exam visit - https://www.exambible.com


We recommend you to try the PREMIUM CKA Dumps From Exambible
https://www.exambible.com/CKA-exam/ (60 Q&As)

NEW QUESTION 10
Create a Kubernetes secret asfollows:
Name: super-secret
password: bob
Create a pod namedpod-secrets-via-file, using theredisImage, which mounts a secret namedsuper-secretat
/secrets.
Create a second pod namedpod-secrets-via-env, using theredisImage, which exportspasswordas
CONFIDENTIAL

A. Mastered
B. Not Mastered

Answer: A

Explanation:
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\12 B.JPG

F:\Work\Data Entry Work\Data Entry\20200827\CKA\12 C.JPG

Your Partner of IT Exam visit - https://www.exambible.com


We recommend you to try the PREMIUM CKA Dumps From Exambible
https://www.exambible.com/CKA-exam/ (60 Q&As)

F:\Work\Data Entry Work\Data Entry\20200827\CKA\12 D.JPG

NEW QUESTION 10
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.

A. Mastered
B. Not Mastered

Answer: A

Explanation:
kubectl run --generator=run-pod/v1 --image=nginx -- labels=env=prod nginx-prod --dry-run -o yaml > nginx-prodpod.yaml Now, edit nginx-prod-pod.yaml file and
remove entries like ??creationTimestamp: null?? ??dnsPolicy: ClusterFirst??
vim nginx-prod-pod.yaml apiVersion: v1
kind: Pod metadata: labels: env: prod
name: nginx-prod spec:
containers:
- image: nginx name: nginx-prod
restartPolicy: Always
# kubectl create -f nginx-prod-pod.yaml
kubectl run --generator=run-pod/v1 --image=nginx -- labels=env=dev nginx-dev --dry-run -o yaml > nginx-dev-pod.yaml apiVersion: v1
kind: Pod metadata: labels: env: dev

Your Partner of IT Exam visit - https://www.exambible.com


We recommend you to try the PREMIUM CKA Dumps From Exambible
https://www.exambible.com/CKA-exam/ (60 Q&As)

name: nginx-dev
spec: containers:
- image: nginx name: nginx-dev
restartPolicy: Always
# kubectl create -f nginx-prod-dev.yaml Verify :
kubectl get po --show-labels kubectl get po -l env=prod kubectl get po -l env=dev

NEW QUESTION 11
Configure the kubelet systemd-managed service, on the nodelabelled withname=wk8s-node-1, tolaunch a pod containing a singlecontainer of
Imagehttpdnamedwebtoolautomatically. Any spec filesrequired should be placed in the/etc/kubernetes/manifestsdirectoryon the node.
You canssh to theappropriate node using:
[student@node-1] $ sshwk8s-node-1
You can assume elevatedprivileges on the node with thefollowing command:
[student@wk8s-node-1] $ |sudo ?Ci

A. Mastered
B. Not Mastered

Answer: A

Explanation:
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\21 C.JPG

F:\Work\Data Entry Work\Data Entry\20200827\CKA\21 D.JPG

Your Partner of IT Exam visit - https://www.exambible.com


We recommend you to try the PREMIUM CKA Dumps From Exambible
https://www.exambible.com/CKA-exam/ (60 Q&As)

F:\Work\Data Entry Work\Data Entry\20200827\CKA\21 E.JPG

F:\Work\Data Entry Work\Data Entry\20200827\CKA\21 F.JPG

Your Partner of IT Exam visit - https://www.exambible.com


We recommend you to try the PREMIUM CKA Dumps From Exambible
https://www.exambible.com/CKA-exam/ (60 Q&As)

F:\Work\Data Entry Work\Data Entry\20200827\CKA\21 G.JPG

NEW QUESTION 13
From the pod labelname=cpu-utilizer, find podsrunning high CPU workloads and
write the name of the pod consumingmost CPU to thefile/opt/KUTR00102/KUTR00102.txt(which already exists).

A. Mastered
B. Not Mastered

Answer: A

Explanation:
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\16 B.JPG

Your Partner of IT Exam visit - https://www.exambible.com


We recommend you to try the PREMIUM CKA Dumps From Exambible
https://www.exambible.com/CKA-exam/ (60 Q&As)

F:\Work\Data Entry Work\Data Entry\20200827\CKA\16 C.JPG

NEW QUESTION 15
Perform the following tasks:
Add an init container tohungry-bear(which has beendefined in spec file
/opt/KUCC00108/pod-spec-KUCC00108.yaml)
The init container should createan empty file named/workdir/calm.txt
If/workdir/calm.txtis notdetected, the pod should exit
Once the spec file has beenupdatedwith the init containerdefinition, the pod should becreated

A. Mastered
B. Not Mastered

Answer: A

Explanation:
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\4 B.JPG

Your Partner of IT Exam visit - https://www.exambible.com


We recommend you to try the PREMIUM CKA Dumps From Exambible
https://www.exambible.com/CKA-exam/ (60 Q&As)

F:\Work\Data Entry Work\Data Entry\20200827\CKA\4 C.JPG

F:\Work\Data Entry Work\Data Entry\20200827\CKA\4 D.JPG

Your Partner of IT Exam visit - https://www.exambible.com


We recommend you to try the PREMIUM CKA Dumps From Exambible
https://www.exambible.com/CKA-exam/ (60 Q&As)

NEW QUESTION 19
Check the Image version of nginx-dev pod using jsonpath

A. Mastered
B. Not Mastered

Answer: A

Explanation:
kubect1 get po nginx-dev -o jsonpath='{.spec.containers[].image}{"\n"}'

NEW QUESTION 22
Create a busybox pod and add ??sleep 3600?? command

A. Mastered
B. Not Mastered

Answer: A

Explanation:
kubectl run busybox --image=busybox --restart=Never -- /bin/sh -c "sleep 3600"

NEW QUESTION 26
Get IP address of the pod ?C ??nginx-dev??

A. Mastered
B. Not Mastered

Answer: A

Explanation:
Kubect1 get po -o wide Using JsonPath
kubect1 get pods -o=jsonpath='{range items[*]}{.metadata.name}{"\t"}{.status.podIP}{"\n"}{end}'

NEW QUESTION 29
List all the pods showing name and namespace with a json path expression

A. Mastered
B. Not Mastered

Answer: A

Explanation:
kubectl get pods -o=jsonpath="{.items[*]['metadata.name', 'metadata.namespace']}"

NEW QUESTION 34
Create a snapshot of theetcdinstance running athttps://127.0.0.1:2379, saving thesnapshot to the file path /srv/data/etcd-snapshot.db.

Your Partner of IT Exam visit - https://www.exambible.com


We recommend you to try the PREMIUM CKA Dumps From Exambible
https://www.exambible.com/CKA-exam/ (60 Q&As)

The following TLScertificates/key are suppliedfor connecting to the server withetcdctl:


CA certificate:/opt/KUCM00302/ca.crt
Client certificate:/opt/KUCM00302/etcd-client.crt
Client key:Topt/KUCM00302/etcd-client.key

A. Mastered
B. Not Mastered

Answer: A

Explanation:
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\18 C.JPG

NEW QUESTION 37
Schedule a pod as follows:
Name: nginx-kusc00101
Image: nginx
Node selector: disk=ssd

A. Mastered
B. Not Mastered

Answer: A

Explanation:
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\6 B.JPG

Your Partner of IT Exam visit - https://www.exambible.com


We recommend you to try the PREMIUM CKA Dumps From Exambible
https://www.exambible.com/CKA-exam/ (60 Q&As)

F:\Work\Data Entry Work\Data Entry\20200827\CKA\6 C.JPG

F:\Work\Data Entry Work\Data Entry\20200827\CKA\6 D.JPG

Your Partner of IT Exam visit - https://www.exambible.com


We recommend you to try the PREMIUM CKA Dumps From Exambible
https://www.exambible.com/CKA-exam/ (60 Q&As)

NEW QUESTION 40
Check to see how many worker nodes are ready (not including nodes taintedNoSchedule) and write the number to/opt/KUCC00104/kucc00104.txt.

A. Mastered
B. Not Mastered

Answer: A

Explanation:
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\15 B.JPG

F:\Work\Data Entry Work\Data Entry\20200827\CKA\15 C.JPG

Your Partner of IT Exam visit - https://www.exambible.com


We recommend you to try the PREMIUM CKA Dumps From Exambible
https://www.exambible.com/CKA-exam/ (60 Q&As)

NEW QUESTION 45
......

Your Partner of IT Exam visit - https://www.exambible.com


We recommend you to try the PREMIUM CKA Dumps From Exambible
https://www.exambible.com/CKA-exam/ (60 Q&As)

Relate Links

100% Pass Your CKA Exam with Exambible Prep Materials

https://www.exambible.com/CKA-exam/

Contact us

We are proud of our high-quality customer service, which serves you around the clock 24/7.

Viste - https://www.exambible.com/

Your Partner of IT Exam visit - https://www.exambible.com


Powered by TCPDF (www.tcpdf.org)

You might also like