[2024年05月03日]CKAサンプルには正確で更新された問題
CKA試験情報と無料練習テスト
CKAプログラムは、システム管理者、DevOpsエンジニア、クラウド管理者を含むKubernetes管理に興味を持つITプロフェッショナルを対象としています。認定プログラムは、Kubernetesアーキテクチャとコンポーネント、Kubernetes上でのアプリケーションの展開、Kubernetesネットワーキングとセキュリティの設定、およびKubernetesクラスタのトラブルシューティングを含む、広範なトピックをカバーしています。
CKA認定は業界に認知され、Kubernetes管理者としての専門知識を証明するための貴重な資格です。この認定は、雇用主がKubernetes管理の役割に適した候補者を特定する方法を提供し、個人がIT業界でキャリアアップするのに役立ちます。
質問 # 39
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 state, ensuring that any changes are made permanent.
You can ssh to the failed node using:
[student@node-1] $ | ssh Wk8s-node-0
You can assume elevated privileges on the node with the following 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
F:\Work\Data Entry Work\Data Entry\20200827\CKA\20 D.JPG
F:\Work\Data Entry Work\Data Entry\20200827\CKA\20 E.JPG
質問 # 40
Scale the deployment to 5 replicas
正解:
解説:
kubectl scale deployment webapp -replicas=5 //Verify kubectl get deploy kubectl get po,rs
質問 # 41
Score: 7%
Task
Given an existing Kubernetes cluster running version 1.20.0, upgrade all of the Kubernetes control plane and node components on the master node only to version 1.20.1.
Be sure to drain the master node before upgrading it and uncordon it after the upgrade.
You are also expected to upgrade kubelet and kubectl on the master node.
正解:
解説:
SOLUTION:
[student@node-1] > ssh ek8s
kubectl cordon k8s-master
kubectl drain k8s-master --delete-local-data --ignore-daemonsets --force apt-get install kubeadm=1.20.1-00 kubelet=1.20.1-00 kubectl=1.20.1-00 --disableexcludes=kubernetes kubeadm upgrade apply 1.20.1 --etcd-upgrade=false systemctl daemon-reload systemctl restart kubelet kubectl uncordon k8s-master
質問 # 42
Check to see how many worker nodes are ready (not including nodes taintedNoSchedule) and write the number to/opt/KUCC00104/kucc00104.txt.
正解:
解説:
See the solution below.
Explanation
solution

質問 # 43
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.
You can ssh to the failed node using:
[student@node-1] $ | ssh Wk8s-node-0
You can assume elevated privileges on the node with the following command:
[student@w8ks-node-0] $ | sudo -i
正解:
解説:
See the solution below.
Explanation
solution


質問 # 44
Add a taint to node "worker-2" with effect as "NoSchedule" and
list the node with taint effect as "NoSchedule"
- A. // Add taint to node "worker-2"
kubectl taint nodes worker-2 key=value:NoSchedule
.items[*]}{.metadata.name} {.spec.taints[?(
@.effect=='NoSchedule' )].effect}{\"\n\"}{end}" | awk 'NF==2
{print $0}' - B. // Add taint to node "worker-2"
kubectl taint nodes worker-2 key=value:NoSchedule
// Verify
// Using "custom-coloumns" , you can customize which coloumn to
be printed
kubectl get nodes -o customcolumns=NAME:.metadata.name,TAINTS:.spec.taints --no-headers
// Using jsonpath
kubectl get nodes -o jsonpath="{range
.items[*]}{.metadata.name} {.spec.taints[?(
@.effect=='NoSchedule' )].effect}{\"\n\"}{end}" | awk 'NF==2
{print $0}'
正解:B
質問 # 45
Create an nginx pod and list the pod with different levels of verbosity
正解:
解説:
See the solution below.
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
質問 # 46
Check the image version in pod without the describe command
正解:
解説:
kubectl get po nginx -o
jsonpath='{.spec.containers[].image}{"\n"}'
質問 # 47
Allow traffic from all the pods in "web" namespace and from pods
with label "type=monitoring" to the pods matching label "app: db"
- A. kubectl create namespace web
kubectl label namespace/web app=web
vim web-allow-all-ns-monitoring.yaml
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: web-allow-all-ns-monitoring
namespace: default
spec:
podSelector:
podSelector:
matchLabels:
type: monitoring
k kubectl apply -f web-allow-all-ns-monitoring.yaml - B. kubectl create namespace web
kubectl label namespace/web app=web
vim web-allow-all-ns-monitoring.yaml
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: web-allow-all-ns-monitoring
namespace: default
spec:
podSelector:
matchLabels:
app: db
ingress:
- from:
- namespaceSelector:
matchLabels:
app: web
podSelector:
matchLabels:
type: monitoring
k kubectl apply -f web-allow-all-ns-monitoring.yaml
正解:B
質問 # 48
Watch the job that runs 10 times one by one and verify 10 pods are created and delete those after it's completed
正解:
解説:
kubectl get job -w kubectl get po kubectl delete job hello-job
質問 # 49
Create a pod as follows:
Name: mongo
Using Image: mongo
In a new Kubernetes namespace named: my-website
正解:
解説:
See the solution below.
Explanation
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\9 B.JPG
質問 # 50
Score: 4%
Task
Check to see how many nodes are ready (not including nodes tainted NoSchedule ) and write the number to
/opt/KUSC00402/kusc00402.txt
正解:
解説:
See the solution below.
Explanation
Solution:
kubectl describe nodes | grep ready|wc -l
kubectl describe nodes | grep -i taint | grep -i noschedule |wc -l
echo 3 > /opt/KUSC00402/kusc00402.txt
#
kubectl get node | grep -i ready |wc -l
# taintsnoSchedule
kubectl describe nodes | grep -i taints | grep -i noschedule |wc -l
#
echo 2 > /opt/KUSC00402/kusc00402.txt
質問 # 51
Create a deployment spec file that will:
Launch 7 replicas of the nginx Image with the label app_runtime_stage=dev deployment name: kual00201 Save a copy of this spec file to /opt/KUAL00201/spec_deployment.yaml (or /opt/KUAL00201/spec_deployment.json).
When you are done, clean up (delete) any new Kubernetes API object that you produced during this task.
正解:
解説:
solution

質問 # 52
Pause the rollout of the deployment
正解:
解説:
kubectl rollout pause deploy webapp
質問 # 53
Create a pod namedkucc8with asingle app container for each of the
following images running inside(there may be between 1 and 4images specified):
nginx + redis + memcached.
正解:
解説:
See the solution below.
Explanation
solution


質問 # 54
List the nginx pod with custom columns POD_NAME and POD_STATUS
正解:
解説:
kubectl get po -o=custom-columns="POD_NAME:.metadata.name,
POD_STATUS:.status.containerStatuses[].state"
質問 # 55
......
CKA認定試験は、Kubernetesアプリケーションの展開、管理、およびトラブルシューティングに関する候補者の知識と専門知識をテストするように設計されています。これは、Live Kubernetesクラスターでタスクを実行する候補者の能力を評価するパフォーマンスベースの試験です。これにより、認証は、理論的知識だけでなく、候補者の実践的スキルを真に反映していることが保証されます。
合格させるLinux Foundation CKAプレミアムお試しセットテストエンジンPDFで無料問題集セット:https://jp.fast2test.com/CKA-premium-file.html
2024年最新の実際に出るCKA問題集テストエンジン試験問題はここにある:https://drive.google.com/open?id=1RvDZG4jdQlvfTKLS3XkRqfreTJhliFv1