{"id":986,"date":"2023-04-17T09:36:56","date_gmt":"2023-04-17T09:36:56","guid":{"rendered":"https:\/\/blog.topexamcollection.com\/?p=986"},"modified":"2023-04-17T09:36:56","modified_gmt":"2023-04-17T09:36:56","slug":"enhance-your-career-with-available-preparation-guide-for-cka-exam-q18-q37","status":"publish","type":"post","link":"https:\/\/blog.topexamcollection.com\/ko\/2023\/04\/enhance-your-career-with-available-preparation-guide-for-cka-exam-q18-q37\/","title":{"rendered":"Enhance Your Career With Available Preparation Guide for CKA Exam [Q18-Q37]"},"content":{"rendered":"\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-left kksr-valign-top\"\n    data-payload='{&quot;align&quot;:&quot;left&quot;,&quot;id&quot;:&quot;986&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;top&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;0&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;0&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;Rate this post&quot;,&quot;legend&quot;:&quot;0\\\/5 - (0 votes)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;Enhance Your Career With Available Preparation Guide for CKA Exam [Q18-Q37]&quot;,&quot;width&quot;:&quot;0&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 0px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            <span class=\"kksr-muted\">Rate this post<\/span>\n    <\/div>\n    <\/div>\n<p><span style=\"color: red;font-size: 18px\"><strong>Enhance Your Career With Available Preparation Guide for CKA Exam<\/strong><\/span><\/p>\n<p><span style=\"color: red\"><strong>Get Special Discount Offer of CKA Certification Exam Sample Questions and Answers<\/strong><\/span><\/p>\n<div id=\"watu_quiz\" class=\"quiz-area single-page-quiz\">\n<form action=\"\" method=\"post\" class=\"quiz-form \" id=\"quiz-452\" >\n<div class='watu-question' id='question-1'><div class='question-content'><p><strong>NEW QUESTION 18<\/strong><br \/>Create the nginx pod with version 1.17.4 and expose it on port 80<\/p>\n<\/div><input type='hidden' name='question_id[]' value='8765' \/><textarea name='answer-8765[]' rows='5' cols='40' id='textarea_q_8765' class='watu-textarea watu-textarea-1'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>kubectl run nginx &#8211;image=nginx:1.17.4 &#8211;restart=Never &#8212; port=80<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(1,this)' id='btn-1' value='See Answer'  \/><input type='hidden' id='questionType1' value='textarea' class=''><\/div><div class='watu-question' id='question-2'><div class='question-content'><p><strong>NEW QUESTION 19<\/strong><br \/>List all the events sorted by timestamp and put them into file.log and verify<\/p>\n<\/div><input type='hidden' name='question_id[]' value='8766' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='34356' \/><div class='watu-question-choice'><input type='radio' name='answer-8766[]' id='answer-id-34356' class='answer answer-2 js-answer-label answerof-8766' value='34356' \/>&nbsp;<label for='answer-id-34356' id='answer-label-34356' class='js-answer-label answer label-2'><span class='answer'>kubectl get events &#8211;sort-by=.metadata.creationTimestamp<br \/>kubectl get events &#8211;sort-by=.metadata.creationTimestamp &gt;<br \/>test-file.log<br \/>cat test-file.log<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='34357' \/><div class='watu-question-choice'><input type='radio' name='answer-8766[]' id='answer-id-34357' class='answer answer-2 js-answer-label answerof-8766' value='34357' \/>&nbsp;<label for='answer-id-34357' id='answer-label-34357' class='js-answer-label answer label-2'><span class='answer'>kubectl get events &#8211;sort-by=.metadata.creationTimestamp<br \/>\/\/ putting them into file.log<br \/>kubectl get events &#8211;sort-by=.metadata.creationTimestamp &gt;<br \/>cat test-file.log<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='34358' \/><div class='watu-question-choice'><input type='radio' name='answer-8766[]' id='answer-id-34358' class='answer answer-2 php-answer-label answerof-8766' value='34358' \/>&nbsp;<label for='answer-id-34358' id='answer-label-34358' class='php-answer-label answer label-2'><span class='answer'>kubectl get events &#8211;sort-by=.metadata.creationTimestamp<br \/>\/\/ putting them into file.log<br \/>kubectl get events &#8211;sort-by=.metadata.creationTimestamp &gt;<br \/>test-file.log<br \/>cat test-file.log<\/span><\/label><\/div>\n<\/div><div class='show-question-feedback' style='display:none;'><\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(2,this)' id='btn-2' value='See Answer'  \/><input type='hidden' id='questionType2' value='radio' class=''><\/div><div class='watu-question' id='question-3'><div class='question-content'><p><strong>NEW QUESTION 20<\/strong><br \/>Score: 4%<br \/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2023\/04\/CKA-dbcaad1b64eb1a15c11b8e4e2b057da6.jpg\"\/><br \/>Task<br \/>Schedule a pod as follows:<br \/>* Name: nginx-kusc00401<br \/>* Image: nginx<br \/>* Node selector: disk=ssd<\/p>\n<\/div><input type='hidden' name='question_id[]' value='8767' \/><textarea name='answer-8767[]' rows='5' cols='40' id='textarea_q_8767' class='watu-textarea watu-textarea-3'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>Solution:<br\/>#yaml<br\/>apiVersion: v1<br\/>kind: Pod<br\/>metadata:<br\/>name: nginx-kusc00401<br\/>spec:<br\/>containers:<br\/>&#8211; name: nginx<br\/>image: nginx<br\/>imagePullPolicy: IfNotPresent<br\/>nodeSelector:<br\/>disk: spinning<br\/>#<br\/>kubectl create -f node-select.yaml<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(3,this)' id='btn-3' value='See Answer'  \/><input type='hidden' id='questionType3' value='textarea' class=''><\/div><div class='watu-question' id='question-4'><div class='question-content'><p><strong>NEW QUESTION 21<\/strong><br \/>Score:7%<br \/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2023\/04\/CKA-0607c79c52fa88a2e1cb0b807292faed.jpg\"\/><br \/>Context<br \/>An existing Pod needs to be integrated into the Kubernetes built-in logging architecture (e. g. kubectl logs). Adding a streaming sidecar container is a good and common way to accomplish this requirement.<br \/>Task<br \/>Add a sidecar container named sidecar, using the busybox Image, to the existing Pod big-corp-app. The new sidecar container has to run the following command:<br \/>\/bin\/sh -c tail -n+1 -f \/va r\/log\/big-corp-app.log<br \/>Use a Volume, mounted at \/var\/log, to make the log file big-corp-app.log available to the sidecar container.<br \/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2023\/04\/CKA-179e571c5338966dc5dc199b8164ee3f.jpg\"\/><\/p>\n<\/div><input type='hidden' name='question_id[]' value='8768' \/><textarea name='answer-8768[]' rows='5' cols='40' id='textarea_q_8768' class='watu-textarea watu-textarea-4'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>Solution:<br\/>#<br\/>kubectl get pod big-corp-app -o yaml<br\/>#<br\/>apiVersion: v1<br\/>kind: Pod<br\/>metadata:<br\/>name: big-corp-app<br\/>spec:<br\/>containers:<br\/>&#8211; name: big-corp-app<br\/>image: busybox<br\/>args:<br\/>&#8211; \/bin\/sh<br\/>&#8211; -c<br\/>&#8211; &gt;<br\/>i=0;<br\/>while true;<br\/>do<br\/>echo &#8220;$(date) INFO $i&#8221; &gt;&gt; \/var\/log\/big-corp-app.log;<br\/>i=$((i+1));<br\/>sleep 1;<br\/>done<br\/>volumeMounts:<br\/>&#8211; name: logs<br\/>mountPath: \/var\/log<br\/>&#8211; name: count-log-1<br\/>image: busybox<br\/>args: [\/bin\/sh, -c, &#8216;tail -n+1 -f \/var\/log\/big-corp-app.log&#8217;]<br\/>volumeMounts:<br\/>&#8211; name: logs<br\/>mountPath: \/var\/log<br\/>volumes:<br\/>&#8211; name: logs<br\/>emptyDir: {<br\/>}<br\/>#<br\/>kubectl logs big-corp-app -c count-log-1<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(4,this)' id='btn-4' value='See Answer'  \/><input type='hidden' id='questionType4' value='textarea' class=''><\/div><div class='watu-question' id='question-5'><div class='question-content'><p><strong>NEW QUESTION 22<\/strong><br \/>Check the image version in pod without the describe command<\/p>\n<\/div><input type='hidden' name='question_id[]' value='8769' \/><textarea name='answer-8769[]' rows='5' cols='40' id='textarea_q_8769' class='watu-textarea watu-textarea-5'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>See the solution below.<br\/>Explanation<br\/>kubectl get po nginx -o<br\/>jsonpath='{.spec.containers[].image}{&#8220;\\n&#8221;}&#8217;<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(5,this)' id='btn-5' value='See Answer'  \/><input type='hidden' id='questionType5' value='textarea' class=''><\/div><div class='watu-question' id='question-6'><div class='question-content'><p><strong>NEW QUESTION 23<\/strong><br \/>Create and configure the service front-end-service so it&#8217;s accessible through NodePort and routes to the existing pod named front-end.<\/p>\n<\/div><input type='hidden' name='question_id[]' value='8770' \/><textarea name='answer-8770[]' rows='5' cols='40' id='textarea_q_8770' class='watu-textarea watu-textarea-6'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>See the solution below.<br\/>Explanation<br\/>solution<br\/>F:\\Work\\Data Entry Work\\Data Entry\\20200827\\CKA\\8 B.JPG<br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2023\/04\/CKA-256b9d759c0e55ba6f9f33bde4562808.jpg\"\/><\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(6,this)' id='btn-6' value='See Answer'  \/><input type='hidden' id='questionType6' value='textarea' class=''><\/div><div class='watu-question' id='question-7'><div class='question-content'><p><strong>NEW QUESTION 24<\/strong><br \/>Change the label for one of the pod to env=uat and list all the pods to verify<\/p>\n<\/div><input type='hidden' name='question_id[]' value='8771' \/><textarea name='answer-8771[]' rows='5' cols='40' id='textarea_q_8771' class='watu-textarea watu-textarea-7'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>kubectl label pod\/nginx-dev3 env=uat &#8211;overwrite kubectl get pods &#8211;show-labels<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(7,this)' id='btn-7' value='See Answer'  \/><input type='hidden' id='questionType7' value='textarea' class=''><\/div><div class='watu-question' id='question-8'><div class='question-content'><p><strong>NEW QUESTION 25<\/strong><br \/>List pod logs named &#8220;frontend&#8221; and search for the pattern &#8220;started&#8221; and write it to a file &#8220;\/opt\/error-logs&#8221;<\/p>\n<\/div><input type='hidden' name='question_id[]' value='8772' \/><textarea name='answer-8772[]' rows='5' cols='40' id='textarea_q_8772' class='watu-textarea watu-textarea-8'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>Kubectl logs frontend | grep -i &#8220;started&#8221; &gt; \/opt\/error-logs<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(8,this)' id='btn-8' value='See Answer'  \/><input type='hidden' id='questionType8' value='textarea' class=''><\/div><div class='watu-question' id='question-9'><div class='question-content'><p><strong>NEW QUESTION 26<\/strong><br \/>Label a node as app=test and verify<\/p>\n<\/div><input type='hidden' name='question_id[]' value='8773' \/><textarea name='answer-8773[]' rows='5' cols='40' id='textarea_q_8773' class='watu-textarea watu-textarea-9'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>kubectl label node node-name app=test \/\/ Verify kubectl get no -show-labels kubectl get no -l app=test<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(9,this)' id='btn-9' value='See Answer'  \/><input type='hidden' id='questionType9' value='textarea' class=''><\/div><div class='watu-question' id='question-10'><div class='question-content'><p><strong>NEW QUESTION 27<\/strong><br \/>Undo the deployment with the previous version and verify<br \/>everything is Ok<\/p>\n<\/div><input type='hidden' name='question_id[]' value='8774' \/><textarea name='answer-8774[]' rows='5' cols='40' id='textarea_q_8774' class='watu-textarea watu-textarea-10'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>kubectl rollout undo deploy webapp kubectl rollout status deploy webapp kubectl get pods<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(10,this)' id='btn-10' value='See Answer'  \/><input type='hidden' id='questionType10' value='textarea' class=''><\/div><div class='watu-question' id='question-11'><div class='question-content'><p><strong>NEW QUESTION 28<\/strong><br \/>Scale the deployment webserver to 6 pods.<\/p>\n<\/div><input type='hidden' name='question_id[]' value='8775' \/><textarea name='answer-8775[]' rows='5' cols='40' id='textarea_q_8775' class='watu-textarea watu-textarea-11'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>solution<br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2023\/04\/CKA-9821b9b7236788663e28a4134a9d14bc.jpg\"\/><\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(11,this)' id='btn-11' value='See Answer'  \/><input type='hidden' id='questionType11' value='textarea' class=''><\/div><div class='watu-question' id='question-12'><div class='question-content'><p><strong>NEW QUESTION 29<\/strong><br \/>Create a configmap called myconfigmap with literal value<br \/>appname=myapp<\/p>\n<\/div><input type='hidden' name='question_id[]' value='8776' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='34359' \/><div class='watu-question-choice'><input type='radio' name='answer-8776[]' id='answer-id-34359' class='answer answer-12 php-answer-label answerof-8776' value='34359' \/>&nbsp;<label for='answer-id-34359' id='answer-label-34359' class='php-answer-label answer label-12'><span class='answer'>kubectl create cm myconfigmap &#8211;from-literal=appname=myapp<br \/>\/\/ Verify<br \/>kubectl get cm -o yaml<br \/>(or)<br \/>kubectl describe cm<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='34360' \/><div class='watu-question-choice'><input type='radio' name='answer-8776[]' id='answer-id-34360' class='answer answer-12 js-answer-label answerof-8776' value='34360' \/>&nbsp;<label for='answer-id-34360' id='answer-label-34360' class='js-answer-label answer label-12'><span class='answer'>kubectl create cm myconfigmap &#8211;from-literal=appname=myapp<br \/>\/\/ Verify<br \/>(or)<br \/>kubectl describe cm<\/span><\/label><\/div>\n<\/div><div class='show-question-feedback' style='display:none;'><\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(12,this)' id='btn-12' value='See Answer'  \/><input type='hidden' id='questionType12' value='radio' class=''><\/div><div class='watu-question' id='question-13'><div class='question-content'><p><strong>NEW QUESTION 30<\/strong><br \/>Create a pod that echo &#8220;hello world&#8221; and then exists. Have the pod deleted automatically when it&#8217;s completed<\/p>\n<\/div><input type='hidden' name='question_id[]' value='8777' \/><textarea name='answer-8777[]' rows='5' cols='40' id='textarea_q_8777' class='watu-textarea watu-textarea-13'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>kubectl run busybox &#8211;image=busybox -it &#8211;rm &#8211;restart=Never &#8212;<br\/>\/bin\/sh -c &#8216;echo hello world&#8217;<br\/>kubectl get po # You shouldn&#8217;t see pod with the name &#8220;busybox&#8221;<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(13,this)' id='btn-13' value='See Answer'  \/><input type='hidden' id='questionType13' value='textarea' class=''><\/div><div class='watu-question' id='question-14'><div class='question-content'><p><strong>NEW QUESTION 31<\/strong><br \/>Get the list of pods of webapp deployment<\/p>\n<\/div><input type='hidden' name='question_id[]' value='8778' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='34361' \/><div class='watu-question-choice'><input type='radio' name='answer-8778[]' id='answer-id-34361' class='answer answer-14 js-answer-label answerof-8778' value='34361' \/>&nbsp;<label for='answer-id-34361' id='answer-label-34361' class='js-answer-label answer label-14'><span class='answer'>\/\/ Get the label of the deployment<br \/>kubectl get deploy &#8211;show-labels<br \/>kubectl get pods -l app=webapp<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='34362' \/><div class='watu-question-choice'><input type='radio' name='answer-8778[]' id='answer-id-34362' class='answer answer-14 php-answer-label answerof-8778' value='34362' \/>&nbsp;<label for='answer-id-34362' id='answer-label-34362' class='php-answer-label answer label-14'><span class='answer'>\/\/ Get the label of the deployment<br \/>kubectl get deploy &#8211;show-labels<br \/>\/\/ Get the pods with that label<br \/>kubectl get pods -l app=webapp<\/span><\/label><\/div>\n<\/div><div class='show-question-feedback' style='display:none;'><\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(14,this)' id='btn-14' value='See Answer'  \/><input type='hidden' id='questionType14' value='radio' class=''><\/div><div class='watu-question' id='question-15'><div class='question-content'><p><strong>NEW QUESTION 32<\/strong><br \/>Schedule a pod as follows:<br \/>Name: nginx-kusc00101<br \/>Image: nginx<br \/>Node selector: disk=ssd<\/p>\n<\/div><input type='hidden' name='question_id[]' value='8779' \/><textarea name='answer-8779[]' rows='5' cols='40' id='textarea_q_8779' class='watu-textarea watu-textarea-15'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>See the solution below.<br\/>Explanation<br\/>solution<br\/>F:\\Work\\Data Entry Work\\Data Entry\\20200827\\CKA\\6 B.JPG<br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2023\/04\/CKA-579fb13474ad1697624b91cbb5f40c51.jpg\"\/><br\/>F:\\Work\\Data Entry Work\\Data Entry\\20200827\\CKA\\6 C.JPG<br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2023\/04\/CKA-d31da69a9e99d26446f8df59ed0e3ba7.jpg\"\/><br\/>F:\\Work\\Data Entry Work\\Data Entry\\20200827\\CKA\\6 D.JPG<br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2023\/04\/CKA-6e5e718d90c3dbbb44535140e4fe3378.jpg\"\/><\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(15,this)' id='btn-15' value='See Answer'  \/><input type='hidden' id='questionType15' value='textarea' class=''><\/div><div class='watu-question' id='question-16'><div class='question-content'><p><strong>NEW QUESTION 33<\/strong><br \/>Add a taint to node &#8220;worker-2&#8221; with effect as &#8220;NoSchedule&#8221; and<br \/>list the node with taint effect as &#8220;NoSchedule&#8221;<\/p>\n<\/div><input type='hidden' name='question_id[]' value='8780' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='34363' \/><div class='watu-question-choice'><input type='radio' name='answer-8780[]' id='answer-id-34363' class='answer answer-16 js-answer-label answerof-8780' value='34363' \/>&nbsp;<label for='answer-id-34363' id='answer-label-34363' class='js-answer-label answer label-16'><span class='answer'>\/\/ Add taint to node &#8220;worker-2&#8221;<br \/>kubectl taint nodes worker-2 key=value:NoSchedule<br \/>.items[*]}{.metadata.name} {.spec.taints[?(<br \/>@.effect==&#8217;NoSchedule&#8217; )].effect}{&#8220;n&#8221;}{end}&#8221; | awk &#8216;NF==2<br \/>{print $0}&#8217;<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='34364' \/><div class='watu-question-choice'><input type='radio' name='answer-8780[]' id='answer-id-34364' class='answer answer-16 php-answer-label answerof-8780' value='34364' \/>&nbsp;<label for='answer-id-34364' id='answer-label-34364' class='php-answer-label answer label-16'><span class='answer'>\/\/ Add taint to node &#8220;worker-2&#8221;<br \/>kubectl taint nodes worker-2 key=value:NoSchedule<br \/>\/\/ Verify<br \/>\/\/ Using &#8220;custom-coloumns&#8221; , you can customize which coloumn to<br \/>be printed<br \/>kubectl get nodes -o customcolumns=NAME:.metadata.name,TAINTS:.spec.taints &#8211;no-headers<br \/>\/\/ Using jsonpath<br \/>kubectl get nodes -o jsonpath=&#8221;{range<br \/>.items[*]}{.metadata.name} {.spec.taints[?(<br \/>@.effect==&#8217;NoSchedule&#8217; )].effect}{&#8220;n&#8221;}{end}&#8221; | awk &#8216;NF==2<br \/>{print $0}&#8217;<\/span><\/label><\/div>\n<\/div><div class='show-question-feedback' style='display:none;'><\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(16,this)' id='btn-16' value='See Answer'  \/><input type='hidden' id='questionType16' value='radio' class=''><\/div><div class='watu-question' id='question-17'><div class='question-content'><p><strong>NEW QUESTION 34<\/strong><br \/>Create a deployment as follows:<br \/>Name: nginx-random<br \/>Exposed via a service nginx-random<br \/>Ensure that the service &amp; pod are accessible via their respective DNS records The container(s) within any pod(s) running as a part of this deployment should use the nginx Image Next, use the utility nslookup to look up the DNS records of the service &amp; pod and write the output to \/opt\/KUNW00601\/service.dns and \/opt\/KUNW00601\/pod.dns respectively.<\/p>\n<\/div><input type='hidden' name='question_id[]' value='8781' \/><textarea name='answer-8781[]' rows='5' cols='40' id='textarea_q_8781' class='watu-textarea watu-textarea-17'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>Solution:<br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2023\/04\/CKA-ea77e7d7103ac9ea602320d9bfe01fab.jpg\"\/><br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2023\/04\/CKA-eee72a59e0e827f3c3f19075fffa459c.jpg\"\/><br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2023\/04\/CKA-07d96400a2bb8458f76112cbef6d7147.jpg\"\/><\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(17,this)' id='btn-17' value='See Answer'  \/><input type='hidden' id='questionType17' value='textarea' class=''><\/div><div class='watu-question' id='question-18'><div class='question-content'><p><strong>NEW QUESTION 35<\/strong><br \/>Create a pod with environment variables as var1=value1.Check the environment variable in pod<\/p>\n<\/div><input type='hidden' name='question_id[]' value='8782' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='34365' \/><div class='watu-question-choice'><input type='radio' name='answer-8782[]' id='answer-id-34365' class='answer answer-18 js-answer-label answerof-8782' value='34365' \/>&nbsp;<label for='answer-id-34365' id='answer-label-34365' class='js-answer-label answer label-18'><span class='answer'>kubectl run nginx &#8211;image=nginx &#8211;restart=Never &#8211;env=var1=value1<br \/># then<br \/>kubectl exec -it nginx &#8212; env<br \/># or<br \/>kubectl describe po nginx | grep value1<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='34366' \/><div class='watu-question-choice'><input type='radio' name='answer-8782[]' id='answer-id-34366' class='answer answer-18 php-answer-label answerof-8782' value='34366' \/>&nbsp;<label for='answer-id-34366' id='answer-label-34366' class='php-answer-label answer label-18'><span class='answer'>kubectl run nginx &#8211;image=nginx &#8211;restart=Never &#8211;env=var1=value1<br \/># then<br \/>kubectl exec -it nginx &#8212; env<br \/># or<br \/>kubectl exec -it nginx &#8212; sh -c &#8216;echo $var1&#8217;<br \/># or<br \/>kubectl describe po nginx | grep value1<\/span><\/label><\/div>\n<\/div><div class='show-question-feedback' style='display:none;'><\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(18,this)' id='btn-18' value='See Answer'  \/><input type='hidden' id='questionType18' value='radio' class=''><\/div><div class='watu-question' id='question-19'><div class='question-content'><p><strong>NEW QUESTION 36<\/strong><br \/>Get all the pods with label &#8220;env&#8221;<\/p>\n<\/div><input type='hidden' name='question_id[]' value='8783' \/><textarea name='answer-8783[]' rows='5' cols='40' id='textarea_q_8783' class='watu-textarea watu-textarea-19'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>kubectl get pods -L env<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(19,this)' id='btn-19' value='See Answer'  \/><input type='hidden' id='questionType19' value='textarea' class=''><\/div><div class='watu-question' id='question-20'><div class='question-content'><p><strong>NEW QUESTION 37<\/strong><br \/>Create an nginx pod and load environment values from the above configmap &#8220;keyvalcfgmap&#8221; and exec into the pod and verify the environment variables and delete the pod<\/p>\n<\/div><input type='hidden' name='question_id[]' value='8784' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='34367' \/><div class='watu-question-choice'><input type='radio' name='answer-8784[]' id='answer-id-34367' class='answer answer-20 php-answer-label answerof-8784' value='34367' \/>&nbsp;<label for='answer-id-34367' id='answer-label-34367' class='php-answer-label answer label-20'><span class='answer'>\/\/ first run this command to save the pod yaml<br \/>kubectl run nginx &#8211;image=nginx &#8211;restart=Always &#8211;dry-run -o<br \/>yaml &gt; nginx-pod.yml<br \/>\/\/ edit the yml to below file and create<br \/>vim nginx-pod.yml<br \/>apiVersion: v1<br \/>kind: Pod<br \/>metadata:<br \/>labels:<br \/>run: nginx<br \/>name: nginx<br \/>spec:<br \/>containers:<br \/>&#8211; image: nginx<br \/>name: nginx<br \/>envFrom:<br \/>&#8211; configMapRef:<br \/>name: keyvalcfgmap<br \/>restartPolicy: Always<br \/>kubectl apply -f nginx-pod.yml<br \/>\/\/ verify<br \/>kubectl exec -it nginx &#8212; env<br \/>kubectl delete po nginx<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='34368' \/><div class='watu-question-choice'><input type='radio' name='answer-8784[]' id='answer-id-34368' class='answer answer-20 js-answer-label answerof-8784' value='34368' \/>&nbsp;<label for='answer-id-34368' id='answer-label-34368' class='js-answer-label answer label-20'><span class='answer'>\/\/ first run this command to save the pod yaml<br \/>kubectl run nginx &#8211;image=nginx &#8211;restart=Always &#8211;dry-run -o<br \/>yaml &gt; nginx-pod.yml<br \/>\/\/ edit the yml to below file and create<br \/>vim nginx-pod.yml<br \/>apiVersion: v1<br \/>name: nginx<br \/>envFrom:<br \/>&#8211; configMapRef:<br \/>name: keyvalcfgmap<br \/>restartPolicy: Always<br \/>kubectl apply -f nginx-pod.yml<br \/>\/\/ verify<br \/>kubectl exec -it nginx &#8212; env<br \/>kubectl delete po nginx<\/span><\/label><\/div>\n<\/div><div class='show-question-feedback' style='display:none;'><\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(20,this)' id='btn-20' value='See Answer'  \/><input type='hidden' id='questionType20' value='radio' class=''><\/div><div style='display:none' id='question-21'><br \/><div class='question-content'><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/plugins\/watu\/loading.gif\" width=\"16\" height=\"16\" alt=\"Loading ...\" title=\"Loading ...\" \/>&nbsp;Loading &#8230;<\/div><\/div><br \/>\n<input type=\"button\" name=\"action\" onclick=\"Watu.submitResult()\" id=\"action-button\" style=\"margin:0 auto 20px auto;\" value=\"View Results\"  class=\"watu-submit-button\" \/>\n<input type=\"hidden\" name=\"no_ajax\" value=\"0\"><input type=\"hidden\" name=\"quiz_id\" value=\"452\" \/>\n<input type=\"hidden\" id=\"watuStartTime\" name=\"start_time\" value=\"2026-09-23 18:35:30\" \/>\n<\/form>\n<\/div>\n<div id=\"watu-loading-result\" style=\"display:none;\">\n\t<p align=\"center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/plugins\/watu\/loading.gif\" width=\"16\" height=\"16\" alt=\"Loading\" title=\"Loading\" \/><\/p>\n<\/div>\t\n<script type=\"text\/javascript\">\nvar exam_id=0;\nvar question_ids='';\nvar watuURL='';\njQuery(function($){\nquestion_ids = \"8765,8766,8767,8768,8769,8770,8771,8772,8773,8774,8775,8776,8777,8778,8779,8780,8781,8782,8783,8784\";\nexam_id = 452;\nWatu.exam_id = exam_id;\nWatu.qArr = question_ids.split(',');\nWatu.post_id = 986;\nWatu.singlePage = '1';\nWatu.hAppID = \"0.31586700 1790188530\";\nwatuURL = \"https:\/\/blog.topexamcollection.com\/wp-admin\/admin-ajax.php\";\nWatu.noAlertUnanswered = 0;\n});\n\nfunction showanswer1(e,q) {\n\tvar check = new Array();\n\tjQuery('.answer-' + e).each(function (i) {\n\t\tcheck.push(this.checked)\n\t})\n\tlet textval = jQuery('.watu-textarea-' + e).val()\n\tif (jQuery.inArray(true, check) >= 0 || textval !== '' && textval !== undefined) {\n\t\tjQuery(q).stop().fadeOut(300)\n\t\tjQuery('.php-answer-label.label-' + e).addClass(\n\t\t\t'correct-answer'\n\t\t)\n\t\tjQuery('.answer-' + e).each(function (i) {\n\t\t\tif (this.checked && this.className.match(\/js\\-answer\/)) {\n\t\t\t\tvar number = this.id.toString().replace(\/\\D\/g, '')\n\t\t\t\tif (number) {\n\t\t\t\t\tjQuery('#answer-label-' + number).addClass('user-answer')\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t\tjQuery(q).siblings('.show-question-feedback').stop().fadeIn(300)\n\t\ttextval = ''\n\t} else if (textval == '' || textval == undefined){\n\t\t\/\/jQuery(\".hint\").stop().fadeIn(300)\n\t\talert('Please first answer the question');\n\t}\n}\nvar btnisshow = jQuery(\".php-answer-label\").length\nif (btnisshow > 0) {\n\tjQuery('.showchecked').show()\n} else {\n\tjQuery('.showchecked').hide()\n}\n<\/script>\n<p>The Linux Foundation Certified Kubernetes Administrator (CKA) Program Certification Exam is designed to test the skills and knowledge of individuals in the field of Kubernetes administration. The exam is aimed at individuals who are responsible for designing, deploying, and maintaining Kubernetes clusters in production environments. The CKA Program Certification Exam is a performance-based exam, which means that candidates will be required to perform tasks on a live Kubernetes cluster rather than answering multiple-choice questions.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Updated CKA Dumps Questions Are Available For Passing Linux Foundation Exam: <a href=\"https:\/\/www.topexamcollection.com\/CKA-vce-collection.html\" target=\"_blank\" rel=\"noopener\">https:\/\/www.topexamcollection.com\/CKA-vce-collection.html<\/a><\/strong><\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>Enhance Your Career With Available Preparation Guide for CKA Exam Get Special Discount Offer of CKA Certification Exam Sample Questions and Answers The Linux Foundation Certified Kubernetes Administrator (CKA) Program Certification Exam is designed to test the skills and knowledge of individuals in the field of Kubernetes administration. The exam is aimed at individuals who &hellip; <\/p>\n<div class=\"link-more text-center\"><a href=\"https:\/\/blog.topexamcollection.com\/ko\/2023\/04\/enhance-your-career-with-available-preparation-guide-for-cka-exam-q18-q37\/\" class=\"more-link py-2 px-4\">Read More<span class=\"screen-reader-text\"> &#8220;Enhance Your Career With Available Preparation Guide for CKA Exam [Q18-Q37]&#8221;<\/span><\/a><\/div>\n","protected":false},"author":1,"featured_media":987,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[3161,548],"tags":[3158,3157,3159,3160],"class_list":["post-986","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cka","category-linux-foundation","tag-cka-latest-test-experience","tag-cka-latest-vce-exam-simulator","tag-cka-reliable-test-camp","tag-cka-valid-test-review"],"_links":{"self":[{"href":"https:\/\/blog.topexamcollection.com\/ko\/wp-json\/wp\/v2\/posts\/986","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.topexamcollection.com\/ko\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.topexamcollection.com\/ko\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.topexamcollection.com\/ko\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.topexamcollection.com\/ko\/wp-json\/wp\/v2\/comments?post=986"}],"version-history":[{"count":0,"href":"https:\/\/blog.topexamcollection.com\/ko\/wp-json\/wp\/v2\/posts\/986\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.topexamcollection.com\/ko\/wp-json\/wp\/v2\/media\/987"}],"wp:attachment":[{"href":"https:\/\/blog.topexamcollection.com\/ko\/wp-json\/wp\/v2\/media?parent=986"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.topexamcollection.com\/ko\/wp-json\/wp\/v2\/categories?post=986"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.topexamcollection.com\/ko\/wp-json\/wp\/v2\/tags?post=986"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}