Summer Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: geek65

CKA Certified Kubernetes Administrator (CKA) Program Questions and Answers

Questions 4

You must connect to the correct host.

Failure to do so may result in a zero score.

[candidate@base] $ ssh Cka000047

Task

A MariaDB Deployment in the mariadb namespace has been deleted by mistake. Your task is to restore the Deployment ensuring data persistence. Follow these steps:

Create a PersistentVolumeClaim (PVC ) named mariadb in the mariadb namespace with the

following specifications:

Access mode ReadWriteOnce

Storage 250Mi

You must use the existing retained PersistentVolume (PV ).

Failure to do so will result in a reduced score.

There is only one existing PersistentVolume .

Edit the MariaDB Deployment file located at ~/mariadb-deployment.yaml to use PVC you

created in the previous step.

Apply the updated Deployment file to the cluster.

Ensure the MariaDB Deployment is running and stable.

Options:

Buy Now
Questions 5

List all the pods sorted by created timestamp

Options:

Buy Now
Questions 6

Create a snapshot of the etcd instance running at https://127.0.0.1:2379, saving the snapshot to the file path /srv/data/etcd-snapshot.db.

The following TLS certificates/key are supplied for connecting to the server with etcdctl:

    CA certificate: /opt/KUCM00302/ca.crt

    Client certificate: /opt/KUCM00302/etcd-client.crt

    Client key: Topt/KUCM00302/etcd-client.key

Options:

Buy Now
Questions 7

List pod logs named “frontend” and search for the pattern “started” and write it to a file “/opt/error-logs”

Options:

Buy Now
Questions 8

List the nginx pod with custom columns POD_NAME and POD_STATUS

Options:

Buy Now
Questions 9

Task Weight: 4%

Task

Scale the deployment webserver to 3 pods.

Options:

Buy Now
Questions 10

Configure the kubelet systemd- managed service, on the node labelled with name=wk8s-node-1, to launch a pod containing a single container of Image httpd named webtool automatically. Any spec files required should be placed in the /etc/kubernetes/manifests directory on the node.

You can ssh to the appropriate node using:

[student@node-1] $ ssh wk8s-node-1

You can assume elevated privileges on the node with the following command:

[student@wk8s-node-1] $ | sudo –i

Options:

Buy Now
Questions 11

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

Options:

Buy Now
Questions 12

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.

Options:

Buy Now
Questions 13

You must connect to the correct host.

Failure to do so may result in a zero score.

[candidate@base] $ ssh Cka000037

Context

A legacy app needs to be integrated into the Kubernetes built-in logging architecture (i.e.

kubectl logs). Adding a streaming co-located container is a good and common way to

accomplish this requirement.

Task

Update the existing Deployment synergy-leverager, adding a co-located container named sidecar using the busybox:stable image to the existing Pod . The new co-located container has to run the following command:

/bin/sh -c "tail -n+1 -f /var/log/syne

rgy-leverager.log"

Use a Volume mounted at /var/log to make the log file synergy-leverager.log available to the co-

located container .

Do not modify the specification of the existing container other than adding the required volume mount .

Failure to do so may result in a reduced score.

Options:

Buy Now
Questions 14

Create a pod that having 3 containers in it? (Multi-Container)

Options:

Buy Now
Questions 15

Create a pod with environment variables as var1=value1.Check the environment variable in pod

Options:

Buy Now
Questions 16

Set the node named ek8s-node-1 as unavailable and reschedule all the pods running on it.

Options:

Buy Now
Questions 17

Score: 7%

Task

Reconfigure the existing deployment front-end and add a port specification named http exposing port 80/tcp of the existing container nginx.

Create a new service named front-end-svc exposing the container port http.

Configure the new service to also expose the individual Pods via a NodePort on the nodes on which they are scheduled.

Options:

Buy Now
Questions 18

Print pod name and start time to “/opt/pod-status” file

Options:

Buy Now
Questions 19

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.

Options:

Buy Now
Questions 20

Create a deployment as follows:

    Name: nginx-app

    Using container nginx with version 1.11.10-alpine

    The deployment should contain 3 replicas

Next, deploy the application with new version 1.11.13-alpine, by performing a rolling update.

Finally, rollback that update to the previous version 1.11.10-alpine.

Options:

Buy Now
Questions 21

Score: 5%

Task

Monitor the logs of pod bar and:

• Extract log lines corresponding to error file-not-found

• Write them to /opt/KUTR00101/bar

Options:

Buy Now
Questions 22

Score: 4%

Task

Scale the deployment presentation to 6 pods.

Options:

Buy Now
Questions 23

You must connect to the correct host.

Failure to do so may result in a zero score.

[candidate@base] $ ssh Cka000051

Context

You manage a WordPress application. Some Pods are not starting because resource requests are too high. Your task Is to prepare a Linux system for Kubernetes . Docker is already installed, but you need to configure it for kubeadm .

Task

Complete these tasks to prepare the system for Kubernetes :

Set up cri-dockerd :

. Install the Debian package

~/cri-dockerd_0.3.9.3-0.ubuntu-jammy_am

d64.deb

Debian packages are installed using

dpkg .

. Enable and start the cri-docker service

Configure these system parameters:

. Set net.bridge.bridge-nf-call-iptables to 1

Options:

Buy Now
Questions 24

Create a pod that echo “hello world” and then exists. Have the pod deleted automatically when it’s completed

Options:

Buy Now
Exam Code: CKA
Exam Name: Certified Kubernetes Administrator (CKA) Program
Last Update: Jun 15, 2025
Questions: 83
CKA pdf

CKA PDF

$29.75  $84.99
CKA Engine

CKA Testing Engine

$35  $99.99
CKA PDF + Engine

CKA PDF + Testing Engine

$47.25  $134.99