New 2023 Realistic Free Linux Foundation CKA Exam Dump Questions & Answer [Q24-Q48]

Rate this post

New 2023 Realistic Free Linux Foundation CKA Exam Dump Questions and Answer

CKA Practice Test Engine: Try These 68 Exam Questions

The CKA certification exam is designed to test the knowledge and skills of candidates in various aspects of Kubernetes administration, such as cluster installation and configuration, application deployment and management, networking, security, and troubleshooting. The exam is conducted online and consists of a set of performance-based tasks that require candidates to demonstrate their ability to perform various Kubernetes administration tasks in a time-bound manner.

The Linux Foundation Certified Kubernetes Administrator (CKA) program is a certification designed to test the knowledge and skills of individuals in the field of Kubernetes administration. Kubernetes is one of the most popular container orchestration platforms, and it is widely used by organizations to manage their containerized applications. The CKA program is developed and maintained by the Linux Foundation, which is a non-profit organization that promotes the use of open source technologies.

 

NO.24 Create a deployment named “myapp” that having 2 replicas with
nginx image and expose deployment as service named “myservice”

 
 

NO.25 // Create a configmap
kubectl create configmap redis-config –from-file=/opt/redisconfig
// Verify
kubectl get configmap redis-config -o yaml
// first run this command to save the pod yml
kubectl run redis-pod –image=redis –restart=Always –dry-run
-o yaml > redis-pod.yml
// edit the yml to below file and create
apiVersion: v1
kind: Pod
metadata:
name: redis
spec:
containers:
– name: redis
image: redis
env:
– name: MASTER
value: “true”
ports:
– containerPort: 6379
volumeMounts:
– mountPath: /redis-master-data
name: data
– mountPath: /redis-master
name: config
volumes:
– name: data
emptyDir: {}
– name: config
configMap:
name: example-redis-config

 
 

NO.26 Undo the deployment to the previous version 1.17.1 and verify Image has the previous version

NO.27 List all the pods sorted by name

NO.28 Create a snapshot of the etcd instance running at https://127.0.0.1:2379, saving the snapshot to the file path /srv/data/etcd-snapshot.db.
The following TLS certificates/key are supplied for connecting to the server with etcdctl:
CA certificate: /opt/KUCM00302/ca.crt
Client certificate: /opt/KUCM00302/etcd-client.crt
Client key: Topt/KUCM00302/etcd-client.key

NO.29 Given a partially-functioning Kubernetes cluster, identify symptoms of failure on the cluster.
Determine the node, the failing service, and take actions to bring up the failed service and restore the health of the cluster. Ensure that any changes are made permanently.
You can ssh to the relevant I nodes (bk8s-master-0 or bk8s-node-0) using:
[student@node-1] $ ssh <nodename>
You can assume elevated privileges on any node in the cluster with the following command:
[student@nodename] $ | sudo -i

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

NO.31 Create a nginx pod with label env=test in engineering namespace

NO.32 Configure the kubelet systemd- managed service, on the node labelled with name=wk8s-node-1, to launch a pod containing a single container of Image httpd named webtool automatically. Any spec files required should be placed in the /etc/kubernetes/manifests directory on the node.
You can ssh to the appropriate node using:
[student@node-1] $ ssh wk8s-node-1
You can assume elevated privileges on the node with the following command:
[student@wk8s-node-1] $ | sudo -i

NO.33 Create a Kubernetes secret as follows:
Name: super-secret
password: bob
Create a pod named pod-secrets-via-file, using the redis Image, which mounts a secret named super-secret at
/secrets.
Create a second pod named pod-secrets-via-env, using the redis Image, which exports password as CONFIDENTIAL

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

 
 

NO.35 Make the node schedulable by uncordon the node

NO.36 Check to see how many worker nodes are ready (not including nodes taintedNoSchedule) and write the number to/opt/KUCC00104/kucc00104.txt.

NO.37 Fix a node that shows as non-ready

 
 

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

NO.39 List all the pods showing name and namespace with a json path expression

NO.40 Configure the kubelet systemd-managed service, on the nodelabelled withname=wk8s-node-1, tolaunch a pod containing a singlecontainer of Image automatically. Any spec filesrequired should be placed in the/etc/kubernetes/manifests You canssh to theappropriate node using:
[student@node-1] $ sshwk8s-node-1
You can assume elevatedprivileges on the node with thefollowing command:
[student@wk8s-node-1] $ |sudo -i

NO.41 Create a pod with environment variables as var1=value1.Check the environment variable in pod

NO.42 Create the service as type NodePort with the port 32767 for the nginx pod with the pod selector app: my-nginx

NO.43 Create a pod with image nginx called nginx and allow traffic on port 80

NO.44 Create a nginx pod that will be deployed to node with the label
“gpu=true”

 
 

NO.45 Create PersistentVolume named task-pv-volume with storage 10Gi, access modes ReadWriteMany, storageClassName manual, and volume at /mnt/data and Create a PersistentVolumeClaim of at least 3Gi storage and access mode ReadWriteOnce and verify

 
 

NO.46 From the pod label name=cpu-utilizer, find pods running high CPU workloads and write the name of the pod consuming most CPU to the file /opt/KUTR00102/KUTR00102.txt (which already exists).

NO.47 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 the staging be persistent.

NO.48 What are the differences between using a service versus using an application for Security Policy match?

 
 
 
 

Guaranteed Success in Kubernetes Administrator CKA Exam Dumps: https://www.it-tests.com/CKA.html

         

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