P.S. KaoGuTi在Google Drive上分享了免費的、最新的CKS考試題庫:https://drive.google.com/open?id=1MhHiWNXLkpxVUOvlKFV-Xwvu36ETGkYQ
Linux Foundation CKS認證考試是個機會難得的考試,它是一個在IT領域中非常有價值並且有很多IT專業人士參加的考試。通過Linux Foundation CKS的認證考試可以提高你的IT職業技能。我們的KaoGuTi可以為你提供關於Linux Foundation CKS認證考試的訓練題目,KaoGuTi的專業IT團隊會為你提供最新的培訓工具,幫你提早實現夢想。KaoGuTi有最好品質最新的Linux Foundation CKS認證考試相關培訓資料,能幫你順利通過Linux Foundation CKS認證考試。
CKS考試旨在專為IT專業人員設計,他們對Kubernetes安全性有深刻的理解並負責設計和實施安全的Kubernetes環境。考試涵蓋廣泛的主題,包括Kubernetes安全概念、Kubernetes安全控制、Kubernetes安全最佳實踐以及安全審計和監控。
如果你要購買我們的Linux Foundation的CKS考題資料,KaoGuTi將提供最好的服務和最優質得的品質,我們的認證考試軟體已經取得了廠商和第三方的授權,並且擁有大量的IT業的專業及技術專家,根據客戶的需求,根據大綱開發出的一系列產品,以保證客戶的最大需求,Linux Foundation的CKS考試認證資料具有最高的專業技術含量,可以作為相關知識的專家和學者學習和研究之用,我們提供所有的產品都有部分免費試用,在你購買之前以保證你考試的品質及適用性。
Linux基金會的CKS(Certified Kubernetes Security Specialist)認證考試是為希望展示其保安容器化應用程序和Kubernetes平台專業知識的IT專業人員而設計的。Kubernetes已成為部署和管理容器化應用程序的首選平台,因此,具有扎實的Kubernetes安全最佳實踐知識至關重要。此認證證明候選人具備保安Kubernetes平台和容器化應用程序的必要技能和知識。
問題 #44
You have an Nginx pod deployed in your Kubernetes cluster. You need to set up a PodSecurityPolicy (PSP) that allows the Nginx pod to access only specific network ports and disallows it from accessing other ports. Describe the steps you would take to implement this PSP.
答案:
解題說明:
Solution (Step by Step) :
1. Create PodSecurityPolicy (PSP):
- Define a PodSecurityPolicy (PSP) YAML file. This file will restrict the Nginx pod's network access.
- For example, you could define a PSP that allows the Nginx pod to access ports 80 and 443 (HTTP and HTTPS) but restricts access to all other ports:
2. Apply the PSPI - Apply the PSP YAML file using 'kubectl apply -f nginx-psp.yaml' 3. Bind the PSP to the Nginx Pod: - Update the Nginx deployment or pod definition to include the 'securityContext' field with a reference to the created PSP:
4. Verify the psp: - Check that the Nginx pod is using the PSP by running 'kubectl describe pod ' . You should see the PSP name listed in the "Security Context" section. 5. Test Access: - Verity that the Nginx pod can access ports 80 and 443 but not other ports. You can use tools like 'telnet or 'nc' to test connectivity.
問題 #45
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
答案:
解題說明:
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
}
問題 #46
SIMULATION
Enable audit logs in the cluster, To Do so, enable the log backend, and ensure that
1. logs are stored at /var/log/kubernetes/kubernetes-logs.txt.
2. Log files are retained for 5 days.
3. at maximum, a number of 10 old audit logs files are retained.
Edit and extend the basic policy to log:
1. Cronjobs changes at RequestResponse
2. Log the request body of deployments changes in the namespace kube-system.
3. Log all other resources in core and extensions at the Request level.
4. Don't log watch requests by the "system:kube-proxy" on endpoints or
答案:
解題說明:
See the Explanation belowExplanation:




問題 #47
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).
答案:A
問題 #48
You are running a Kubernetes cluster with a deployment named "my-app" that uses a container image from a public registry. The container image has a vulnerability in a library it uses. You want to apply a security patch to the container image without rebuilding it. Explain how you would implement this using a container patching tool like 'image-patcners and update the deployment.
答案:
解題說明:
Solution (Step by Step) :
1. Install 'image-patchers:
- Install the 'image-patcher' tool on your system or within your Kubernetes cluster. 'image-patcher' is a tool for patching container images without rebuilding thenm It allows you to modify the container image's filesystem and update libraries directly.
2. Identify the Vulnerable Library:
- Use a vulnerability scanner like Trivy to identify the specific vulnerable library within the container image.
3. Patch the Vulnerable Library:
- Use 'image-patcher' to apply the security patch to the vulnerable library within the container image.
- You can use the 'image-patcher apply' command with the patch file and tne container image name to apply the patch.
4. Create a Patched Image:
- 'image-patcher' Will generate a new, patched container image. This patched image will contain the updated library with the security fix applied.
5. Push the Patched Image to a Registry:
- Push the patched image to your private container registry for use in deployments.
6. Update the Deployment
- Update the "my-app" deployment configuration to use the newly created patched image from your private registry.
7. Validate the Patch:
- After updating the deployment, verify that the patch has been successfully applied by running a vulnerability scan on the running container.
問題 #49
......
CKS软件版: https://www.kaoguti.com/CKS_exam-pdf.html
P.S. KaoGuTi在Google Drive上分享了免費的、最新的CKS考試題庫:https://drive.google.com/open?id=1MhHiWNXLkpxVUOvlKFV-Xwvu36ETGkYQ