Certbus > Linux Foundation > Kubernetes Administrator > CKA > CKA Online Practice Questions and Answers

CKA Online Practice Questions and Answers

Questions 4

SIMULATION Ensure a single instance of pod nginx is running on each node of the Kubernetes cluster where nginx also represents the Image name which has to be used. Do not override any taints currently in place. Use DaemonSet to complete this task and use ds-kusc00201 as DaemonSet name.

Browse 64 Q&As
Questions 5

SIMULATION

Perform the following tasks: Add an init container to hungry-bear (which has been defined in spec file /opt/KUCC00108/pod- spec-KUCC00108.yaml) The init container should create an empty file named /workdir/calm.txt If /workdir/calm.txt is not detected, the pod should exit Once the spec file has been updated with the init container definition, the pod should be created

Browse 64 Q&As
Questions 6

SIMULATION

Create a pod named kucc8 with a single app container for each of the following images running inside (there may be between 1 and 4 images specified): nginx + redis + memcached.

Browse 64 Q&As
Questions 7

SIMULATION

Create and configure the service front-end-service so it's accessible through NodePort and routes to the existing pod named front-end.

Browse 64 Q&As
Questions 8

SIMULATION

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

Browse 64 Q&As
Questions 9

SIMULATION For this item, you will have to ssh to the nodes ik8s-master-0 and ik8s-node-0 and complete all tasks on these nodes. Ensure that you return to the base node (hostname: node-1) 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.

Browse 64 Q&As
Questions 10

Create a namespace called 'development' and a pod with image nginx called nginx on this namespace.

Browse 64 Q&As
Questions 11

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

Browse 64 Q&As
Questions 12

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

Browse 64 Q&As
Questions 13

Get list of all the pods showing name and namespace with a jsonpath expression.

Browse 64 Q&As
Questions 14

List all the pods sorted by name

Browse 64 Q&As
Questions 15

List "nginx-dev" and "nginx-prod" pod and delete those pods

Browse 64 Q&As
Questions 16

CORRECT TEXT

Task

Schedule a pod as follows:

1.

Name: nginx-kusc00401

2.

Image: nginx

3.

Node selector: disk=ssd

Browse 64 Q&As
Questions 17

CORRECT TEXT

Task

Scale the deployment presentation to 6 pods.

Browse 64 Q&As
Questions 18

CORRECT TEXT

Task

Create a new NetworkPolicy named allow-port-from-namespace in the existing namespace echo. Ensure that the new NetworkPolicy allows Pods in namespace my-app to connect to port 9000 of Pods in namespace echo.

Further ensure that the new NetworkPolicy:

1.

does not allow access to Pods, which don't listen on port 9000

2.

does not allow access from Pods, which are not in namespace my-app

Browse 64 Q&As
Exam Code: CKA
Exam Name: Certified Kubernetes Administrator (CKA) Program
Last Update: May 02, 2024
Questions: 64 Q&As

PDF

$45.99

VCE

$49.99

PDF + VCE

$59.99