Spring Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70track

Free Linux Foundation CKAD Practice Exam with Questions & Answers

Questions 1

CKAD Question 1

Set Configuration Context:

[student@node-1] $ | kubectl

Config use-context k8s

Context

You sometimes need to observe a pod's logs, and write those logs to a file for further analysis.

Task

Please complete the following;

• Deploy the counter pod to the cluster using the provided YAMLspec file at /opt/KDOB00201/counter.yaml

• Retrieve all currently available application logs from the running pod and store them in the file /opt/KDOB0020l/log_Output.txt, which has already been created

Options:
Linux Foundation CKAD Premium Access
Questions 2

CKAD Question 2

Task:

Create a Deployment named expose in the existing ckad00014 namespace running 6 replicas of a Pod. Specify a single container using the ifccncf/nginx: 1.13.7 image

Add an environment variable named NGINX_PORT with the value 8001 to the container then expose port 8001

Options:
Questions 3

CKAD Question 3

Context

Your application’s namespace requires a specific service account to be used.

Task

Update the app-a deployment in the production namespace to run as the restrictedservice service account. The service account has already been created.

Options:
Questions 4

CKAD Question 4

Context

It is always useful to look at the resources your applications are consuming in a cluster.

Task

• From the pods running in namespace cpu-stress , write the name only of the pod that is consuming the most CPU to file /opt/KDOBG030l/pod.txt, which has already been created.

Options:
Questions 5

You must connect to the correct host . Failure to do so may result in a zero score.

[candidate@base] $ ssh ckad00027

Task

A Deployment named app-deployment in namespace prod runs a web application port 0001

A Deployment named app-deployment in namespace prod runs a web application

on port 8081.

The Deployment 's manifest files can be found at

/home/candidate/spicy-pikachu/app-deployment.yaml

Modify the Deployment specifying a readiness probe using path /healthz .

Set initialDelaySeconds to 6 and periodSeconds to 3.

Options:
Questions 6

Context

You must connect to the correct host . Failure to do so may result in a zero score.

[candidate@base] $ ssh ckad00043

A Deployment needs specific RBAC permissions.

Task

First, find the RBAC permissions needed by the scraper Deployment running in the

cute-panda namespace .

it kubectl logs may help you to find the permissions it needs.

Next, create a new ServiceAccount named scraper in the namespace cute-panda.

Options:
Questions 7

CKAD Question 7

Context

As a Kubernetes application developer you will often find yourself needing to update a running application.

Task

Please complete the following:

• Update the app deployment in the kdpd00202 namespace with a maxSurge of 5% and a maxUnavailable of 2%

• Perform a rolling update of the web1 deployment, changing the Ifccncf/ngmx image version to 1.13

• Roll back the app deployment to the previous version

Options:
Questions 8

CKAD Question 8

Set Configuration Context:

[student@node-1] $ | kubectl

Config use-context k8s

Context

A pod is running on the cluster but it is not responding.

Task

The desired behavior is to have Kubemetes restart the pod when an endpoint returns an HTTP 500 on the /healthz endpoint. The service, probe-pod, should never send traffic to the pod while it is failing. Please complete the following:

• The application has an endpoint, /started, that will indicate if it can accept traffic by returning an HTTP 200. If the endpoint returns an HTTP 500, the application has not yet finished initialization.

• The application has another endpoint /healthz that will indicate if the application is still working as expected by returning an HTTP 200. If the endpoint returns an HTTP 500 the application is no longer responsive.

• Configure the probe-pod pod provided to use these endpoints

• The probes should use port 8080

Options:
Questions 9

Context

You must connect to the correct host . Failure to do so may result in a zero score.

!

[candidate@base] $ ssh ckad00028

Task

A Pod within the Deployment named honeybee-deployment and in namespace gorilla is logging errors.

Look at the logs to identify error messages.

Look at the logs to identify error messages.

Find errors, including User

"system:serviceaccount:gorilla:default" cannot list resource "pods" [ ... ] in the

namespace "gorilla"

Update the Deployment

honeybee-deployment to resolve the errors in the logs of the Pod.

The honeybee-deployment 's manifest file can be found at

/home/candidate/prompt-escargot/honey bee-deployment.yaml

Options:
Questions 10

CKAD Question 10

Task

You are required to create a pod that requests a certain amount of CPU and memory, so it gets scheduled to-a node that has those resources available.

• Create a pod named nginx-resources in the pod-resources namespace that requests a minimum of 200m CPU and 1Gi memory for its container

• The pod should use the nginx image

• The pod-resources namespace has already been created

Options: