ExamGecko
Home / Linux Foundation / CKAD / List of questions
Ask Question

Linux Foundation CKAD Practice Test - Questions Answers

Add to Whishlist

List of questions

Question 1

Report Export Collapse

Context

Linux Foundation CKAD image Question 1 51447 09182024212430000000

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:

• The pod must run in the web namespace.

The namespace has already been created

• The name of the pod should be cache

• Use the Ifccncf/redis image with the 3.2 tag

• Expose port 6379

See the solution below.
See the solution below.
Suggested answer: A
Explanation:

Solution:

Linux Foundation CKAD image Question 1 explanation 51447 09182024212430000000

asked 18/09/2024
ABDOUL RAZAK TIENDREBEOGO
30 questions

Question 2

Report Export Collapse

Context

Linux Foundation CKAD image Question 2 51448 09182024212430000000

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

Task

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

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

See the solution below.
See the solution below.
Suggested answer: A
Explanation:

Solution:

Linux Foundation CKAD image Question 2 explanation 51448 09182024212430000000

Linux Foundation CKAD image Question 2 explanation 51448 09182024212430000000

Linux Foundation CKAD image Question 2 explanation 51448 09182024212430000000

asked 18/09/2024
Derek Steven Schulte
46 questions

Question 3

Report Export Collapse

Context

Linux Foundation CKAD image Question 3 51449 09182024212430000000

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

See the solution below.
See the solution below.
Suggested answer: A
Explanation:

Solution:

Linux Foundation CKAD image Question 3 explanation 51449 09182024212430000000

Linux Foundation CKAD image Question 3 explanation 51449 09182024212430000000

asked 18/09/2024
Martin Ng
46 questions

Question 4

Report Export Collapse

Context

Linux Foundation CKAD image Question 4 51450 09182024212430000000

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

Task

Please complete the following:

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

• 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

See the solution below.
See the solution below.
Suggested answer: A
Explanation:

Solution:

Linux Foundation CKAD image Question 4 explanation 51450 09182024212430000000

Linux Foundation CKAD image Question 4 explanation 51450 09182024212430000000

Linux Foundation CKAD image Question 4 explanation 51450 09182024212430000000

Linux Foundation CKAD image Question 4 explanation 51450 09182024212430000000

Linux Foundation CKAD image Question 4 explanation 51450 09182024212430000000

asked 18/09/2024
Tomasz Kusmierek
36 questions

Question 5

Report Export Collapse

Context

Linux Foundation CKAD image Question 5 51451 09182024212430000000

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.

See the solution below.
See the solution below.
Suggested answer: A
Explanation:

Solution:

Linux Foundation CKAD image Question 5 explanation 51451 09182024212430000000

asked 18/09/2024
Elyse Martinez
45 questions

Question 6

Report Export Collapse

Context

Linux Foundation CKAD image Question 6 51452 09182024212430000000

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 onthe /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

Become a Premium Member for full access
  Unlock Premium Member

Question 7

Report Export Collapse

Context

Linux Foundation CKAD image Question 7 51453 09182024212430000000

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

Become a Premium Member for full access
  Unlock Premium Member

Question 8

Report Export Collapse

Context

Linux Foundation CKAD image Question 8 51454 09182024212430000000

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.

Become a Premium Member for full access
  Unlock Premium Member

Question 9

Report Export Collapse

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:

• Create a YAML formatted pod manifest

/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

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

• 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

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

Linux Foundation CKAD image Question 9 51455 09182024212430000000

Become a Premium Member for full access
  Unlock Premium Member

Question 10

Report Export Collapse

Context

Linux Foundation CKAD image Question 10 51456 09182024212430000000

Task

Create a new deployment for running.nginx with the following parameters;

• Run the deployment in the kdpd00201 namespace. The namespace has already been created

• Name the deployment frontend and configure with 4 replicas

• Configure the pod with a container image of lfccncf/nginx:1.13.7

• Set an environment variable of NGINX__PORT=8080 and also expose that port for the container above

Become a Premium Member for full access
  Unlock Premium Member
Total 32 questions
Go to page: of 4
Search

Related questions