BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Linux Foundation Exam CKS Topic 3 Question 64 Discussion

Actual exam question for Linux Foundation's CKS exam
Question #: 64
Topic #: 3
[All CKS Questions]

You can switch the cluster/configuration context using the following command: [desk@cli] $kubectl config use-context prod-account

Context: A Role bound to a Pod's ServiceAccount grants overly permissive permissions. Complete the following tasks to reduce the set of permissions. Task: Given an existing Pod namedweb-podrunning in the namespacedatabase. 1. Edit the existing Role bound to the Pod's ServiceAccounttest-sato only allow performing get operations, only on resources of type Pods. 2. Create a new Role namedtest-role-2in the namespacedatabase, which only allows performingupdateoperations, only on resources of typestatuefulsets. 3. Create a new RoleBinding namedtest-role-2-bindbinding the newly created Role to the Pod's ServiceAccount. Note: Don't delete the existing RoleBinding.

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Kimi
29 days ago
Haha, I bet the exam writers are really testing our attention to detail with this one. Gotta make sure I don't miss any of those specific requirements!
upvoted 0 times
Melda
10 days ago
It's all about precision and following the instructions to the letter.
upvoted 0 times
...
Justa
11 days ago
I know, we have to be careful to only allow specific operations on specific types of resources.
upvoted 0 times
...
Eva
15 days ago
Yeah, they definitely want us to pay close attention to the details in this task.
upvoted 0 times
...
...
Nina
1 months ago
Looks good to me! Reducing the permissions on the Role bound to the ServiceAccount is the way to go. Can't wait to get this one right!
upvoted 0 times
Salome
9 days ago
Let's make sure we test everything thoroughly before applying these changes.
upvoted 0 times
...
Leah
18 days ago
I think we need to be careful with the new Role and RoleBinding.
upvoted 0 times
...
Wilda
30 days ago
I agree, reducing permissions is crucial for security.
upvoted 0 times
...
...
Ira
1 months ago
I think the tasks provided are clear and will help in securing the cluster.
upvoted 0 times
...
Leatha
2 months ago
I agree, it's important to understand how to manage permissions in Kubernetes.
upvoted 0 times
...
Ira
2 months ago
I find this question about switching cluster context interesting.
upvoted 0 times
...

Save Cancel