ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 42 - CKS discussion

Report
Export

Context

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

Task

Create a new PodSecurityPolicy named prevent-psp-policy,which prevents the creation of privileged Pods.

Create a new ClusterRole named restrict-access-role, which uses the newly created PodSecurityPolicy prevent-psp-policy.

Create a new ServiceAccount named psp-restrict-sa in the existing namespace staging.

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

A.
See the explanation
Answers
A.
See the explanation
Suggested answer: A

Explanation:

asked 18/09/2024
Ian Gothard
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first