Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation CKS Exam - Topic 1 Question 7 Discussion

Posted by Annmarie on May 03, 2022 at 11:48 AM

SIMULATION

Create a PSP that will prevent the creation of privileged pods in the namespace.

Create a new PodSecurityPolicy named prevent-privileged-policy which prevents the creation of privileged pods.

Create a new ServiceAccount named psp-sa in the namespace default.

Create a new ClusterRole named prevent-role, which uses the newly created Pod Security Policy prevent-privileged-policy.

Create a new ClusterRoleBinding named prevent-role-binding, which binds the created ClusterRole prevent-role to the created SA psp-sa.

Also, Check the Configuration is working or not by trying to Create a Privileged pod, it should get failed.

Suggested Answer: A

Get Premium CKS Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
13 comments · newest first
IL
Iluminada 1 year ago
I’m surprised this is even possible!
BO
Bobbie 1 year ago
Wait, does this actually work? I thought there were ways around it.
CY
Cyndy 1 year ago
Agreed, this is a solid approach for security!
VE
Verona 1 year ago
Sounds good, but can it really stop all privileged pods?
ME
Merilyn 1 year ago
Just created a PodSecurityPolicy to block privileged pods!
LA
Laila 1 year ago
I feel like I’ve seen a question like this before, but I’m not sure if I remember the steps in the right order. I hope I can piece it together during the exam.
YA
Yaeko 1 year ago
I’m a bit confused about how to check if the configuration is working. Do we just try to create a privileged pod and see if it fails?
AN
Annita 1 year ago
I think we did a similar question where we had to bind a ClusterRole to a ServiceAccount. I hope I can recall the correct commands during the exam.
RE
Remedios 1 year ago
I remember we practiced creating a PodSecurityPolicy, but I’m not entirely sure about the exact syntax for the YAML file.
BA
Barbra 1 year ago
Hmm, this is a tricky one. I'm not sure if Knowledge Catalog or Watson Explorer might also be able to do this. I'll have to think it through carefully.
AL
Alishia 1 year ago
Hmm, I'm a bit unsure about the differences between Fibre Channel and Gigabit Ethernet cables. I'll need to review that part carefully.
AN
Anisha 1 year ago
Okay, I'm pretty sure the correct answers are Initiation and Continuous Monitoring. Those seem to be the key phases based on what I've learned.
SI
Simona 1 year ago
Overstating the production plan seems risky; I don't think that's how we should solve this issue based on what we studied.
0/2000 characters

Save Cancel