Online Access Free CKAD Exam Questions

Exam Code:CKAD
Exam Name:Linux Foundation Certified Kubernetes Application Developer Exam
Certification Provider:Linux Foundation
Free Question Number:239
Posted:Aug 30, 2026
Rating
100%

Question 1

You have a Node.js application that runs in a Kubernetes cluster. The application requires access to a MySQL database hosted externally on a different server. Due to security concerns, you cannot directly expose the database to the application pod. Describe how you can implement a network policy to enable secure communication between the application pod and the MySQL database.

Question 2

You are running a critical application in your Kubernetes cluster, and it requires access to sensitive information stored in a secret To ensure the application only accesses the specific data it needs and avoids potential misuse, you need to configure ServiceAccounts With proper permissions to access the secret. Describe the steps involved in creating a ServiceAccount with the least privilege principle to access the secret Additionally, mention the YAML configuration required for the ServiceAccount and Role.

Question 3


Given a container that writes a log file in format A and a container that converts log files from format A to format B, create a deployment that runs both containers such that the log files from the first container are converted by the second container, emitting logs in format B.
Task:
* Create a deployment named deployment-xyz in the default namespace, that:
*Includes a primary
lfccncf/busybox:1 container, named logger-dev
*includes a sidecar Ifccncf/fluentd:v0.12 container, named adapter-zen
*Mounts a shared volume /tmp/log on both containers, which does not persist when the pod is deleted
*Instructs the logger-dev
container to run the command

which should output logs to /tmp/log/input.log in plain text format, with example values:

* The adapter-zen sidecar container should read /tmp/log/input.log and output the data to /tmp/log/output.* in Fluentd JSON format. Note that no knowledge of Fluentd is required to complete this task: all you will need to achieve this is to create the ConfigMap from the spec file provided at /opt/KDMC00102/fluentd-configma p.yaml , and mount that ConfigMap to /fluentd/etc in the adapter-zen sidecar container See the solution below.

Question 4

You are creating a Deployment for a web application that uses a database for its data persistence. You want to scale the deployment horizontally, but you also want to ensure that each pod has access to the same database instance. Explain how you can use a ConfigMap to provide database connection details to each pod.

Question 5

You have a Kustomization file that applies a patch to the 'spec-template-spec-containers-image' field of a Deployment However, you are now using a newer version of Kubernetes and have received warnings about the deprecated 'spec.template.spec' path. How can you update the Kustomization file to use the recommended API path, ensuring the patch still applies correctly?

Add Comments

Your email address will not be published. Required fields are marked *

insert code
Type the characters from the picture.