Pre-Summer Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: validbest

Pass the Linux Foundation Kubernetes Application Developer CKAD Questions and answers with ValidTests

Exam CKAD All Questions
Exam CKAD Premium Access

View all detail and faqs for the CKAD exam

Viewing page 2 out of 2 pages
Viewing questions 11-20 out of questions
Questions # 11:

Question # 11

Task:

1) First update the Deployment cka00017-deployment in the ckad00017 namespace:

*To run 2 replicas of the pod

*Add the following label on the pod:

Role userUI

2) Next, Create a NodePort Service named cherry in the ckad00017 nmespace exposing the ckad00017-deployment Deployment on TCP port 8888

Options:

Questions # 12:

Question # 12

Context

A project that you are working on has a requirement for persistent data to be available.

Task

To facilitate this, perform the following tasks:

• Create a file on node sk8s-node-0 at /opt/KDSP00101/data/index.html with the content Acct=Finance

• Create a PersistentVolume named task-pv-volume using hostPath and allocate 1Gi to it, specifying that the volume is at /opt/KDSP00101/data on the cluster's node. The configuration should specify the access mode of ReadWriteOnce . It should define the StorageClass name exam for the PersistentVolume , which will be used to bind PersistentVolumeClaim requests to this PersistenetVolume.

• Create a PefsissentVolumeClaim named task-pv-claim that requests a volume of at least 100Mi and specifies an access mode of ReadWriteOnce

• Create a pod that uses the PersistentVolmeClaim as a volume with a label app: my-storage-app mounting the resulting volume to a mountPath /usr/share/nginx/html inside the pod

Question # 12

Question # 12

Options:

Questions # 13:

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 # 14:

You are asked to prepare a canary deployment for testing a new application release.

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

[candidate@base] $ ssh ckad00023

Modify the Deployments so that:

a maximum number of 10 Pods run in the moose namespace.

20% of the chipmunk-service 's traffic goes to the canary-chipmunk-deployment Pod

(s).

Question # 14

The Service is exposed on NodePort 30000. To test its load- balancing, run

[candidate@ckad00023] $ curl http://localhost:30000/

or open this URL in the remote desktop's browser.

Options:

Questions # 15:

Question # 15

Task:

Create a Pod named nginx resources in the existing pod resources namespace.

Specify a single container using nginx:stable image.

Specify a resource request of 300m cpus and 1G1 of memory for the Pod’s container.

Options:

Questions # 16:

Question # 16

Task:

1) Create a secret named app-secret in the default namespace containing the following single key-value pair:

Key3: value1

2) Create a Pod named ngnix secret in the default namespace.Specify a single container using the nginx:stable image.

Add an environment variable named BEST_VARIABLE consuming the value of the secret key3.

Options:

Questions # 17:

Question # 17

Task:

The pod for the Deployment named nosql in the craytisn namespace fails to start because its container runs out of resources.

Update the nosol Deployment so that the Pod:

1) Request 160M of memory for its Container

2) Limits the memory to half the maximum memory constraint set for the crayfah name space.

Question # 17

Options:

Questions # 18:

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

[candidate@base] $ ssh ckad00029

Task

Modify the existing Deployment named store-deployment, running in namespace

grubworm, so that its containers

    run with user ID 10000 and

    have the NET_BIND_SERVICE capability added

The store-deployment 's manifest file Click to copy

/home/candidate/daring-moccasin/store-deplovment.vaml

Options:

Questions # 19:

Question # 19

Context

You are asked to prepare a Canary deployment for testing a new application release.

Task:

A Service named krill-Service in the goshark namespace points to 5 pod created by the Deployment named current-krill-deployment

Question # 19

1) Create an identical Deployment named canary-kill-deployment, in the same namespace.

2) Modify the Deployment so that:

-A maximum number of 10 pods run in the goshawk namespace.

-40% of the krill-service ‘s traffic goes to the canary-krill-deployment pod(s)

Question # 19

Options:

Questions # 20:

Context

You are asked to allow a Pod to communicate with two other Pods but nothing else.

You must connect to the correct host . Failure to do so may result

in a zero score.

!

[candidate@base] $ ssh ckad000

18

charming-macaw namespace to use a NetworkPolicy allowing the Pod to send and receive traffic only to and from the Pods front and db.

All required NetworkPolicies have already been created.

You must not create, modify or delete any NetworkPolicy while working on this task. You may only use existing NetworkPolicies .

Options:

Viewing page 2 out of 2 pages
Viewing questions 11-20 out of questions