Try Before You Buy

Download a free sample of any of our exam questions and answers

  • 24/7 customer support, Secure shopping site
  • Free One year updates to match real exam scenarios
  • If you failed your exam after buying our products we will refund the full amount back to you.

Try CKA Exam Valid Dumps with Instant Download Free Updates [Q26-Q44]

Share

Try CKA Exam Valid Dumps with Instant Download Free Updates

CKA Dumps First Attempt Guaranteed Success

NEW QUESTION 26
Check to see how many worker nodes are ready (not including nodes tainted NoSchedule) and write the number to /opt/KUCC00104/kucc00104.txt.

Answer:

Explanation:
See the solution below.
Explanation
solution

 

NEW QUESTION 27
Make the node schedulable by uncordon the node

Answer:

Explanation:
kubectl uncordon node-1 //verify kubectl get no

 

NEW QUESTION 28
Create a busybox pod and add "sleep 3600" command

Answer:

Explanation:
See the solution below.
Explanation
kubectl run busybox --image=busybox --restart=Never -- /bin/sh -c
"sleep 3600"

 

NEW QUESTION 29
Get IP address of the pod - "nginx-dev"

  • A. Kubect1 get po -o wide
    Using JsonPath
    kubect1 get pods
    .items[*]}{.metadata.name}{"\t"}{.status.podIP}{"\n"}{end}'
  • B. Kubect1 get po -o wide
    Using JsonPath
    kubect1 get pods -o=jsonpath='{range
    .items[*]}{.metadata.name}{"\t"}{.status.podIP}{"\n"}{end}'

Answer: B

 

NEW QUESTION 30
Create a Pod nginx and specify a CPU request and a CPU limit of 0.5 and 1 respectively.

  • A. // create a yml file
    kubectl run nginx-pod --image=nginx --restart=Never --dry-run -
    o yaml > nginx-pod.yml
    // add the resources section and create
    vim nginx-pod.yaml
    apiVersion: v1
    kind: Pod
    metadata:
    labels:
    run: nginx
    name: nginx
    spec:
    containers:
    - image: nginx
    name: nginx
    resources:
    requests:
    cpu: "0.4"
    limits:
    cpu: "1"
    restartPolicy: Always
    kubectl apply -f nginx-pod.yaml
    // verify
    kubectl top pod
  • B. // create a yml file
    kubectl run nginx-pod --image=nginx --restart=Never --dry-run -
    o yaml > nginx-pod.yml
    // add the resources section and create
    vim nginx-pod.yaml
    apiVersion: v1
    kind: Pod
    metadata:
    labels:
    run: nginx
    name: nginx
    spec:
    containers:
    - image: nginx
    name: nginx
    resources:
    requests:
    cpu: "0.5"
    limits:
    cpu: "1"
    restartPolicy: Always
    kubectl apply -f nginx-pod.yaml
    // verify
    kubectl top pod

Answer: B

 

NEW QUESTION 31
Perform the following tasks:
* Add an init container to hungry-bear (which has been defined in spec file
/opt/KUCC00108/pod-spec-KUCC00108.yaml)
* The init container should create an empty file named/workdir/calm.txt
* If /workdir/calm.txt is not detected, the pod should exit

Answer:

Explanation:
* Once the spec file has been updated with the init container definition, the pod should be created See the solution below.
Explanation
solution


 

NEW QUESTION 32
Schedule a pod as follows:
* Name: nginx-kusc00101
* Image: nginx
* Node selector: disk=ssd

Answer:

Explanation:
See the solution below.
Explanation
solution


 

NEW QUESTION 33
Score: 5%

Task
From the pod label name=cpu-utilizer, find pods running high CPU workloads and write the name of the pod consuming most CPU to the file /opt/KUTR00401/KUTR00401.txt (which already exists).

Answer:

Explanation:
Solution:
kubectl top -l name=cpu-user -A
echo 'pod name' >> /opt/KUT00401/KUT00401.txt

 

NEW QUESTION 34
Update the deployment with the image version 1.17.4 and verify

  • A. kubectl set image deploy/webapp nginx=nginx:1.17.4
    //Verify
    kubectl describe deploy webapp | grep Image
    kubectl get deploy -o=jsonpath='{range.items [*]}{.[*]}
    {.metadata.name}{"\t"}{.spec.template.spec.containers[*].i
    mage}{"\n"}'
  • B. kubectl set image deploy/webapp nginx=nginx:1.17.4
    //Verify
    kubectl describe deploy webapp | grep Image
    kubectl get deploy -
    {.metadata.name}{"\t"}{.spec.template.spec.containers[*].i
    mage}{"\n"}'

Answer: A

 

NEW QUESTION 35
Create a configmap called cfgvolume with values var1=val1,
var2=val2 and create an nginx pod with volume nginx-volume which
reads data from this configmap cfgvolume and put it on the path
/etc/cfg

  • A. // first create a configmap cfgvolume
    kubectl create cm cfgvolume --from-literal=var1=val1 --fromliteral=var2=val2
    // verify the configmap
    kubectl describe cm cfgvolume
    // create the config map
    kubectl create -f nginx-volume.yml
    vim nginx-configmap-pod.yaml
    apiVersion: v1
    kind: Pod
    - name: nginx-volume
    configMap:
    name: cfgvolume
    containers:
    - image: nginx
    name: nginx
    volumeMounts:
    - name: nginx-volume
    mountPath: /etc/cfg
    restartPolicy: Always
    k kubectl apply -f nginx-configmap-pod.yaml
    / // Verify
    // exec into the pod
    kubectl exec -it nginx -- /bin/sh
    // check the path
    cd /etc/cfg
  • B. // first create a configmap cfgvolume
    kubectl create cm cfgvolume --from-literal=var1=val1 --fromliteral=var2=val2
    // verify the configmap
    kubectl describe cm cfgvolume
    // create the config map
    kubectl create -f nginx-volume.yml
    vim nginx-configmap-pod.yaml
    apiVersion: v1
    kind: Pod
    metadata:
    labels:
    run: nginx
    name: nginx
    spec:
    volumes:
    - name: nginx-volume
    configMap:
    name: cfgvolume
    containers:
    - image: nginx
    name: nginx
    volumeMounts:
    - name: nginx-volume
    mountPath: /etc/cfg
    restartPolicy: Always
    k kubectl apply -f nginx-configmap-pod.yaml
    / // Verify
    // exec into the pod
    kubectl exec -it nginx -- /bin/sh
    // check the path
    cd /etc/cfg

Answer: B

 

NEW QUESTION 36
Change the label for one of the pod to env=uat and list all the pods to verify

Answer:

Explanation:
kubectl label pod/nginx-dev3 env=uat --overwrite kubectl get pods --show-labels

 

NEW QUESTION 37
Create a file called "config.txt" with two values key1=value1
and key2=value2. Then create a configmap named "keyvalcfgmap" andread data from the file "config.txt" and verify that configmap is created correctly

  • A. cat >> config.txt << EOF
    key1=value1
    key2=value2
    EOF
    cat config.txt
    // Create configmap from "config.txt" file
    kubectl create cm keyvalcfgmap --from-file=config.txt
    //Verify
    kubectl get cm keyvalcfgmap -o yaml
  • B. cat >> config.txt << EOF
    key1=value1
    key2=value2
    EOF
    kubectl create cm keyvalcfgmap --from-file=config.txt
    //Verify
    kubectl get cm keyvalcfgmap -o yaml

Answer: A

 

NEW QUESTION 38
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.

Answer:

Explanation:
solution

 

NEW QUESTION 39
Perform the following tasks:
Add an init container to hungry-bear (which has been defined in spec file /opt/KUCC00108/pod-spec-KUC C00108.yaml ) The init container should create an empty file named /workdir/calm.txt If /workdir/calm.txt is not detected, the pod should exit Once the spec file has been updated with the init container definition, the pod should be created

Answer:

Explanation:
solution


 

NEW QUESTION 40
What file type upload is supported as part of the basic WildFire service?

  • A. ELF
  • B. BAT
  • C. PE
  • D. VBS

Answer: C

 

NEW QUESTION 41
Create an nginx pod with containerPort 80 and with a PersistentVolumeClaim "task-pv-claim" and has a mouth path "/usr/share/nginx/html"

  • A. vim nginx-pvc-pod.yaml
    apiVersion: v1
    kind: Pod
    metadata:
    name: task-pv-pod
    spec:
    volumes:
    - name: task-pv-storage
    persistentVolumeClaim:
    claimName: task-pv-claim
    containers:
    - name: task-pv-container
    image: nginx
    ports:
    - containerPort: 80
    name: "http"
    volumeMounts:
    - mountPath: "/usr/share/nginx/html"
    name: task-pv-storage
    kubectl apply -f nginx-pvc-pod.yaml
    // Verify
    kubectl describe po "POD-Name" | grep -i volumes -A5
    Volumes:
    task-pv-storage:
    Type: PersistentVolumeClaim (a reference to a
    PersistentVolumeClaim in the same namespace)
    ClaimName: task-pv-claim
    ReadOnly: false
  • B. vim nginx-pvc-pod.yaml
    apiVersion: v1
    kind: Pod
    metadata:
    name: task-pv-pod
    spec:
    volumes:
    - name: task-pv-storage
    persistentVolumeClaim:
    claimName: task-pv-claim
    containers:
    - name: task-pv-container
    image: nginx
    ports:
    - containerPort: 60
    name: "http"
    volumeMounts:
    - mountPath: "/usr/share/nginx/html"
    name: task-pv-storage
    kubectl apply -f nginx-pvc-pod.yaml
    // Verify
    kubectl describe po "POD-Name" | grep -i volumes -A4
    Volumes:
    task-pv-storage:
    Type: PersistentVolumeClaim (a reference to a
    PersistentVolumeClaim in the same namespace)
    ClaimName: task-pv-claim
    ReadOnly: false

Answer: A

 

NEW QUESTION 42
Create a busybox pod that runs the command "env" and save the output to "envpod" file

Answer:

Explanation:
kubectl run busybox --image=busybox --restart=Never --rm -it -- env > envpod.yaml

 

NEW QUESTION 43
Create a namespace called 'development' and a pod with image nginx called nginx on this namespace.

Answer:

Explanation:
kubectl create namespace development kubectl run nginx --image=nginx --restart=Never -n development

 

NEW QUESTION 44
......

100% Guarantee Download CKA Exam Dumps PDF Q&A: https://www.vce4dumps.com/CKA-valid-torrent.html

Kickstart your Career with Real  Updated Questions: https://drive.google.com/open?id=1LMFc2bMvqBFF-wEYADnNOrB6Tm00jWGX