Summer Special 60% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: bestdeal

Free Linux Foundation CKA Practice Exam with Questions & Answers

Questions 1

You must connect to the correct host.

Failure to do so may result in a zero score.

[candidate@base] $ ssh Cka000049

Task

Perform the following tasks:

Create a new PriorityClass named high-priority for user-workloads with a value that is one less

than the highest existing user-defined priority class value.

Patch the existing Deployment busybox-logger running in the priority namespace to use the high-priority priority class.

Options:
Linux Foundation CKA Premium Access
Questions 2

Create a pod named kucc8 with a single app container for each of the

following images running inside (there may be between 1 and 4 images specified):

nginx + redis + memcached.

Options:
Questions 3

Create a busybox pod that runs the command “env” and save the output to “envpod” file

Options:
Questions 4

Create a deployment spec file that will:

    Launch 7 replicas of the nginx Image with the labelapp_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.

Options:
Questions 5

Create a deployment as follows:

    Name: nginx-random

    Exposed via a service nginx-random

    Ensure that the service and pod are accessible via their respective DNS records

    The container(s) within any pod(s) running as a part of this deployment should use the nginx Image

Next, use the utility nslookup to look up the DNS records of the service and pod and write the output to /opt/KUNW00601/service.dns and /opt/KUNW00601/pod.dns respectively.

Options:
Questions 6

Get IP address of the pod – “nginx-dev”

Options:
Questions 7

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

Options:
Questions 8

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

Options:
Questions 9

Score: 7%

CKA Question 9

Task

Create a new NetworkPolicy named allow-port-from-namespace in the existing namespace echo. Ensure that the new NetworkPolicy allows Pods in namespace my-app to connect to port 9000 of Pods in namespace echo.

Further ensure that the new NetworkPolicy:

• does not allow access to Pods, which don't listen on port 9000

• does not allow access from Pods, which are not in namespace my-app

Options:
Questions 10

You must connect to the correct host.

Failure to do so may result in a zero score.

[candidate@base] $ ssh Cka000022

Task

Reconfigure the existing Deployment front-end in namespace spline-reticulator to expose port 80/tcp of the existing container nginx .

Create a new Service named front-end-svc exposing the container port 80/tcp .

Configure the new Service to also expose the individual Pods via a NodePort .

Options:
Exam Code: CKA
Certification Provider: Linux Foundation
Exam Name: Certified Kubernetes Administrator (CKA) Program
Last Update: Jul 12, 2025
Questions: 83