Summer Sale - Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: dpt65

CKA Questions and Answers

Question # 6

List all the pods sorted by created timestamp

Full Access
Question # 7

Score: 4%

Task

Set the node named ek8s-node-1 as unavailable and reschedule all the pods running on it.

Full Access
Question # 8

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.

Full Access
Question # 9

Score: 7%

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:

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

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

Full Access
Question # 10

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.

Full Access
Question # 11

Create a pod that echo “hello world” and then exists. Have the pod deleted automatically when it’s completed

Full Access
Question # 12

List the nginx pod with custom columns POD_NAME and POD_STATUS

Full Access
Question # 13

Print pod name and start time to “/opt/pod-status” file

Full Access
Question # 14

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

Full Access
Question # 15

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

Full Access
Question # 16

Get IP address of the pod – “nginx-dev”

Full Access
Question # 17

Score: 13%

Task

A Kubernetes worker node, named wk8s-node-0 is in state NotReady. Investigate why this is the case, and perform any appropriate steps to bring the node to a Ready state, ensuring that any changes are made permanent.

Full Access
Question # 18

Get list of all pods in all namespaces and write it to file “/opt/pods-list.yaml”

Full Access
Question # 19

You must connect to the correct host.

Failure to do so may result in a zero score.

[candidate@base] $ ssh Cka000054

Context:

Your cluster 's CNI has failed a security audit. It has been removed. You must install a new CNI

that can enforce network policies.

Task

Install and set up a Container Network Interface (CNI ) that meets these requirements:

Pick and install one of these CNI options:

· Flannel version 0.26.1

Manifest:

https://github.com/flannel-io/flannel/releases/download/v0.26.1/kube-flannel.yml

· Calico version 3.28.2

Manifest:

https://raw.githubusercontent.com/project calico/calico/v3.28.2/manifests/tigera-operator.yaml

Full Access
Question # 20

You must connect to the correct host.

Failure to do so may result in a zero score.

[candidate@base] $ ssh Cka000060

Task

Install Argo CD in the cluster by performing the following tasks:

Add the official Argo CD Helm repository with the name argo

The Argo CD CRDs have already been pre-installed in the cluster

Generate a template of the Argo CD Helm chart version 7.7.3 for the argocd namespace and save it to ~/argo-helm.yaml . Configure the chart to not install CRDs.

Full Access
Question # 21

You must connect to the correct host.

Failure to do so may result in a zero score.

[candidate@base] $ ssh Cka000022

Task

Reconfigure the existing Deployment front-end in namespace spline-reticulator to expose port 80/tcp of the existing container nginx .

Create a new Service named front-end-svc exposing the container port 80/tcp .

Configure the new Service to also expose the individual Pods via a NodePort .

Full Access
Question # 22

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

Full Access
Question # 23

Scale the deployment webserver to 6 pods.

Full Access
Question # 24

Schedule a Pod as follows:

. Name: kucc1

. App Containers : 2

. Container Name/Images :

    redis

    Memcached

Full Access