[2022年11月23日] 最新のCKAD試験の的確なLinux Foundation Certified Kubernetes Application Developer ExamのPDF問題 [Q11-Q35]

Share

[2022年11月23日] 最新のCKAD試験の的確なLinux Foundation Certified Kubernetes Application Developer ExamのPDF問題

CKAD試験問題を練習するならJPNTest顕著なLinux Foundation Certified Kubernetes Application Developer Exam試験練習問題集

質問 11
Context
Anytime a team needs to run a container on Kubernetes they will need to define a pod within which to run the container.
Task
Please complete the following:
* Create a YAML formatted pod manifest
/opt/KDPD00101/podl.yml to create a pod named app1 that runs a container named app1cont using image Ifccncf/arg-output
with these command line arguments: -lines 56 -F
* Create the pod with the kubect1 command using the YAML file created in the previous step
* When the pod is running display summary data about the pod in JSON format using the kubect1 command and redirect the output to a file named /opt/KDPD00101/out1.json
* All of the files you need to work with have been created, empty, for your convenience

  • A. Solution:





  • B. Solution:




正解: A

 

質問 12
Exhibit:

Context
A project that you are working on has a requirement for persistent data to be available.
Task
To facilitate this, perform the following tasks:
* Create a file on node sk8s-node-0 at /opt/KDSP00101/data/index.html with the content Acct=Finance
* Create a PersistentVolume named task-pv-volume using hostPath and allocate 1Gi to it, specifying that the volume is at /opt/KDSP00101/data on the cluster's node. The configuration should specify the access mode of ReadWriteOnce . It should define the StorageClass name exam for the PersistentVolume , which will be used to bind PersistentVolumeClaim requests to this PersistenetVolume.
* Create a PefsissentVolumeClaim named task-pv-claim that requests a volume of at least 100Mi and specifies an access mode of ReadWriteOnce
* Create a pod that uses the PersistentVolmeClaim as a volume with a label app: my-storage-app mounting the resulting volume to a mountPath /usr/share/nginx/html inside the pod

  • A. Solution:








  • B. Solution:









正解: B

 

質問 13
Exhibit:

Context
You are tasked to create a secret and consume the secret in a pod using environment variables as follow:
Task
* Create a secret named another-secret with a key/value pair; key1/value4
* Start an nginx pod named nginx-secret using container image nginx, and add an environment variable exposing the value of the secret key key 1, using COOL_VARIABLE as the name for the environment variable inside the pod

  • A. Solution:



  • B. Solution:



正解: A

 

質問 14
Exhibit:

Context
You have been tasked with scaling an existing deployment for availability, and creating a service to expose the deployment within your infrastructure.
Task
Start with the deployment named kdsn00101-deployment which has already been deployed to the namespace kdsn00101 . Edit it to:
* Add the func=webFrontEnd key/value label to the pod template metadata to identify the pod for the service definition
* Have 4 replicas
Next, create ana deploy in namespace kdsn00l01 a service that accomplishes the following:
* Exposes the service on TCP port 8080
* is mapped to me pods defined by the specification of kdsn00l01-deployment
* Is of type NodePort
* Has a name of cherry

  • A. Solution:


  • B. Solution:



正解: B

 

質問 15
Exhibit:

Task
You are required to create a pod that requests a certain amount of CPU and memory, so it gets scheduled to-a node that has those resources available.
* Create a pod named nginx-resources in the pod-resources namespace that requests a minimum of 200m CPU and 1Gi memory for its container
* The pod should use the nginx image
* The pod-resources namespace has already been created

  • A. Solution:




  • B. Solution:



正解: A

 

質問 16
Exhibit:

Task
A deployment is falling on the cluster due to an incorrect image being specified. Locate the deployment, and fix the problem.

  • A. Pending

正解: A

 

質問 17
Exhibit:

Context
A container within the poller pod is hard-coded to connect the nginxsvc service on port 90 . As this port changes to 5050 an additional container needs to be added to the poller pod which adapts the container to connect to this new port. This should be realized as an ambassador container within the pod.
Task
* Update the nginxsvc service to serve on port 5050.
* Add an HAproxy container named haproxy bound to port 90 to the poller pod and deploy the enhanced pod. Use the image haproxy and inject the configuration located at /opt/KDMC00101/haproxy.cfg, with a ConfigMap named haproxy-config, mounted into the container so that haproxy.cfg is available at /usr/local/etc/haproxy/haproxy.cfg. Ensure that you update the args of the poller container to connect to localhost instead of nginxsvc so that the connection is correctly proxied to the new service endpoint. You must not modify the port of the endpoint in poller's args . The spec file used to create the initial poller pod is available in /opt/KDMC00101/poller.yaml

  • A. Solution:
    apiVersion: apps/v1
    kind: Deployment
    metadata:
    name: my-nginx
    spec:
    selector:
    matchLabels:
    run: my-nginx
    - name: my-nginx
    image: nginx
    ports:
    - containerPort: 90
    This makes it accessible from any node in your cluster. Check the nodes the Pod is running on:
    kubectl apply -f ./run-my-nginx.yaml
    kubectl get pods -l run=my-nginx -o wide
    NAME READY STATUS RESTARTS AGE IP NODE
    my-nginx-3800858182-jr4a2 1/1 Running 0 13s 10.244.3.4 kubernetes-minion-905m
    my-nginx-3800858182-kna2y 1/1 Running 0 13s 10.244.2.5 kubernetes-minion-ljyd
    Check your pods' IPs:
    kubectl get pods -l run=my-nginx -o yaml | grep podIP
    podIP: 10.244.3.4
    podIP: 10.244.2.5
  • B. Solution:
    apiVersion: apps/v1
    kind: Deployment
    metadata:
    name: my-nginx
    spec:
    selector:
    matchLabels:
    run: my-nginx
    replicas: 2
    template:
    metadata:
    labels:
    run: my-nginx
    spec:
    containers:
    - name: my-nginx
    image: nginx
    ports:
    - containerPort: 90
    This makes it accessible from any node in your cluster. Check the nodes the Pod is running on:
    kubectl apply -f ./run-my-nginx.yaml
    kubectl get pods -l run=my-nginx -o wide
    NAME READY STATUS RESTARTS AGE IP NODE
    my-nginx-3800858182-jr4a2 1/1 Running 0 13s 10.244.3.4 kubernetes-minion-905m
    my-nginx-3800858182-kna2y 1/1 Running 0 13s 10.244.2.5 kubernetes-minion-ljyd
    Check your pods' IPs:
    kubectl get pods -l run=my-nginx -o yaml | grep podIP
    podIP: 10.244.3.4
    podIP: 10.244.2.5

正解: B

 

質問 18
Exhibit:

Context
You are tasked to create a ConfigMap and consume the ConfigMap in a pod using a volume mount.
Task
Please complete the following:
* Create a ConfigMap named another-config containing the key/value pair: key4/value3
* start a pod named nginx-configmap containing a single container using the
nginx image, and mount the key you just created into the pod under directory /also/a/path

  • A. Solution:





  • B. Solution:




正解: A

 

質問 19
......


Linux Foundation CKAD 認定試験の出題範囲:

トピック出題範囲
トピック 1
  • ポッドの設計-ジョブとCronJobを理解する
  • 展開とローリング更新を実行する方法を理解する
トピック 2
  • 構成-NetworkPoliciesの基本的な理解を示します
  • サービスを理解します
  • サービスとネットワーキング
トピック 3
  • ラベル、セレクター、アノテーションの使用方法を理解する
  • デプロイメントを理解する方法とロールバックを実行する方法を理解する
トピック 4
  • コアコンセプト-基本ポッドの作成と設定
  • KubernetesAPIプリミティブの理解
トピック 5
  • 可観測性-Kubernetesでのデバッグを理解する
  • コンテナログを理解する
トピック 6
  • アプリケーションのリソース要件を定義する
  • ServiceAccountsを理解する
トピック 7
  • Kubernetesでアプリケーションを監視する方法を理解する
  • LivenessProbesとReadinessProbesを理解する
トピック 8
  • SecurityContextsを理解する
  • ConfigMapsを理解する
  • シークレットを作成して消費する
トピック 9
  • マルチコンテナポッド-マルチコンテナポッドのデザインパターンを理解する

 

試験問題と解答はCKAD学習ガイド問題解答:https://www.jpntest.com/shiken/CKAD-mondaishu

弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

オンラインサポート時間:( UTC+9 ) 9:00-24:00
月曜日から土曜日まで

サポート:現在連絡