{"id":1149,"date":"2023-09-06T10:37:52","date_gmt":"2023-09-06T10:37:52","guid":{"rendered":"https:\/\/blog.topexamcollection.com\/?p=1149"},"modified":"2023-09-06T10:37:52","modified_gmt":"2023-09-06T10:37:52","slug":"q18-q36-100%e3%81%ae%e5%90%88%e6%a0%bc%e4%bf%9d%e8%a8%bc%e3%81%a7cka%e8%a9%a6%e9%a8%93%e3%81%ab%e6%a5%bd%e3%81%ab%e5%90%88%e6%a0%bc%e3%81%99%e3%82%8b-2023","status":"publish","type":"post","link":"https:\/\/blog.topexamcollection.com\/ja\/2023\/09\/q18-q36-pass-your-cka-exam-easily-with-100-exam-passing-guarantee-2023\/","title":{"rendered":"[Q18-Q36] Pass Your CKA Exam Easily With 100% Exam Passing Guarantee [2023]"},"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;1149&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;1&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;4&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;4\\\/5 - (1 vote)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;[Q18-Q36] Pass Your CKA Exam Easily With 100% Exam Passing Guarantee [2023]&quot;,&quot;width&quot;:&quot;113.5&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: 113.5px;\">\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            4\/5 - (1 vote)    <\/div>\n    <\/div>\n<p><span style=\"font-size: 18px\"><strong><span style=\"color: red\">Pass Your CKA Exam Easily With 100% Exam Passing Guarantee [2023]<\/span><\/strong><\/span><\/p>\n<p><strong><span style=\"color: red\">CKA Dumps are Available for Instant Access from TopExamCollection<\/span><\/strong><\/p>\n<p><\/p>\n<p>The CKA program is designed for professionals who want to demonstrate their expertise in Kubernetes administration. Certified Kubernetes Administrator (CKA) Program Exam certification is suitable for IT professionals, cloud architects, DevOps engineers, and system administrators who work with Kubernetes. The CKA program provides a rigorous testing process that ensures that certified professionals have the skills and knowledge to work with Kubernetes in real-world scenarios.<\/p>\n<p>&nbsp;<\/p>\n<div id=\"watu_quiz\" class=\"quiz-area single-page-quiz\">\n<form action=\"\" method=\"post\" class=\"quiz-form \" id=\"quiz-535\" >\n<div class='watu-question' id='question-1'><div class='question-content'><p><strong>NO.18<\/strong> Apply the autoscaling to this deployment with minimum 10 and maximum 20 replicas and target CPU of 85% and verify hpa is created and replicas are increased to 10 from 1<\/p>\n<\/div><input type='hidden' name='question_id[]' value='10384' \/><textarea name='answer-10384[]' rows='5' cols='40' id='textarea_q_10384' class='watu-textarea watu-textarea-1'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>kubectl autoscale deploy webapp &#8211;min=10 &#8211;max=20 &#8211;cpu percent=85 kubectl get hpa kubectl get pod -l app=webapp<\/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>NO.19<\/strong> Create a pod as follows:<br \/>* Name:non-persistent-redis<br \/>* container Image:redis<br \/>* Volume with name:cache-control<br \/>* Mount path:\/data\/redis<br \/>The pod should launch in thestagingnamespace and the volumemust notbe persistent.<\/p>\n<\/div><input type='hidden' name='question_id[]' value='10385' \/><textarea name='answer-10385[]' rows='5' cols='40' id='textarea_q_10385' class='watu-textarea watu-textarea-2'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>See the solution below.<br\/>Explanation<br\/>solution<br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2023\/09\/CKA-116dfbd9976a06bc0782d18e76ccfbdf.jpg\"\/><br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2023\/09\/CKA-dae0a8696eede598d6bd6a88a73506de.jpg\"\/><br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2023\/09\/CKA-b17e0b1f571eeb524a72873b46357cf5.jpg\"\/><\/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='textarea' class=''><\/div><div class='watu-question' id='question-3'><div class='question-content'><p><strong>NO.20<\/strong> For this item, you will havetosshto the nodesik8s-master-0andik8s-node-0and complete all tasks on thesenodes. Ensure that you return tothe base node (hostname:node-1) when you havecompleted this item.<br \/>Context<br \/>As an administrator of a smalldevelopment team, you have beenasked to set up a Kubernetes clusterto test the viability of a newapplication.<br \/>Task<br \/>You must usekubeadmto performthis task. Anykubeadminvocationswill require the use of the<br \/>&#8211;ignore-preflight-errors=alloption.<br \/>* Configure thenodeik8s-master-Oas a masternode. .<br \/>* Join the nodeik8s-node-otothe cluster.<\/p>\n<\/div><input type='hidden' name='question_id[]' value='10386' \/><textarea name='answer-10386[]' rows='5' cols='40' id='textarea_q_10386' class='watu-textarea watu-textarea-3'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>See the solution below.<br\/>Explanation<br\/>solution<br\/>You must use thekubeadmconfiguration file located at   when initializingyour cluster.<br\/>You may use any CNI pluginto complete this task, but ifyou don&#8217;t have your favouriteCNI plugin&#8217;s manifest URL athand, Calico is one popularoption:https:\/\/docs.projectcalico.org\/v3.14\/manifests\/calico.yaml Docker is already installedon both nodes and hasbeen configured so that you caninstall the required tools.<\/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>NO.21<\/strong> Create a busybox pod and add &#8220;sleep 3600&#8221; command<\/p>\n<\/div><input type='hidden' name='question_id[]' value='10387' \/><textarea name='answer-10387[]' rows='5' cols='40' id='textarea_q_10387' class='watu-textarea watu-textarea-4'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>See the solution below.<br\/>Explanation<br\/>kubectl run busybox &#8211;image=busybox &#8211;restart=Never &#8212; \/bin\/sh -c<br\/>&#8220;sleep 3600&#8221;<\/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>NO.22<\/strong> Ensure a single instance of pod nginx is running on each node of the Kubernetes cluster where nginx also represents the Image name which has to be used. Do not override any taints currently in place.<br \/>Use DaemonSet to complete this task and use ds-kusc00201 as DaemonSet name.<\/p>\n<\/div><input type='hidden' name='question_id[]' value='10388' \/><textarea name='answer-10388[]' rows='5' cols='40' id='textarea_q_10388' class='watu-textarea watu-textarea-5'><\/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\/09\/CKA-8f90a0592789efa7f0bac072822fd4f5.jpg\"\/><br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2023\/09\/CKA-387c85d0aaf5a663b4cf40debad92cd5.jpg\"\/><br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2023\/09\/CKA-437c228a3b1bd718d8b6ac32760b5a35.jpg\"\/><br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2023\/09\/CKA-90024eb2f14ec4f725ce2b9fb8825f17.jpg\"\/><\/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>NO.23<\/strong> What are the differences between using a service versus using an application for Security Policy match?<\/p>\n<\/div><input type='hidden' name='question_id[]' value='10389' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='40484' \/><div class='watu-question-choice'><input type='radio' name='answer-10389[]' id='answer-id-40484' class='answer answer-6 js-answer-label answerof-10389' value='40484' \/>&nbsp;<label for='answer-id-40484' id='answer-label-40484' class='js-answer-label answer label-6'><span class='answer'>Use of a &#8220;service&#8221; enables the firewall to take immediate action with the first observed packet based on port numbers. Use of an application allows the firewall to take action after enough packets allow for App-ID identification regardless of the ports being used<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='40485' \/><div class='watu-question-choice'><input type='radio' name='answer-10389[]' id='answer-id-40485' class='answer answer-6 js-answer-label answerof-10389' value='40485' \/>&nbsp;<label for='answer-id-40485' id='answer-label-40485' class='js-answer-label answer label-6'><span class='answer'>Use of a &#8220;service&#8221; enables the firewall to take action after enough packets allow for App-ID identification<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='40486' \/><div class='watu-question-choice'><input type='radio' name='answer-10389[]' id='answer-id-40486' class='answer answer-6 php-answer-label answerof-10389' value='40486' \/>&nbsp;<label for='answer-id-40486' id='answer-label-40486' class='php-answer-label answer label-6'><span class='answer'>Use of a &#8220;service&#8221; enables the firewall to take immediate action with the first observed packet based on port numbers. Use of an &#8220;application allows the firewall to take immediate action if the port being used is a member of the application standard port list<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='40487' \/><div class='watu-question-choice'><input type='radio' name='answer-10389[]' id='answer-id-40487' class='answer answer-6 js-answer-label answerof-10389' value='40487' \/>&nbsp;<label for='answer-id-40487' id='answer-label-40487' class='js-answer-label answer label-6'><span class='answer'>There are no differences between &#8220;service&#8221; or &#8220;application.&#8221; Use of an &#8220;application simplifies configuration by allowing use of a friendly application name instead of port numbers.<\/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(6,this)' id='btn-6' value='See Answer'  \/><input type='hidden' id='questionType6' value='radio' class=''><\/div><div class='watu-question' id='question-7'><div class='question-content'><p><strong>NO.24<\/strong> Create a NetworkPolicy which denies all ingress traffic<\/p>\n<\/div><input type='hidden' name='question_id[]' value='10390' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='40488' \/><div class='watu-question-choice'><input type='radio' name='answer-10390[]' id='answer-id-40488' class='answer answer-7 php-answer-label answerof-10390' value='40488' \/>&nbsp;<label for='answer-id-40488' id='answer-label-40488' class='php-answer-label answer label-7'><span class='answer'>apiVersion: networking.k8s.io\/v1<br \/>kind: NetworkPolicy<br \/>metadata:<br \/>name: default-deny<br \/>spec:<br \/>podSelector: {}<br \/>policyTypes:<br \/>&#8211; Ingress<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='40489' \/><div class='watu-question-choice'><input type='radio' name='answer-10390[]' id='answer-id-40489' class='answer answer-7 js-answer-label answerof-10390' value='40489' \/>&nbsp;<label for='answer-id-40489' id='answer-label-40489' class='js-answer-label answer label-7'><span class='answer'>apiVersion: networking.k8s.io\/v1<br \/>kind: NetworkPolicy<br \/>metadata:<br \/>name: default-deny<br \/>spec:<br \/>podSelector: ()<br \/>policyTypes:<br \/>&#8211; Ingress<\/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(7,this)' id='btn-7' value='See Answer'  \/><input type='hidden' id='questionType7' value='radio' class=''><\/div><div class='watu-question' id='question-8'><div class='question-content'><p><strong>NO.25<\/strong> Score: 5%<br \/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2023\/09\/CKA-5760445cea1ec732eaf9687736ff510b.jpg\"\/><br \/>Task<br \/>Monitor the logs of pod bar and:<br \/>* Extract log lines corresponding to error<br \/>* Write them to \/opt\/KUTR00101\/bar<\/p>\n<\/div><input type='hidden' name='question_id[]' value='10391' \/><textarea name='answer-10391[]' rows='5' cols='40' id='textarea_q_10391' class='watu-textarea watu-textarea-8'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>See the solution below.<br\/>Explanation<br\/>Solution:<br\/>kubectl logs bar | grep &#8216;unable-to-access-website&#8217; &gt; \/opt\/KUTR00101\/bar cat \/opt\/KUTR00101\/bar<\/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>NO.26<\/strong> A Kubernetes worker node, named wk8s-node-0 is in state NotReady. Investigate why this is the case, and perform any appropriate steps to bring the node to a Ready state, ensuring that any changes are made permanent.<br \/>You can ssh to the failed node using:<br \/>[student@node-1] $ | ssh Wk8s-node-0<br \/>You can assume elevated privileges on the node with the following command:<br \/>[student@w8ks-node-0] $ | sudo -i<\/p>\n<\/div><input type='hidden' name='question_id[]' value='10392' \/><textarea name='answer-10392[]' rows='5' cols='40' id='textarea_q_10392' class='watu-textarea watu-textarea-9'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>See the solution below.<br\/>Explanation<br\/>solution<br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2023\/09\/CKA-71cc24b47b8015c1596c596498f58aef.jpg\"\/><br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2023\/09\/CKA-7172a4c79798d03e5ed81b02b7a950a3.jpg\"\/><br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2023\/09\/CKA-86187883fa67ef3cd67366797eb0180c.jpg\"\/><\/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>NO.27<\/strong> Score: 4%<br \/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2023\/09\/CKA-f6571968862fc602488e2d92c2ce37cd.jpg\"\/><br \/>Task<br \/>Create a persistent volume with name app-data , of capacity 1Gi and access mode ReadOnlyMany. The type of volume is hostPath and its location is \/srv\/app-data .<\/p>\n<\/div><input type='hidden' name='question_id[]' value='10393' \/><textarea name='answer-10393[]' rows='5' cols='40' id='textarea_q_10393' class='watu-textarea watu-textarea-10'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>Solution:<br\/>#vi pv.yaml<br\/>apiVersion: v1<br\/>kind: PersistentVolume<br\/>metadata:<br\/>name: app-config<br\/>spec:<br\/>capacity:<br\/>storage: 1Gi<br\/>accessModes:<br\/>&#8211; ReadOnlyMany<br\/>hostPath:<br\/>path: \/srv\/app-config<br\/>#<br\/>kubectl create -f pv.yaml<\/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>NO.28<\/strong> Create a namespace called &#8216;development&#8217; and a pod with image nginx called nginx on this namespace.<\/p>\n<\/div><input type='hidden' name='question_id[]' value='10394' \/><textarea name='answer-10394[]' rows='5' cols='40' id='textarea_q_10394' class='watu-textarea watu-textarea-11'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>kubectl create namespace development kubectl run nginx &#8211;image=nginx &#8211;restart=Never -n development<\/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>NO.29<\/strong> 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='10395' \/><textarea name='answer-10395[]' rows='5' cols='40' id='textarea_q_10395' class='watu-textarea watu-textarea-12'><\/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; \/bin\/sh -c &#8216;echo hello world&#8217; 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(12,this)' id='btn-12' value='See Answer'  \/><input type='hidden' id='questionType12' value='textarea' class=''><\/div><div class='watu-question' id='question-13'><div class='question-content'><p><strong>NO.30<\/strong> 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='10396' \/><textarea name='answer-10396[]' rows='5' cols='40' id='textarea_q_10396' class='watu-textarea watu-textarea-13'><\/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(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>NO.31<\/strong> Create a deployment spec file thatwill:<br \/>* Launch 7 replicas of thenginxImage with the labelapp_runtime_stage=dev<br \/>* deployment name:kual00201<br \/>Save a copy of this spec file to\/opt\/KUAL00201\/spec_deployment.yaml<br \/>(or\/opt\/KUAL00201\/spec_deployment.json).<br \/>When you are done, clean up (delete)any new Kubernetes API object thatyou produced during this task.<\/p>\n<\/div><input type='hidden' name='question_id[]' value='10397' \/><textarea name='answer-10397[]' rows='5' cols='40' id='textarea_q_10397' class='watu-textarea watu-textarea-14'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>See the solution below.<br\/>Explanation<br\/>solution<br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2023\/09\/CKA-8878504ffdf217e4ae7e8ba88b14b8c0.jpg\"\/><br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2023\/09\/CKA-a2b0262d73512e9a14dae59f4da3a676.jpg\"\/><\/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='textarea' class=''><\/div><div class='watu-question' id='question-15'><div class='question-content'><p><strong>NO.32<\/strong> Deploy a pod with image=redis on a node with label disktype=ssd<\/p>\n<\/div><input type='hidden' name='question_id[]' value='10398' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='40490' \/><div class='watu-question-choice'><input type='radio' name='answer-10398[]' id='answer-id-40490' class='answer answer-15 php-answer-label answerof-10398' value='40490' \/>&nbsp;<label for='answer-id-40490' id='answer-label-40490' class='php-answer-label answer label-15'><span class='answer'>\/\/ Get list of nodes<br \/>kubectl get nodes<br \/>\/\/Get node with the label disktype=ssd<br \/>kubectl get no -l disktype=ssd<br \/>\/\/ Create a sample yaml file<br \/>kubectl run node-redis &#8211;generator=run-pod\/v1 &#8211;image=redis &#8211;dry<br \/>run -o yaml &gt; test-redis.yaml<br \/>\/\/ Edit test-redis.yaml file and add nodeSelector<br \/>vim test-redis.yaml<br \/>apiVersion: v1<br \/>kind: Pod<br \/>metadata:<br \/>name: redis<br \/>spec:<br \/>nodeSelector:<br \/>disktype: ssd<br \/>containers:<br \/>&#8211; name: node-redis<br \/>image: redis<br \/>imagePullPolicy: IfNotPresent<br \/>kubectl apply -f test-redis.yaml<br \/>\/ \/\/ Verify<br \/>K kubectl get po -o wide<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='40491' \/><div class='watu-question-choice'><input type='radio' name='answer-10398[]' id='answer-id-40491' class='answer answer-15 js-answer-label answerof-10398' value='40491' \/>&nbsp;<label for='answer-id-40491' id='answer-label-40491' class='js-answer-label answer label-15'><span class='answer'>\/\/ Get list of nodes<br \/>kubectl get nodes<br \/>\/\/Get node with the label disktype=ssd<br \/>kubectl get no -l disktype=ssd<br \/>\/\/ Create a sample yaml file<br \/>kubectl run node-redis &#8211;generator=run-pod\/v1 &#8211;image=redis &#8211;dry<br \/>run -o yaml &gt; test-redis.yaml<br \/>\/\/ Edit test-redis.yaml file and add nodeSelector<br \/>vim test-redis.yaml<br \/>apiVersion: v1<br \/>&#8211; name: node-redis<br \/>image: redis<br \/>imagePullPolicy: IfNotPresent<br \/>kubectl apply -f test-redis.yaml<br \/>\/ \/\/ Verify<br \/>K kubectl get po -o wide<\/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(15,this)' id='btn-15' value='See Answer'  \/><input type='hidden' id='questionType15' value='radio' class=''><\/div><div class='watu-question' id='question-16'><div class='question-content'><p><strong>NO.33<\/strong> Create a redis pod and mount &#8220;redis-config&#8221; as &#8220;redis.conf&#8221;<br \/>inside redis container, name the config volume as &#8220;redis-volume&#8221;<br \/>redis-config path &#8211; \/opt\/redis-config<\/p>\n<\/div><input type='hidden' name='question_id[]' value='10399' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='40492' \/><div class='watu-question-choice'><input type='radio' name='answer-10399[]' id='answer-id-40492' class='answer answer-16 js-answer-label answerof-10399' value='40492' \/>&nbsp;<label for='answer-id-40492' id='answer-label-40492' class='js-answer-label answer label-16'><span class='answer'>1<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='40493' \/><div class='watu-question-choice'><input type='radio' name='answer-10399[]' id='answer-id-40493' class='answer answer-16 js-answer-label answerof-10399' value='40493' \/>&nbsp;<label for='answer-id-40493' id='answer-label-40493' class='js-answer-label answer label-16'><span class='answer'>2<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='40494' \/><div class='watu-question-choice'><input type='radio' name='answer-10399[]' id='answer-id-40494' class='answer answer-16 php-answer-label answerof-10399' value='40494' \/>&nbsp;<label for='answer-id-40494' id='answer-label-40494' class='php-answer-label answer label-16'><span class='answer'>Pending<\/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>NO.34<\/strong> 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.<\/p>\n<\/div><input type='hidden' name='question_id[]' value='10400' \/><textarea name='answer-10400[]' rows='5' cols='40' id='textarea_q_10400' class='watu-textarea watu-textarea-17'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'>kubectl run &#8211;generator=run-pod\/v1 &#8211;image=nginx &#8212; labels=env=prod nginx-prod &#8211;dry-run -o yaml &gt; nginx-prodpod.yaml Now, edit nginx-prod-pod.yaml file and remove entries like &#8220;creationTimestamp: null&#8221; &#8220;dnsPolicy: ClusterFirst&#8221; vim nginx-prod-pod.yaml apiVersion: v1 kind: Pod metadata:<br\/>labels:<br\/>env: prod<br\/>name: nginx-prod<br\/>spec:<br\/>containers:<br\/>&#8211; image: nginx<br\/>name: nginx-prod<br\/>restartPolicy: Always<br\/># kubectl create -f nginx-prod-pod.yaml<br\/>kubectl run &#8211;generator=run-pod\/v1 &#8211;image=nginx &#8212;<br\/>labels=env=dev nginx-dev &#8211;dry-run -o yaml &gt; nginx-dev-pod.yaml<br\/>apiVersion: v1<br\/>kind: Pod<br\/>metadata:<br\/>labels:<br\/>env: dev<br\/>name: nginx-dev<br\/>spec:<br\/>containers:<br\/>&#8211; image: nginx<br\/>name: nginx-dev<br\/>restartPolicy: Always<br\/># kubectl create -f nginx-prod-dev.yaml<br\/>Verify :<br\/>kubectl get po &#8211;show-labels<br\/>kubectl get po -l env=prod<br\/>kubectl get po -l env=dev<\/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>NO.35<\/strong> 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.<\/p>\n<\/div><input type='hidden' name='question_id[]' value='10401' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='40495' \/><div class='watu-question-choice'><input type='radio' name='answer-10401[]' id='answer-id-40495' class='answer answer-18 php-answer-label answerof-10401' value='40495' \/>&nbsp;<label for='answer-id-40495' id='answer-label-40495' class='php-answer-label answer label-18'><span class='answer'>kubectl run &#8211;generator=run-pod\/v1 &#8211;image=nginx &#8212; labels=env=prod nginx-prod &#8211;dry-run -o yaml &gt; nginx-prodpod.yaml Now, edit nginx-prod-pod.yaml file and remove entries like &#8220;creationTimestamp: null&#8221; &#8220;dnsPolicy: ClusterFirst&#8221; vim nginx-prod-pod.yaml apiVersion: v1 kind: Pod metadata:<br \/>labels:<br \/>env: prod<br \/>name: nginx-prod<br \/>spec:<br \/>containers:<br \/>&#8211; image: nginx<br \/>name: nginx-prod<br \/>restartPolicy: Always<br \/># kubectl create -f nginx-prod-pod.yaml<br \/>kubectl run &#8211;generator=run-pod\/v1 &#8211;image=nginx &#8212;<br \/>labels=env=dev nginx-dev &#8211;dry-run -o yaml &gt; nginx-dev-pod.yaml<br \/>apiVersion: v1<br \/>kind: Pod<br \/>metadata:<br \/>labels:<br \/>env: dev<br \/>name: nginx-dev<br \/>spec:<br \/>containers:<br \/>&#8211; image: nginx<br \/>name: nginx-dev<br \/>restartPolicy: Always<br \/># kubectl create -f nginx-prod-dev.yaml<br \/>Verify :<br \/>kubectl get po &#8211;show-labels<br \/>kubectl get po -l env=prod<br \/>kubectl get po -l env=dev<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='40496' \/><div class='watu-question-choice'><input type='radio' name='answer-10401[]' id='answer-id-40496' class='answer answer-18 js-answer-label answerof-10401' value='40496' \/>&nbsp;<label for='answer-id-40496' id='answer-label-40496' class='js-answer-label answer label-18'><span class='answer'>kubectl run &#8211;generator=run-pod\/v1 &#8211;image=nginx &#8212; labels=env=prod nginx-prod &#8211;dry-run -o yaml &gt; nginx-prodpod.yaml Now, edit nginx-prod-pod.yaml file and remove entries like &#8220;creationTimestamp: null&#8221; &#8220;dnsPolicy: ClusterFirst&#8221; vim nginx-prod-pod.yaml apiVersion: v1 kind: Pod metadata:<br \/>labels:<br \/>env: prod<br \/>name: nginx-prod<br \/>spec:<br \/>containers:<br \/>&#8211; image: nginx<br \/>name: nginx-prod<br \/>restartPolicy: Always<br \/># kubectl create -f nginx-prod-pod.yaml<br \/>kubectl run &#8211;generator=run-pod\/v1 &#8211;image=nginx &#8212;<br \/>labels=env=dev nginx-dev &#8211;dry-run -o yaml &gt; nginx-dev-pod.yaml<br \/>apiVersion: v1<br \/>kind: Pod<br \/>metadata:<br \/>&#8211; image: nginx<br \/>name: nginx-dev<br \/>restartPolicy: Always<br \/># kubectl create -f nginx-prod-dev.yaml<br \/>Verify :<br \/>kubectl get po &#8211;show-labels<br \/>kubectl get po -l env=dev<\/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>NO.36<\/strong> Check to see how many worker nodes are ready (not including nodes tainted NoSchedule) and write the number to \/opt\/KUCC00104\/kucc00104.txt.<\/p>\n<\/div><input type='hidden' name='question_id[]' value='10402' \/><textarea name='answer-10402[]' rows='5' cols='40' id='textarea_q_10402' class='watu-textarea watu-textarea-19'><\/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\/09\/CKA-f7c6a0ce14ecea4c53d6244afff3a6bf.jpg\"\/><br\/><img decoding=\"async\" src=\"https:\/\/blog.topexamcollection.com\/wp-content\/uploads\/2023\/09\/CKA-f47fa20e9f692da2405bc099a8b672b4.jpg\"\/><\/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 style='display:none' id='question-20'><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=\"535\" \/>\n<input type=\"hidden\" id=\"watuStartTime\" name=\"start_time\" value=\"2026-09-23 14:32:09\" \/>\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 = \"10384,10385,10386,10387,10388,10389,10390,10391,10392,10393,10394,10395,10396,10397,10398,10399,10400,10401,10402\";\nexam_id = 535;\nWatu.exam_id = exam_id;\nWatu.qArr = question_ids.split(',');\nWatu.post_id = 1149;\nWatu.singlePage = '1';\nWatu.hAppID = \"0.53672900 1790173929\";\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><strong>Study resources for the Valid CKA Braindumps: <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>Pass Your CKA Exam Easily With 100% Exam Passing Guarantee [2023] CKA Dumps are Available for Instant Access from TopExamCollection The CKA program is designed for professionals who want to demonstrate their expertise in Kubernetes administration. Certified Kubernetes Administrator (CKA) Program Exam certification is suitable for IT professionals, cloud architects, DevOps engineers, and system administrators who work with Kubernetes. The CKA program provides a rigorous testing process that ensures that certified professionals have the skills and knowledge to work with Kubernetes in real-world scenarios. &nbsp; Study resources for the Valid CKA Braindumps: https:\/\/www.topexamcollection.com\/CKA-vce-collection.html<\/p>\n","protected":false},"author":1,"featured_media":1150,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[3161,548],"tags":[3715,3714,3713,3718,3717,3716,3719],"class_list":["post-1149","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cka","category-linux-foundation","tag-cka-certification-training","tag-cka-interactive-ebook","tag-cka-latest-exam-collection-materials","tag-cka-reliable-study-guide-files","tag-cka-test-free","tag-cka-valid-exam-labs","tag-new-cka-exam-review"],"_links":{"self":[{"href":"https:\/\/blog.topexamcollection.com\/ja\/wp-json\/wp\/v2\/posts\/1149","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.topexamcollection.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.topexamcollection.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.topexamcollection.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.topexamcollection.com\/ja\/wp-json\/wp\/v2\/comments?post=1149"}],"version-history":[{"count":0,"href":"https:\/\/blog.topexamcollection.com\/ja\/wp-json\/wp\/v2\/posts\/1149\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.topexamcollection.com\/ja\/wp-json\/wp\/v2\/media\/1150"}],"wp:attachment":[{"href":"https:\/\/blog.topexamcollection.com\/ja\/wp-json\/wp\/v2\/media?parent=1149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.topexamcollection.com\/ja\/wp-json\/wp\/v2\/categories?post=1149"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.topexamcollection.com\/ja\/wp-json\/wp\/v2\/tags?post=1149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}