P.S.ShikenPASSがGoogle Driveで共有している無料の2026 Linux Foundation CKSダンプ:https://drive.google.com/open?id=1fnBllIzdSz8Zq0xfPAD3bQfKLfdRYRR2
どのようにLinux Foundation CKS試験に準備すると悩んでいますか。我々社のCKS問題集を参考した後、ほっとしました。弊社のCKSソフト版問題集はかねてより多くのIT事業をしている人々は順調にLinux Foundation CKS資格認定を取得させます。試験にパースする原因は我々問題集の全面的で最新版です。
| Section | Weight | Objectives |
|---|---|---|
| Monitoring, Logging and Runtime Security | 15% | - Runtime threat detection - Audit logging and monitoring |
| Minimizing Microservice Vulnerabilities | 20% | - Pod security standards - Container isolation and security contexts |
| Cluster Hardening | 15% | - API server security - Authentication and authorization |
| System Hardening | 15% | - Kernel and node security configuration - Host security controls |
| Supply Chain Security | 20% | - Secure CI/CD practices - Image scanning and verification |
| Cluster Setup | 15% | - Secure installation configuration - Hardening cluster components |
IT業界で働いているあなたにとってのLinux FoundationのCKS試験の重要性を知っていますから、我々はあなたを助けられるLinux FoundationのCKSソフトを開発しました。我々はあなたにすべての資料を探して科学的に分析しました。これらをするのはあなたのLinux FoundationのCKS試験を準備する圧力を減少するためです。
質問 # 54
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. How can you do this using container patching tools and update the deployment?
正解:
解説:
Solution (Step by Step) :
1. Use a Container Patching Tool:
- Employ a container patching tool like 'kpatch' or 'image-patcher' that can apply security patches to container images Without rebuilding them. These tools allow 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. Apply the Patch:
- Use the container patching tool to apply the security patch to the vulnerable library within the container image. This involves downloading the patch, modifying the container image's filesystem, and updating the relevant library files.
4. Create a Patched Image:
- The container patching tool will typically 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.
質問 # 55
You are using a managed Kubernetes offering like Google Kubernetes Engine (GKE)- Implement a process to verify the integrity of the GKE platform binaries and components.
正解:
解説:
Solution (Step by Step):
1. Enable node auto-upgrade: Configure your GKE cluster to automatically upgrade nodes to the latest stable version. This ensures that security updates and bug fixes are applied promptly.
bash
gcloud container clusters update my-cluster -release-channel regular
2. Use the gcloud CLI to inspect cluster components: Use the 'gcloud container clusters describe' command to retrieve information about your GKE cluster, including the Kubernetes version, node image, and control plane version. Verify that these versions are up-to-date and consistent with your expectations.
bash
gcloud container clusters describe my-cluster
3. Review GKE release notes: Regularly review the GKE release notes ([https://cloud.google.com/kubernetes-engine/docs/release-notes]
(https://www.google.com/url?sa=E&source=gmail&q=https://cloud.google.com/kubernetes.engine/docs/release-notes)) to stay informed about security updates, bug fixes, and new features.
4. Enable GKE security features: Utilize GKE security features like Shielded GKE Nodes, Container-optimized OS security hardening, and Binary Authorization to enhance the security of your cluster.
5. Monitor GKE security advisories: Subscribe to Google Cloud security advisories and bulletins to stay informed about any potential vulnerabilities or security issues affecting GKE.
質問 # 56
Create a User named john, create the CSR Request, fetch the certificate of the user after approving it.
Create a Role name john-role to list secrets, pods in namespace john
Finally, Create a RoleBinding named john-role-binding to attach the newly created role john-role to the user john in the namespace john. To Verify: Use the kubectl auth CLI command to verify the permissions.
正解:
解説:
se kubectl to create a CSR and approve it.
Get the list of CSRs:
kubectl get csr
Approve the CSR:
kubectl certificate approve myuser
Get the certificate
Retrieve the certificate from the CSR:
kubectl get csr/myuser -o yaml
here are the role and role-binding to give john permission to create NEW_CRD resource:
kubectl apply -f roleBindingJohn.yaml --as=john
rolebinding.rbac.authorization.k8s.io/john_external-rosource-rb created kind: RoleBinding apiVersion: rbac.authorization.k8s.io/v1 metadata:
name: john_crd
namespace: development-john
subjects:
- kind: User
name: john
apiGroup: rbac.authorization.k8s.io
roleRef:
kind: ClusterRole
name: crd-creation
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: crd-creation
rules:
- apiGroups: ["kubernetes-client.io/v1"]
resources: ["NEW_CRD"]
verbs: ["create, list, get"]
質問 # 57
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.
正解:
解説:
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.
質問 # 58
In your Kubernetes cluster, you have a sensitive pod named "sensitive-pod" that you want to isolate from other workloads on the same node. Describe the steps you would take to create a dedicated namespace and restrict the "sensitive-pod" deployment to only run on nodes labeled with a specific label.
正解:
解説:
Solution (Step by Step) :
1. Create a Dedicated Namespace:
- Create a new namespace for the sensitive pod using 'kubectl create namespace sensitive-namespace'
2. Label Nodes:
- Label the nodes where you want the sensitive pod to run with a specific label. For example, label the nodes as 'sensitive=true' using the following command.
bash
kubectl label nodes sensitive-true
- Replace with the actual name of the node you want to label.
3. Create Node Affinity in Deployment:
- Create or update the deployment for "sensitive-pod" with a 'nodeAffinity' rule that restricts the pod to nodes with the 'sensitive=true' label.
4. Deploy the Pod in the New Namespace. - Deploy the "sensitive-pod" deployment into the 'sensitive-namespace' namespace using 'kubectl apply -f sensitive-pod-yaml - The deployment will only be scheduled on nodes with the 'sensitive=true' label.
質問 # 59
......
弊社が提供した部分のCKS資料を試用してから、決断を下ろしてください。もし弊社を選ばれば、CKS100%の合格率を保証でございます。
CKS受験方法: https://www.shikenpass.com/CKS-shiken.html
さらに、ShikenPASS CKSダンプの一部が現在無料で提供されています:https://drive.google.com/open?id=1fnBllIzdSz8Zq0xfPAD3bQfKLfdRYRR2