Reliable Kubernetes Administrator CKA Dumps PDF Sep 05, 2024 Recently Updated Questions [Q36-Q56]

Share

Reliable Kubernetes Administrator CKA Dumps PDF Sep 05, 2024 Recently Updated Questions

Pass Your Linux Foundation CKA Exam with Correct 68 Questions and Answers

NEW QUESTION # 36
Scale the deploymentwebserverto6pods.

Answer:

Explanation:
See the solution below.
Explanation
solution


NEW QUESTION # 37
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.

Answer:

Explanation:
See the solution below.
Explanation
kubectl run --generator=run-pod/v1 --image=nginx -- labels=env=prod nginx-prod --dry-run -o yaml > nginx-prodpod.yaml Now, edit nginx-prod-pod.yaml file and remove entries like "creationTimestamp: null"
"dnsPolicy: ClusterFirst"
vim nginx-prod-pod.yaml
apiVersion: v1
kind: Pod
metadata:
labels:
env: prod
name: nginx-prod
spec:
containers:
- image: nginx
name: nginx-prod
restartPolicy: Always
# kubectl create -f nginx-prod-pod.yaml
kubectl run --generator=run-pod/v1 --image=nginx --
labels=env=dev nginx-dev --dry-run -o yaml > nginx-dev-pod.yaml
apiVersion: v1
kind: Pod
metadata:
labels:
env: dev
name: nginx-dev
spec:
containers:
- image: nginx
name: nginx-dev
restartPolicy: Always
# kubectl create -f nginx-prod-dev.yaml
Verify :
kubectl get po --show-labels
kubectl get po -l env=prod
kubectl get po -l env=dev


NEW QUESTION # 38
Get list of all the pods showing name and namespace with a jsonpath expression.

Answer:

Explanation:
kubectl get pods -o=jsonpath="{.items[*]['metadata.name' , 'metadata.namespace']}"


NEW QUESTION # 39
Create a deployment as follows:
* Name:nginx-random
* Exposed via a servicenginx-random
* Ensure that the service & podare accessible via theirrespective DNS records
* The container(s) within anypod(s) running as a part of thisdeployment should use thenginxImage Next, use the utilitynslookupto lookup the DNS records of the service &pod and write the output to
/opt/KUNW00601/service.dnsand/opt/KUNW00601/pod.dnsrespectively.

Answer:

Explanation:
See the solution below.
Explanation
Solution:



NEW QUESTION # 40
List all configmap and secrets in the cluster in all namespace and write it to a file /opt/configmap-secret

Answer:

Explanation:
kubectl get configmap,secrets --all-namespaces > /opt/configmap-secret // Verify Cat /opt/configmap-secret


NEW QUESTION # 41
Label a node as app=test and verify

Answer:

Explanation:
kubectl label node node-name app=test // Verify kubectl get no -show-labels kubectl get no -l app=test


NEW QUESTION # 42
Create the deployment redis with image=redis and expose it with "NodePort" service redis-service

  • A. kubectl create deploy redis --image=redis --dry-run -o yaml >
    redis-deploy.yaml
    Edit redis-deploy.yaml file
    name: redis
    spec:
    replicas: 1
    selector:
    matchLabels:
    app: redis
    template:
    metadata:
    labels:
    app: redis
    spec:
    containers:
    - image: redis
    name: redis
    //Creating Service
    kubectl expose deploy redis --type=NodePort --port=6379 --
    target-port=6379 --name redis-service
    // Verify
    kubectl get deploy,svc
  • B. kubectl create deploy redis --image=redis --dry-run -o yaml >
    redis-deploy.yaml
    Edit redis-deploy.yaml file
    vim redis-deploy.yaml
    apiVersion: apps/v1
    kind: Deployment
    metadata:
    labels:
    app: redis
    name: redis
    spec:
    replicas: 1
    selector:
    matchLabels:
    app: redis
    template:
    metadata:
    labels:
    app: redis
    spec:
    containers:
    - image: redis
    name: redis
    //Creating Service
    kubectl expose deploy redis --type=NodePort --port=6379 --
    target-port=6379 --name redis-service
    // Verify
    kubectl get deploy,svc

Answer: B


NEW QUESTION # 43
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/KUTR00102/KUTR00102.txt (which already exists).

Answer:

Explanation:
See the solution below.
Explanation
solution


NEW QUESTION # 44
Task Weight: 4%

Task
Schedule a Pod as follows:
* Name: kucc1
* App Containers: 2
* Container Name/Images:
o nginx
o consul

Answer:

Explanation:
Solution:



NEW QUESTION # 45
Get list of all pods in all namespaces and write it to file "/opt/pods-list.yaml"

Answer:

Explanation:
See the solution below.
Explanation
kubectl get po -all-namespaces > /opt/pods-list.yaml


NEW QUESTION # 46
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
    // 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. // 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}'

Answer: A


NEW QUESTION # 47
List "nginx-dev" and "nginx-prod" pod and delete those pods

Answer:

Explanation:
kubect1 get pods -o wide
kubectl delete po "nginx-dev" kubectl delete po "nginx-prod"


NEW QUESTION # 48
Score: 13%

Task
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.

Answer:

Explanation:
See the solution below.
Explanation
Solution:
sudo -i
systemctl status kubelet
systemctl start kubelet
systemctl enable kubelet


NEW QUESTION # 49
List all the pods sorted by name

Answer:

Explanation:
kubect1 get pods --sort-by=.metadata.name


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

Answer:

Explanation:
kubectl run busybox --image=busybox --restart=Never -- /bin/sh -c "sleep 3600"


NEW QUESTION # 51
Verify certificate expiry date for ca certificate in /etc/kubernetes/pki

Answer:

Explanation:
openssl x509 -in ca.crt -noout -text | grep -i validity -A 4


NEW QUESTION # 52
Create a file:
/opt/KUCC00302/kucc00302.txt that lists all pods that implement service baz in namespace development.
The format of the file should be one pod name per line.

Answer:

Explanation:
See the solution below.
Explanation
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\11 B.JPG

F:\Work\Data Entry Work\Data Entry\20200827\CKA\11 C.JPG

F:\Work\Data Entry Work\Data Entry\20200827\CKA\11 D.JPG


NEW QUESTION # 53
Updates to dynamic user group membership are automatic therefore using dynamic user groups instead of static group objects allows you to:

  • A. respond to changes in user behavior or potential threats without automatic policy changes
  • B. respond to changes in user behavior or potential threats without manual policy changes
  • C. respond to changes in user behavior or potential threats using manual policy changes
  • D. respond to changes in user behavior and confirmed threats with manual policy changes

Answer: B


NEW QUESTION # 54
Monitor the logs of pod foo and:
Extract log lines corresponding
unable-to-access-website
Write them to/opt/KULM00201/foo

Answer:

Explanation:
See the solution below.
Explanation
solution
F:\Work\Data Entry Work\Data Entry\20200827\CKA\1 B.JPG

F:\Work\Data Entry Work\Data Entry\20200827\CKA\1 C.JPG


NEW QUESTION # 55
Configure the kubelet systemd-managed service, on the nodelabelled withname=wk8s-node-1, tolaunch a pod containing a singlecontainer of Image automatically. Any spec filesrequired should be placed in the/etc/kubernetes/manifests You canssh to theappropriate node using:
[student@node-1] $ sshwk8s-node-1
You can assume elevatedprivileges on the node with thefollowing command:
[student@wk8s-node-1] $ |sudo -i

Answer:

Explanation:
See the solution below.
Explanation
solution





NEW QUESTION # 56
......


Cloud Native Computing Foundation (CNCF) Training and Certification

Cloud Native Computing Foundation (CNCF) provides resources, as well as training and certification, to those who want to contribute or learn more about big data technologies. Operating Kubernetes cluster infrastructure is one of the major benefits of Cloud Native Computing. Provider neutral certification from Cloud Native Computing Foundation (CNCF) will offer a lot of opportunities for those who want to be part of the cloud-native revolution. Certifications from Cloud Native Computing Foundation (CNCF) will help the individual to get ahead of other fellow technologists. CNCF CKA exam dumps will be the best choice for any IT professionals who want to achieve a CNCF Certified Kubernetes Administrator certification. Assessment of knowledge of cloud native computing will provide the individual with more value added value. Extra opportunities will be available to individuals who prepare and pass the CNCF Certified Kubernetes Administrator (CKA) exam. Payment of the certification fee is required to take the CNCF Certified Kubernetes Administrator (CKA) exam. Card will be delivered via email to the address provided in the registration form immediately upon successful passing of the exam.

Exact exam details are subject to change. Certification exam details are subject to change. Passsure enables the customer to be reassured of passing the exam by checking exam scores online. Exact exam details are subject to change. Email notifications will be sent to the candidate upon the completion of each exam. Methods of payment accepted include Visa, MasterCard, and American Express. Days and times of certification exams are subject to change. Ready to schedule your exam within 30 days from the time of booking. If a candidate wants to schedule an exam for a date later than the 30-day window, he/she will have to contact Brightwork to negotiate a new date and time. Companies that use Brightwork as their cloud provider can benefit from Brightworks discount rates.

 

Latest 2024 Realistic Verified CKA Dumps: https://www.practicevce.com/Linux-Foundation/CKA-practice-exam-dumps.html

Pass CKA Exam Updated 68 Questions: https://drive.google.com/open?id=1LKOBFVHhrIzzXnV7ntnFUzvELGG-3EEC