CKS Web TestEngine demo

Exit VCEDump CKS Linux Foundation Certified Kubernetes Security Specialist (CKS)
Question 7 of 10
0% complete
Q7 Lab

Simulation

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

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

Context:

A PodSecurityPolicy shall prevent the creation of privileged Pods in a specific namespace.

Task:

1. Create a new PodSecurityPolcy named deny-policy, which prevents the creation of privileged Pods.
2. Create a new ClusterRole name deny-access-role, which uses the newly created PodSecurityPolicy deny-policy.
3. Create a new ServiceAccount named psd-denial-sa in the existing namespace development.

Finally, create a new ClusterRoleBindind named restrict-access-bind, which binds the newly created ClusterRole deny-access-role to the newly created ServiceAccount psp-denial-sa

Not auto-scored - compare your configuration against the model answer.

Sign in to mark questions

Sign in to save marked questions and return to this demo.

Sign in