Uploaded by xet50030

Linux Foundation-CKA

advertisement
Linux Foundation
CKA
Certified Kubernetes Administrator (CKA)
Program
Web: www.exactinside.com
Version: Demo
Email: support@exactinside.com
[ Total Questions: 10]
IMPORTANT NOTICE
Feedback
We have developed quality product and state-of-art service to ensure our customers interest. If you have any
suggestions, please feel free to contact us at feedback@exactinside.com
Support
If you have any questions about our product, please provide the following items:
exam code
screenshot of the question
login id/email
please contact us at support@exactinside.com and our technical experts will provide support within 24 hours.
Copyright
The product of each order has its own encryption code, so you should use it independently. Any unauthorized
changes will inflict legal punishment. We reserve the right of final explanation for this statement.
Exact Questions
Linux Foundation - CKA
Question #:1
Create a deployment as follows:
Name:nginx-app
Using containernginxwithversion 1.11.10-alpine
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.
See the solution below.
Explanation
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\7 B.JPG
Find Everything , Exactly in your Exam
1 of 16
Exact Questions
Linux Foundation - CKA
F:\Work\Data Entry Work\Data Entry\20200827\CKA\7 C.JPG
Find Everything , Exactly in your Exam
2 of 16
Exact Questions
Linux Foundation - CKA
F:\Work\Data Entry Work\Data Entry\20200827\CKA\7 D.JPG
Find Everything , Exactly in your Exam
3 of 16
Exact Questions
Linux Foundation - CKA
Question #:2
Check the Image version of nginx-dev pod using jsonpath
See the solution below.
Explanation
kubect1 get po nginx-dev -o
jsonpath='{.spec.containers[].image}{"\n"}'
Question #:3
Find Everything , Exactly in your Exam
4 of 16
Exact Questions
Linux Foundation - CKA
List all the pods sorted by name
See the solution below.
Explanation
kubect1 get pods --sort-by=.metadata.name
Question #:4
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 –i
See the solution below.
Explanation
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\20 C.JPG
Find Everything , Exactly in your Exam
5 of 16
Exact Questions
Linux Foundation - CKA
F:\Work\Data Entry Work\Data Entry\20200827\CKA\20 D.JPG
Find Everything , Exactly in your Exam
6 of 16
Exact Questions
Linux Foundation - CKA
F:\Work\Data Entry Work\Data Entry\20200827\CKA\20 E.JPG
Find Everything , Exactly in your Exam
7 of 16
Exact Questions
Linux Foundation - CKA
Question #:5
Given a partially-functioningKubernetes cluster, identifysymptoms of failure on the cluster.
Determine the node, the failingservice, and take actions to bring upthe failed service and restore thehealth of
the cluster. Ensure that anychanges are made permanently.
You cansshto the relevant Inodes (bk8s-master-0orbk8s-node-0) using:
[student@node-1] $ ssh<nodename>
You can assume elevatedprivileges on any node in thecluster with the followingcommand:
[student@nodename] $ | sudo –i
See the solutionbelow.
Find Everything , Exactly in your Exam
8 of 16
Exact Questions
Linux Foundation - CKA
Explanation
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\23 C.JPG
F:\Work\Data Entry Work\Data Entry\20200827\CKA\23 D.JPG
Find Everything , Exactly in your Exam
9 of 16
Exact Questions
Linux Foundation - CKA
F:\Work\Data Entry Work\Data Entry\20200827\CKA\23 E.JPG
Find Everything , Exactly in your Exam
10 of 16
Exact Questions
Linux Foundation - CKA
Question #:6
List pod logs named “frontend” and search for the pattern “started” and write it to a file “/opt/error-logs”
See the solution below.
Explanation
Kubectl logs frontend | grep -i “started” > /opt/error-logs
Question #:7
Create a pod with image nginx called nginx and allow traffic on port 80
Find Everything , Exactly in your Exam
11 of 16
Exact Questions
Linux Foundation - CKA
See the solution below.
Explanation
kubectlrun nginx --image=nginx --restart=Never --port=80
Question #:8
Create a busybox pod and add “sleep 3600” command
See the solution below.
Explanation
kubectl run busybox --image=busybox --restart=Never -- /bin/sh -c
"sleep 3600"
Question #:9
Ensure a single instance of podnginxis running on each node of theKubernetes cluster wherenginxalso
represents the Image name whichhas to be used. Do not override anytaints currently in place.
UseDaemonSetto complete thistask and useds-kusc00201asDaemonSet name.
See the solution below.
Explanation
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\3 B.JPG
Find Everything , Exactly in your Exam
12 of 16
Exact Questions
Linux Foundation - CKA
F:\Work\Data Entry Work\Data Entry\20200827\CKA\3 C.JPG
Find Everything , Exactly in your Exam
13 of 16
Exact Questions
Linux Foundation - CKA
F:\Work\Data Entry Work\Data Entry\20200827\CKA\3 D.JPG
Find Everything , Exactly in your Exam
14 of 16
Exact Questions
Linux Foundation - CKA
F:\Work\Data Entry Work\Data Entry\20200827\CKA\3 E.JPG
Find Everything , Exactly in your Exam
15 of 16
Exact Questions
Linux Foundation - CKA
Question #:10
List “nginx-dev” and “nginx-prod” pod and delete those pods
See the solution below.
Explanation
kubect1 get pods -o wide
kubectl delete po “nginx-dev”kubectl delete po “nginx-prod”
Find Everything , Exactly in your Exam
16 of 16
About exactinside.com
exactinside.com was founded in 2007. We provide latest & high quality IT / Business Certification Training Exam
Questions, Study Guides, Practice Tests.
We help you pass any IT / Business Certification Exams with 100% Pass Guaranteed or Full Refund. Especially
Cisco, CompTIA, Citrix, EMC, HP, Oracle, VMware, Juniper, Check Point, LPI, Nortel, EXIN and so on.
View list of all certification exams: All vendors
We prepare state-of-the art practice tests for certification exams. You can reach us at any of the email addresses listed
below.
Sales: sales@exactinside.com
Feedback: feedback@exactinside.com
Support: support@exactinside.com
Any problems about IT certification or our products, You can write us back and we will get back to you within 24
hours.
Download