Exam2pass
0 items Sign In or Register
  • Home
  • IT Exams
  • Guarantee
  • FAQs
  • Reviews
  • Contact Us
  • Demo
Exam2pass > Linux Foundation > Linux Foundation Certifications > CKA > CKA Online Practice Questions and Answers

CKA Online Practice Questions and Answers

Questions 4

SIMULATION For this item, you will have to ssh to the nodes ik8s-master-0 and ik8s-node-0 and complete all tasks on these nodes. Ensure that you return to the base node (hostname: node-1) when you have completed this item. Context

As an administrator of a small development team, you have been asked to set up a Kubernetes cluster to test the viability of a new application.

Task

You must use kubeadm to perform this task. Any kubeadm invocations will require the use of the -- ignore-preflight-errors=all option.

Configure the node ik8s-master-O as a master node. .

Join the node ik8s-node-o to the cluster.

Buy Now

Correct Answer: Check the answer in explanation.

Solution

You must use the kubeadm configuration file located at /etc/kubeadm.conf when initializing your cluster.

You may use any CNI plugin to complete this task, but if you don't have your favourite CNI plugin's manifest URL at hand, Calico is one popular option:

https://docs.projectcalico.org/v3.14/manifests/calico.yaml Docker is already installed on both nodes and apt has been configured so that you can install the required tools.

Questions 5

Create a nginx pod with label env=test in engineering namespace .

Buy Now

Correct Answer: Check the answer in explanation.

kubectl run nginx --image=nginx --restart=Never --labels=env=test --namespace=engineering --dry- run -o yaml > nginx-pod.yaml kubectl run nginx --image=nginx --restart=Never --labels=env=test --namespace=engineering --dry- run -o yaml | kubectl create -n engineering -f YAML File:

apiVersion: v1 kind: Pod metadata: name: nginx namespace: engineering labels: env: test spec: containers:

-name: nginx image: nginx imagePullPolicy: IfNotPresent restartPolicy: Never

kubectl create -f nginx-pod.yaml

Questions 6

List the nginx pod with custom columns POD_NAME and POD_STATUS

Buy Now

Correct Answer: Check the answer in explanation.

Solution

kubectl get po -o=custom-columns="POD_NAME:.metadata.name, POD_STATUS:.status.containerStatuses[].state"

Questions 7

Check the Image version of nginx-dev pod using jsonpath

Buy Now

Correct Answer: Check the answer in explanation.

kubect1 get po nginx-dev -o jsonpath='{.spec.containers[].image}{"\n"}'

Questions 8

List the nginx pod with custom columns POD_NAME and POD_STATUS

Buy Now

Correct Answer: Check the answer in explanation.

Solution

kubectl get po -o=custom-columns="POD_NAME:.metadata.name, POD_STATUS:.status.containerStatuses[].state"

Questions 9

List all the pods sorted by created timestamp

Buy Now

Correct Answer: Check the answer in explanation.

kubect1 get pods--sort-by=.metadata.creationTimestamp

Questions 10

List all the pods showing name and namespace with a json path expression

Buy Now

Correct Answer: Check the answer in explanation.

Solution

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

Questions 11

SIMULATION

Task Monitor the logs of pod bar and: Extract log lines corresponding to error file-not-found

Write them to /opt/KUTR00101/bar

Buy Now

Correct Answer: Check the answer in explanation.

Questions 12

SIMULATION

Task

Check to see how many nodes are ready (not including nodes tainted NoSchedule ) and write the number to /opt/KUSC00402/kusc00402.txt.

Buy Now

Correct Answer: Check the answer in explanation.

Questions 13

SIMULATION

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.

Buy Now

Correct Answer: Check the answer in explanation.

Exam Code: CKA
Exam Name: Linux Foundation Certified Kubernetes Administrator (CKA)
Last Update: Jul 08, 2026
Questions: 64

PDF (Q&A)

$45.99
ADD TO CART

VCE

$49.99
ADD TO CART

PDF + VCE

$59.99
ADD TO CART

Exam2Pass----The Most Reliable Exam Preparation Assistance

There are tens of thousands of certification exam dumps provided on the internet. And how to choose the most reliable one among them is the first problem one certification candidate should face. Exam2Pass provide a shot cut to pass the exam and get the certification. If you need help on any questions or any Exam2Pass exam PDF and VCE simulators, customer support team is ready to help at any time when required.

Home | Guarantee & Policy |  Privacy & Policy |  Terms & Conditions |  How to buy |  FAQs |  About Us |  Contact Us |  Demo |  Reviews

2026 Copyright @ exam2pass.com All trademarks are the property of their respective vendors. We are not associated with any of them.