CKA PDF Dumps 2025 Exam Questions with Practice Test [Q13-Q36]

5/5 - (2 votes)

CKA PDF Dumps 2025 Exam Questions with Practice Test

Dumps for Free CKA Practice Exam Questions

QUESTION 13
You have a Deployment named ‘worker-deployment’ with 10 replicas of a worker container. You need to implement a rolling update strategy that allows for a maximum of 3 pods to be unavailable at any given time during the update process. You also want to ensure that the update process is completed within a specified timeout of 10 minutes. If the update fails to complete within the timeout, the deployment should revert to the previous version. Additionally, you want to implement a pause functionality to temporarily halt the rolling update process.

QUESTION 14
Create an nginx pod and set an env value as ‘var1=val1’. Check the env value existence within the pod

 
 

QUESTION 15
You have two Kubernetes deployments running in different namespaces, ‘namespace-A’ and ‘namespace-B’. You need to allow communication from pods in ‘namespace-A’ to a specific pod in namespace-B’. How can you achieve this using NetworkPolicies?

QUESTION 16
You have a deployment that runs multiple replicas of a web server application. You need to ensure that the Deployment always maintains at least 2 replicas available, even if one or more pods are deleted or become unavailable. How can you configure the Deployment to achieve this using the ‘maxUnavailable’ field in the ‘strategy.rollingUpdate’ section?

QUESTION 17
Monitor the logs of pod foo and:
* Extract log lines corresponding unable-to-access-website
* Write them to/opt/KULM00201/foo

QUESTION 18
For this item, you will have to ssh and complete all tasks on these
nodes. Ensure that you return to the base node (hostname: ) when you have completed this item.
Context
As an administrator of a small development team, you have been asked to set up a Kubernetes cluster to test the viability of a new application.
Task
You must use kubeadm to perform this task. Any kubeadm invocations will require the use of the
–ignore-preflight-errors=all option.
Configure the node ik8s-master-O as a master node. .
Join the node ik8s-node-o to the cluster.

QUESTION 19
You have a Deployment that runs a containerized application. The application requires access to a specific service running in a different namespace. You need to define a NetworkPolicy to allow traffic from the application’s Pods to the service in the other namespace only on port 8080.

QUESTION 20
Change the Image version to 1.15-alpine for the pod you just created and verify the image version is updated.

 
 

QUESTION 21
Score:7%

Context
An existing Pod needs to be integrated into the Kubernetes built-in logging architecture (e. g. kubectl logs). Adding a streaming sidecar container is a good and common way to accomplish this requirement.
Task
Add a sidecar container named sidecar, using the busybox Image, to the existing Pod big-corp-app. The new sidecar container has to run the following command:
/bin/sh -c tail -n+1 -f /va r/log/big-corp-app.log
Use a Volume, mounted at /var/log, to make the log file big-corp-app.log available to the sidecar container.

QUESTION 22
You have a Deployment running a complex application that requires significant resource allocation. How can you optimize the Deployment to use resources efficiently and avoid resource contention with other deployments?

QUESTION 23
You have a deployment named ‘my-app’ running a web application that uses an external database service. You need to configure a ‘ClusterlP’ service to route traffic to the external database service.

QUESTION 24
List all the pods sorted by created timestamp

QUESTION 25
You have a Kubernetes cluster with a service account named “my-sa” in the “my-namespace” namespace. You need to grant the service account the ability to read and write secrets in the “my-namespace” namespace and the ability to create pods in that namespace.
Create a Role and RoleBinding to achieve this using kubectl commands.

QUESTION 26
Score: 4%

Task
Check to see how many nodes are ready (not including nodes tainted NoSchedule ) and write the number to
/opt/KUSC00402/kusc00402.txt

QUESTION 27
Set the node namedek8s-node-1asunavailable and reschedule all thepods running on it.

QUESTION 28
Create a deployment called webapp with image nginx having 5 replicas in it, put the file in /tmp directory with named webapp.yaml

 
 

QUESTION 29
Get the pods with label env=dev and output the labels

QUESTION 30
Your Kubernetes cluster is experiencing a high number of pod restarts in the ‘database-service’ Deployment. The logs show errors related to “connection refused” from the database service. You need to diagnose the issue and resolve it.

QUESTION 31
Create a deployment as follows:
Name: nginx-app
Using container nginx with version 1.11.10-alpine
The deployment should contain 3 replicas
Next, deploy the application with new version 1.11.13-alpine, by performing a rolling update.
Finally, rollback that update to the previous version 1.11.10-alpine.

QUESTION 32
To protect your firewall and network from single source denial of service (DoS) attacks that can overwhelm its packet buffer and cause legitimate traffic to drop, you can configure:

 
 
 
 

QUESTION 33
Create a pod as follows:
* Name:non-persistent-redis
* container Image:redis
* Volume with name:cache-control
* Mount path:/data/redis
The pod should launch in thestagingnamespace and the volumemust notbe persistent.

QUESTION 34
Create a busybox pod that runs the command “env” and save the output to “envpod” file

QUESTION 35
You have a Deployment named ‘mysql-deployment’ running a MySQL database server. You need to store the MySQL root password securely using a Secret. This password should be used by the database server when it starts.

QUESTION 36
Create a busybox pod and add “sleep 3600” command


Check your preparation for Linux Foundation CKA On-Demand Exam: https://www.dumpstorrent.com/CKA-exam-dumps-torrent.html

Related Links: www.stes.tyc.edu.tw myportal.utt.edu.tt myportal.utt.edu.tt myportal.utt.edu.tt www.stes.tyc.edu.tw 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