Certbus > Linux Foundation > Kubernetes Application Developer > CKAD > CKAD Online Practice Questions and Answers

CKAD Online Practice Questions and Answers

Questions 4

CORRECT TEXT

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:

1.

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

2.

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.

1.

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

2.

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

A. Please check explanations

B. Place Holder

Browse 33 Q&As
Questions 5

CORRECT TEXT

Context

You are tasked to create a ConfigMap and consume the ConfigMap in a pod using a volume mount.

Task

Please complete the following:

1.

Create a ConfigMap named another-config containing the key/value pair: key4/value3

2.

start a pod named nginx-configmap containing a single container using the nginx image, and mount the key you just created into the pod under directory /also/a/path

A. Please check explanations

B. Place Holder

Browse 33 Q&As
Questions 6

CORRECT TEXT Context Anytime a team needs to run a container on Kubernetes they will need to define a pod within which to run the container. Task Please complete the following:

1.

Create a YAML formatted pod manifest

2.

/opt/KDPD00101/podl.yml to create a pod named app1 that runs a container named app1cont using image Ifccncf/arg-output with these command line arguments: -lines 56 -F

3.

Create the pod with the kubect1 command using the YAML file created in the previous step

4.

When the pod is running display summary data about the pod in JSON format using the kubect1 command and redirect the output to a file named /opt/KDPD00101/out1.json

5.

All of the files you need to work with have been created, empty, for your convenience

A. Please check explanations

B. Place Holder

Browse 33 Q&As
Questions 7

CORRECT TEXT

Task:

Update the Pod ckad00018-newpod in the ckad00018 namespace to use a NetworkPolicy allowing the Pod to send and receive traffic only to and from the pods web and db

A. Please check explanations

B. Place Holder

Browse 33 Q&As
Questions 8

CORRECT TEXT

Context You are tasked to create a secret and consume the secret in a pod using environment variables as follow: Task

1.

Create a secret named another-secret with a key/value pair; key1/value4

2.

Start an nginx pod named nginx-secret using container image nginx, and add an environment variable exposing the value of the secret key key1, using COOL_VARIABLE as the name for the environment variable inside the pod

A. Please check explanations

B. Place Holder

Browse 33 Q&As
Questions 9

CORRECT TEXT

Context

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

Task

Please complete the following:

1.

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

2.

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

3.

Roll back the app deployment to the previous version

A. Please check explanations

B. Place Holder

Browse 33 Q&As
Questions 10

CORRECT TEXT

Task:

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

Update the nosql Deployment so that the Pod:

A. Please check explanations

B. Place Holder

Browse 33 Q&As
Questions 11

CORRECT TEXT

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.

A. Please check explanations

B. Place Holder

Browse 33 Q&As
Questions 12

CORRECT TEXT

Task:

A pod within the Deployment named buffalo-deployment and in namespace gorilla is logging errors.

Look at the logs identify errors messages.

Find errors, including User "system:serviceaccount:gorilla:default" cannot list resource "deployment" [...] in the namespace "gorilla"

The buffalo-deployment `S manifest can be found at -/prompt/escargot/buffalo- deployment.yaml

A. Please check explanations

B. Place Holder

Browse 33 Q&As
Questions 13

CORRECT TEXT

Task:

Key3: value1

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

A. Please check explanations

B. Place Holder

Browse 33 Q&As
Questions 14

CORRECT TEXT

Task

A Deployment named backend-deployment in namespace staging runs a web application on port 8081.

A. Please check explanations

B. Place Holder

Browse 33 Q&As
Questions 15

CORRECT TEXT

Context

A web application requires a specific version of redis to be used as a cache.

Task

Create a pod with the following characteristics, and leave it running when complete:

1.

The pod must run in the web namespace.

2.

The namespace has already been created

3.

The name of the pod should be cache

4.

Use the Ifccncf/redis image with the 3.2 tag

5.

Expose port 6379

A. Please check explanations

B. Place Holder

Browse 33 Q&As
Questions 16

CORRECT TEXT

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.

A. Please check explanations

B. Place Holder

Browse 33 Q&As
Questions 17

CORRECT TEXT

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.

1.

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

2.

The pod should use the nginx image

3.

The pod-resources namespace has already been created

A. Please check explanations

B. Place Holder

Browse 33 Q&As
Questions 18

CORRECT TEXT

Task:

Modify the existing Deployment named broker-deployment running in namespace quetzal so that its containers.

The broker-deployment is manifest file can be found at:

A. Please check explanations

B. Place Holder

Browse 33 Q&As
Exam Code: CKAD
Exam Name: Certified Kubernetes Application Developer (CKAD) Program
Last Update: Apr 16, 2024
Questions: 33 Q&As

PDF

$45.99

VCE

$49.99

PDF + VCE

$59.99