Linux Foundation CKS Exam Syllabus Topics:
| Topic | Details |
|---|---|
| Topic 1 |
|
| Topic 2 |
|
| Topic 3 |
|
Reference: https://training.linuxfoundation.org/certification/certified-kubernetes-security-specialist/#exams
The policy of our website
You can download the free trial of Linux Foundation CKS exam dumps before you buy .After you purchase; you will be allowed to free update the CKS dumps questions in one-year. There are 24/7 customer assisting for you in case you encounter some problems when you purchasing. You have the right to full refund or change to other dumps free if you don't pass the exam with our CKS - Certified Kubernetes Security Specialist (CKS) exam dumps.
Instant Download CKS Exam Braindumps: Upon successful payment, Our systems will automatically send the product you have purchased to your mailbox by email. (If not received within 12 hours, please contact us. Note: don't forget to check your spam.)
As a member of the people working in the IT industry, do you have a headache for passing some IT certification exams? Do you feel upset for fail the Linux Foundation CKS dumps actual test? As we know, CKS dumps actual test is related to the IT professional knowledge and experience, it is not easy to get the CKS certification. The difficulty of exam and the lack of time reduce your pass rate. And it will be a great loss for you if you got a bad result in the CKS dumps actual test. How horrible. So it is urgent for you to choose a study appliance, especially for most people participating CKS dumps actual test first time it is very necessary to choose a good training tool to help you. Our DumpsTorrent will be an excellent partner for you to prepare the CKS dumps actual test.
The reasons you choose our DumpsTorrent
First, it provides you with the latest and accurate CKS exam dumps, which are written by professional trainers and IT elites. The CKS dumps questions and answers we offered is based on the questions in the real exam. We guarantee the pass rate of CKS dumps actual test is up to 99%.
Second, comparing to the training institution, DumpsTorrent can ensure you pass the CKS dumps actual test with less time and money. You just need to use spare time to practice the Linux Foundation CKS dumps questions and remember the key knowledge of CKS dumps torrent. The exam will be easy for you. Besides, if you get a bad result in the CKS dumps actual test, we will full refund you to reduce the loss of your money.
Third, we have three versions for you according to your habits. The pdf dumps is easy for you to print out and you can share your CKS exam dumps with your friends and classmates. The test engine appeals to IT workers because it is a simulation of the formal test and you can feel the atmosphere of the CKS dumps actual test. But it only supports the Windows operating system. The online test engine is same as the test engine but you can practice the CKS real dumps in any electronic equipment. You will be allowed to do the CKS certification dumps anytime even without the internet.
DumpsTorrent offers valid CKS exam dumps
As a professional website, DumpsTorrent offer you the latest and valid CKS real dumps and CKS dumps questions, which are composed by our experienced IT elites and trainers. They have rich experience in the CKS dumps actual test and are good at making learning strategy for people who want to pass the CKS dumps actual test. They design the CKS dumps torrent based on the CKS real dumps, so you can rest assure of the latest and accuracy of our CKS exam dumps. Our website has different kind of CKS certification dumps for different companies; you can find a wide range of CKS dumps questions and high-quality of CKS exam dumps. What's more, you just need to spend one or two days to practice the CKS certification dumps if you decide to choose us as your partner. It will be very simple for you to pass the CKS dumps actual test (Certified Kubernetes Security Specialist (CKS)).
Linux Foundation Certified Kubernetes Security Specialist (CKS) Sample Questions:
SIMULATION
Documentation Deployment, Pod, Namespace
You must connect to the correct host . Failure to do so may result in a zero score.
[candidate@base] $ ssh cks000028
Context
You must update an existing Pod to ensure the immutability of its containers.
Task
Modify the existing Deployment named lamp-deployment, running in namespace lamp, so that its containers:
. run with user ID 20000
. use a read-only root filesystem
. forbid privilege escalation
The Deployment's manifest file con be found at /home/candidate/finer-sunbeam/lamp-deployment.yaml.
Correct Answer:
See the Explanation below for complete solution
Explanation:
1) Connect to the correct host
ssh cks000028
sudo -i
2) Use the right kubeconfig (safe in exam)
export KUBECONFIG=/etc/kubernetes/admin.conf
3) Open the provided Deployment manifest
vi /home/candidate/finer-sunbeam/lamp-deployment.yaml
4) Edit ONLY the Pod template security settings (add/modify these fields) Inside:
spec: -> template: -> spec:
4.1 Set container to run as user 20000
Add (or change) under the container securityContext::
securityContext:
runAsUser: 20000
4.2 Make root filesystem read-only
In the SAME container securityContext: ensure:
readOnlyRootFilesystem: true
4.3 Forbid privilege escalation
In the SAME container securityContext: ensure:
allowPrivilegeEscalation: false
✅ The container section should look like this (example - keep your existing image/ports/etc):
spec:
template:
spec:
containers:
- name: <your-container-name>
image: <unchanged>
securityContext:
runAsUser: 20000
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
If there are multiple containers, apply the same securityContext to each container.
Save and exit:
:wq
5) Apply the manifest (updates Deployment -> recreates Pods)
kubectl -n lamp apply -f /home/candidate/finer-sunbeam/lamp-deployment.yaml
6) Wait for rollout
kubectl -n lamp rollout status deployment/lamp-deployment
7) Verify the security settings are live
7.1 Check the Pod is running
kubectl -n lamp get pods -l app=lamp -o wide
(if label differs, just kubectl -n lamp get pods)
7.2 Verify the three fields on a running Pod
Pick the Pod name and run:
POD=$(kubectl -n lamp get pods -o jsonpath='{.items[0].metadata.name}') kubectl -n lamp get pod $POD -o jsonpath='{.spec.containers[0].securityContext.runAsUser}{"\n"}{.spec.containers[0].securityContext.readOnlyRootFilesystem}{"\n"}{.spec.containers[0].securityContext.allowPrivilegeEscalation}{"\n"}' Expected output:
20000
true
false
If the pod fails after readOnlyRootFilesystem=true
Don't change the requirement (task demands it). Usually the app needs writable dirs via volumes, but the task doesn't ask for that-so only adjust if the manifest already has volumes and just needs these securityContext fields.
SIMULATION
Use the kubesec docker images to scan the given YAML manifest, edit and apply the advised changes, and passed with a score of 4 points.
kubesec-test.yaml
apiVersion: v1
kind: Pod
metadata:
name: kubesec-demo
spec:
containers:
- name: kubesec-demo
image: gcr.io/google-samples/node-hello:1.0
securityContext:
readOnlyRootFilesystem: true
Hint: docker run -i kubesec/kubesec:512c5e0 scan /dev/stdin < kubesec-test.yaml
Correct Answer:
See the Explanation belowExplanation:
kubesec scan k8s-deployment.yaml
cat <<EOF > kubesec-test.yaml
apiVersion: v1
kind: Pod
metadata:
name: kubesec-demo
spec:
containers:
- name: kubesec-demo
image: gcr.io/google-samples/node-hello:1.0
securityContext:
readOnlyRootFilesystem: true
EOF
kubesec scan kubesec-test.yaml
docker run -i kubesec/kubesec:512c5e0 scan /dev/stdin < kubesec-test.yaml kubesec http 8080 &
[1] 12345
{"severity":"info","timestamp":"2019-05-12T11:58:34.662+0100","caller":"server/server.go:69","message":"Starting HTTP server on port 8080"} curl -sSX POST --data-binary @test/asset/score-0-cap-sys-admin.yml http://localhost:8080/scan
[
{
"object": "Pod/security-context-demo.default",
"valid": true,
"message": "Failed with a score of -30 points",
"score": -30,
"scoring": {
"critical": [
{
"selector": "containers[] .securityContext .capabilities .add == SYS_ADMIN",
"reason": "CAP_SYS_ADMIN is the most privileged capability and should always be avoided"
},
{
"selector": "containers[] .securityContext .runAsNonRoot == true",
"reason": "Force the running image to run as a non-root user to ensure least privilege"
},
// ...
SIMULATION
Secrets stored in the etcd is not secure at rest, you can use the etcdctl command utility to find the secret value for e.g:- ETCDCTL_API=3 etcdctl get /registry/secrets/default/cks-secret --cacert="ca.crt" --cert="server.crt" --key="server.key" Output
Using the Encryption Configuration, Create the manifest, which secures the resource secrets using the provider AES-CBC and identity, to encrypt the secret-data at rest and ensure all secrets are encrypted with the new configuration.
Correct Answer:
See the Explanation belowExplanation:
ETCD secret encryption can be verified with the help of etcdctl command line utility.
ETCD secrets are stored at the path /registry/secrets/$namespace/$secret on the master node.
The below command can be used to verify if the particular ETCD secret is encrypted or not.
# ETCDCTL_API=3 etcdctl get /registry/secrets/default/secret1 [...] | hexdump -C
SIMULATION
Given an existing Pod named nginx-pod running in the namespace test-system, fetch the service-account-name used and put the content in /candidate/KSC00124.txt Create a new Role named dev-test-role in the namespace test-system, which can perform update operations, on resources of type namespaces.
Create a new RoleBinding named dev-test-role-binding, which binds the newly created Role to the Pod's ServiceAccount ( found in the Nginx pod running in namespace test-system).
Correct Answer:
See the Explanation belowExplanation:


SIMULATION
Create a RuntimeClass named gvisor-rc using the prepared runtime handler named runsc.
Create a Pods of image Nginx in the Namespace server to run on the gVisor runtime class
Correct Answer:
SeetheExplanationbelowExplanation:
Install the Runtime Class for gVisor
{ # Step 1: Install a RuntimeClass
cat <<EOF | kubectl apply -f -
apiVersion: node.k8s.io/v1beta1
kind: RuntimeClass
metadata:
name: gvisor
handler: runsc
EOF
}
Create a Pod with the gVisor Runtime Class
{ # Step 2: Create a pod
cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: Pod
metadata:
name: nginx-gvisor
spec:
runtimeClassName: gvisor
containers:
- name: nginx
image: nginx
EOF
}
Verify that the Pod is running
{ # Step 3: Get the pod
kubectl get pod nginx-gvisor -o wide
}
Viewing page 1 out of 14 pages.
Viewing questions 1-5 out of 66 questions.






