Latest CKAD Pass Guaranteed Exam Dumps Certification Sample Questions [Q102-Q124]

Rate this post

Latest CKAD Pass Guaranteed Exam Dumps Certification Sample Questions

New CKAD Test Materials & Valid CKAD Test Engine

Linux Foundation CKAD Exam Syllabus Topics:

Section Weight Objectives
Topic 1: Application Environment, Configuration and Security 25% – ServiceAccounts
– ConfigMaps and Secrets
– Understand authentication, authorization and admission control
– SecurityContexts
– Discover and use resources that extend Kubernetes (CRD, Operators)
– Understanding and defining resource requirements, limits and quotas
Topic 2: Application Observability and Maintenance 15% – Utilize container logs
– Debugging in Kubernetes
– Understand API deprecation policies
– Use built-in CLI tools to monitor Kubernetes applications
– Implement probes and health checks
Topic 3: Application Deployment 20% – Understand Deployments and how to perform rolling updates
– Kustomize
– Use Kubernetes primitives to implement common deployment strategies (e.g., blue/green or canary)
– Use the Helm package manager to deploy existing packages
Topic 4: Services and Networking 20% – Provide and troubleshoot access to applications via services
– Use Ingress rules to expose applications
– Demonstrate basic understanding of NetworkPolicies
Topic 5: Application Design and Build 20% – Utilize persistent and ephemeral volumes
– Understand multi-container Pod design patterns (e.g., sidecar, init and others)
– Choose and use the right workload resource (Deployment, DaemonSet, CronJob, etc.)
– Define, build and modify container images

 

NO.102 You are running a web application in a Kubernetes cluster. You have a deployment named ‘web- app’ with two replicas. You need to implement a Network Policy that allows only traffic from pods with the label app: database’ to access the ‘web-app’ deployment on port 8080. You also need to block all other traffic to the ‘web-app’ deployment.

NO.103 Refer to Exhibit.

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

NO.104 You are developing a Kubernetes application that requires dynamic configuration updates. You decide to utilize ConfigMaps to manage these configurations. You have a ConfigMap named ‘app-config’ containing the following configuration:

Your application retrieves these configuration values from the ‘app-config’ ConfigMap. You need to update the ‘database_password’ value without restarting the application pods. How can you achieve this?

NO.105 You have a Kubernetes cluster With several deployments using secrets for sensitive information. You need to implement a mechanism to ensure that these secrets are rotated regularly to enhance security. Explain how you can achieve this using Kubernetes native features, and provide a detailed example demonstrating the process of secret rotation for a deployment called “myapp” which utilizes a secret named “myapp-secret”.

NO.106 Context

Context
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

NO.107 You have a multi-container Pod that needs to perform some initialization tasks before the main application containers Stan. These tasks involve setting up a database connection, downloading a configuration file, or running some pre-flight checks. Design a Pod configuration that utilizes an init container to handle these tasks before tne main application containers start Ensure that your solution includes the necessary steps to handle potential errors encountered during the initialization process.

NO.108 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

NO.109

Task
A deployment is falling on the cluster due to an incorrect image being specified. Locate the deployment, and fix the problem.

NO.110

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

NO.111 You must connect to the correct host . Failure to do so may result in a zero score.
[candidate@base] $ ssh ckad00033
Task
A Dockerfile has been prepared at /home/candidate/build/Dockerfile.
Using the prepared Dockerfile, build a container image with the name macaque and tag 1.2. You may install and use the tool of your choice.
Multiple image builders and tools have been pre-installed in the base system, including: docker, skopeo, buildah, img , and podman.
Please do not push the built image to a registry, run a container, or otherwise consume it.
Using the tool of your choice, export the built container image in OCI or Docker image format and store it at
/home/candidate/macaque-1.2.tar.

NO.112 You are developing a new application that requires access to multiple services running in different namespaces. To simplify the configuration and ensure that the application can easily discover these services, you want to use a ServiceAccount with a cluster-scoped Role that grants access to services across namespaces.

NO.113 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

NO.114 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?

NO.115

Task:
A Dockerfile has been prepared at -/human-stork/build/Dockerfile
1) Using the prepared Dockerfile, build a container image with the name macque and lag 3.0. You may install and use the tool of your choice.

2) Using the tool of your choice export the built container image in OC-format and store it at -/human stork
/macque 3.0 tar

NO.116

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.

NO.117 You need to implement a mechanism for automatically rolling out new versions of your application pods. This process should be triggered by a change in tne application’s container image tag in a Docker Hub repository.

NO.118 You’re working on a Kubernetes application that involves retrieving data from a database. You have a Deployment With multiple pods, each accessing the database directly. To improve the application’s performance and reliability, you want to implement an adapter pattern that introduces a service layer to handle database interactions. This layer should be responsible for connection pooling, caching, and error handling, making the application more resilient to database outages.

NO.119 You’re developing a Kubernetes application that requires a custom resource definition (CRD) to manage the configuration of your application. You need to ensure that only authorized users or groups can create or modify instances of this custom resource. How would you configure security contexts for the CRD to achieve this?

NO.120 You have a Deployment named ‘wordpress-deployment’ that runs 3 replicas of a WordPress container. The container image is pulled from a private registry with authentication credentials stored in a secret called ‘registry-credentials’ _ Implement a strategy to ensure that only one replica of the Deployment is updated at a time, and the update process is triggered automatically whenever a new image is pushed to the private registry with the tag ‘wordpress:latest’

NO.121 Context

Task
A deployment is falling on the cluster due to an incorrect image being specified. Locate the deployment, and fix the problem.

NO.122 You must connect to the correct host . Failure to do so may result in a zero score.
[candidate@base] $ ssh ckad00032
The Pod for the Deployment named nosql in the haddock namespace fails to start because its Container runs out of resources.
Update the nosql Deployment so that the Container :
* requests 128Mi of memory
* limits the memory to half the maximum memory constraint set for the haddock namespace See the Explanation below for complete solution.

NO.123

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

NO.124 You are building a Kubernetes application tnat requires persistent storage for its dat a. The application needs to be able to access the data even if the pod is restarted or deleted. You have a PersistentVolumeClaim (PVC) defined for this purpose.


CKAD Sample with Accurate & Updated Questions: https://www.test4engine.com/CKAD_exam-latest-braindumps.html

         

Related Links: myportal.utt.edu.tt myportal.utt.edu.tt www.stes.tyc.edu.tw myportal.utt.edu.tt myportal.utt.edu.tt myportal.utt.edu.tt

Leave a Reply

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

Enter the text from the image below