aiotestking uk

CKA Exam Questions - Online Test


CKA Premium VCE File

Learn More 100% Pass Guarantee - Dumps Verified - Instant Download
150 Lectures, 20 Hours

Best Quality of CKA free practice questions materials and actual test for Linux-Foundation certification for IT specialist, Real Success Guaranteed with Updated CKA pdf dumps vce Materials. 100% PASS Certified Kubernetes Administrator (CKA) Program exam Today!

Online Linux-Foundation CKA free dumps demo Below:

NEW QUESTION 1
Create a busybox pod that runs the command ??env?? and save the output to ??envpod?? file

  • A. Mastered
  • B. Not Mastered

Answer: A

Explanation:
kubectl run busybox --image=busybox --restart=Never ?C-rm -it -- env > envpod.yaml

NEW QUESTION 2
Create a pod with image nginx called nginx and allow traffic on port 80

  • A. Mastered
  • B. Not Mastered

Answer: A

Explanation:
kubectlrun nginx --image=nginx --restart=Never --port=80

NEW QUESTION 3
Perform the following tasks:
CKA dumps exhibit Add an init container tohungry-bear(which has beendefined in spec file
/opt/KUCC00108/pod-spec-KUCC00108.yaml)
CKA dumps exhibit The init container should createan empty file named/workdir/calm.txt
CKA dumps exhibit If/workdir/calm.txtis notdetected, the pod should exit
CKA dumps exhibit 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
CKA dumps exhibit
F:\Work\Data Entry Work\Data Entry\20200827\CKA\4 C.JPG
CKA dumps exhibit
F:\Work\Data Entry Work\Data Entry\20200827\CKA\4 D.JPG
CKA dumps exhibit

NEW QUESTION 4
Get list of all the pods showing name and namespace with a jsonpath expression.

  • A. Mastered
  • B. Not Mastered

Answer: A

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

NEW QUESTION 5
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
CKA dumps exhibit Create a Persistent Volume namedapp-data, with access modeReadWriteMany, storage classname
shared,2Giof storage capacity and the host path/srv/app-data.
CKA dumps exhibit
* 2. Save the file and create the persistent volume. Image for post
CKA dumps exhibit
* 3. View the persistent volume.
CKA dumps exhibit
CKA dumps exhibit 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
CKA dumps exhibit 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
CKA dumps exhibit
* 4. Let??s see what has changed in the pv we had initially created.
Image for post
CKA dumps exhibit
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 6
Schedule a pod as follows:
CKA dumps exhibit Name: nginx-kusc00101
CKA dumps exhibit Image: nginx
CKA dumps exhibit 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
CKA dumps exhibit
F:\Work\Data Entry Work\Data Entry\20200827\CKA\6 C.JPG
CKA dumps exhibit
F:\Work\Data Entry Work\Data Entry\20200827\CKA\6 D.JPG
CKA dumps exhibit

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

  • A. Mastered
  • B. Not Mastered

Answer: A

Explanation:

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

NEW QUESTION 8
A Kubernetes worker node, namedwk8s-node-0is in stateNotReady.Investigate why this is the case, andperform any appropriate steps tobring the node to aReadystate,ensuring that any changes are madepermanent.
You cansshto the failednode using:
[student@node-1] $ | sshWk8s-node-0
You can assume elevatedprivileges on the node with thefollowing command:
[student@w8ks-node-0] $ |sudo ?Ci

  • A. Mastered
  • B. Not Mastered

Answer: A

Explanation:
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\20 C.JPG
CKA dumps exhibit
F:\Work\Data Entry Work\Data Entry\20200827\CKA\20 D.JPG
CKA dumps exhibit
F:\Work\Data Entry Work\Data Entry\20200827\CKA\20 E.JPG
CKA dumps exhibit

NEW QUESTION 9
List all the pods sorted by created timestamp

  • A. Mastered
  • B. Not Mastered

Answer: A

Explanation:
kubect1 get pods--sort-by=.metadata.creationTimestamp

NEW QUESTION 10
Create a snapshot of theetcdinstance running athttps://127.0.0.1:2379, saving thesnapshot to the file path /srv/data/etcd-snapshot.db.
The following TLScertificates/key are suppliedfor connecting to the server withetcdctl:
CKA dumps exhibit CA certificate:/opt/KUCM00302/ca.crt
CKA dumps exhibit Client certificate:/opt/KUCM00302/etcd-client.crt
CKA dumps exhibit 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
CKA dumps exhibit

NEW QUESTION 11
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 12
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 13
List the nginx pod with custom columns POD_NAME and POD_STATUS

  • A. Mastered
  • B. Not Mastered

Answer: A

Explanation:
kubectl get po -o=custom-columns="POD_NAME:.metadata.name, POD_STATUS:.status.containerStatuses[].state"

NEW QUESTION 14
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
CKA dumps exhibit
F:\Work\Data Entry Work\Data Entry\20200827\CKA\21 D.JPG
CKA dumps exhibit
F:\Work\Data Entry Work\Data Entry\20200827\CKA\21 E.JPG
CKA dumps exhibit
F:\Work\Data Entry Work\Data Entry\20200827\CKA\21 F.JPG
CKA dumps exhibit
F:\Work\Data Entry Work\Data Entry\20200827\CKA\21 G.JPG
CKA dumps exhibit

NEW QUESTION 15
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 16
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
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 17
Create an nginx pod and list the pod with different levels of verbosity

  • A. Mastered
  • B. Not Mastered

Answer: A

Explanation:
// 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

NEW QUESTION 18
Create a pod with environment variables as var1=value1.Check the environment variable in pod

  • A. Mastered
  • B. Not Mastered

Answer: A

Explanation:
kubectl run nginx --image=nginx --restart=Never --env=var1=value1
# then
kubectl exec -it nginx -- env
# or
kubectl exec -it nginx -- sh -c 'echo $var1'
# or
kubectl describe po nginx | grep value1

NEW QUESTION 19
List the nginx pod with custom columns POD_NAME and POD_STATUS

  • A. Mastered
  • B. Not Mastered

Answer: A

Explanation:
kubectl get po -o=custom-columns="POD_NAME:.metadata.name, POD_STATUS:.status.containerStatuses[].state"

NEW QUESTION 20
......

P.S. Easily pass CKA Exam with 48 Q&As Thedumpscentre.com Dumps & pdf Version, Welcome to Download the Newest Thedumpscentre.com CKA Dumps: https://www.thedumpscentre.com/CKA-dumps/ (48 New Questions)