CKS Certified Kubernetes Security Specialist (CKS) Exam

Loading demo links...

Showing 1–3 of 10 questions

Question 1

Graphical user interface, application Description automatically generated

Graphical user interface, text Description automatically generated

Two tools are pre-installed on the cluster's worker node:

sysdig

falco

Using the tool of your choice (including any non pre-installed tool), analyze the container's behavior for at least 30 seconds, using filters that detect newly spawning and executing processes.

Store an incident file at /opt/KSRS00101/alerts/details, containing the detected incidents, one per line, in the following format:

Logo, company name Description automatically generated

The following example shows a properly formatted incident file:

Graphical user interface, text Description automatically generated

Text Description automatically generated

Text Description automatically generated

Answer is in the explanation below.

Question 2

Context:Cluster: prodMaster node: master1Worker node: worker1

You can switch the cluster/configuration context using the following command:

[desk@cli] $ kubectl config use-context prod

Task:Analyse and edit the given Dockerfile (based on the ubuntu:18:04 image)/home/cert_masters/Dockerfile fixing two instructions present in the file being prominent security/best-practice issues.

Analyse and edit the given manifest file/home/cert_masters/mydeployment.yaml fixing two fields present in the file being prominent security/best-practice issues.

Note: Don't add or remove configuration settings; only modify the existing configuration settings, so that two configuration settings each are no longer security/best-practice concerns.Should you need an unprivileged user for any of the tasks, use user nobody with user id 65535

Answer is in the explanation below.

Question 3

Cluster: dev

Master node: master1Worker node: worker1

You can switch the cluster/configuration context using the following command:[desk@cli] $ kubectl config use-context dev

Task:Retrieve the content of the existing secret named adam in the safe namespace.

Store the username field in a file names /home/cert-masters/username.txt, and the password field in a file named /home/cert-masters/password.txt.

1. You must create both files; they don't exist yet.2. Do not use/modify the created files in the following steps, create new temporary files if needed.

Create a new secret names newsecret in the safe namespace, with the following content:Username: dbadminPassword: moresecurepas

Finally, create a new Pod that has access to the secret newsecret via a volume:

Answer is in the explanation below.