Cyber Monday 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
2 months 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
1 months ago
It's all about precision and following the instructions to the letter.
upvoted 0 times
...
Justa
2 months ago
I know, we have to be careful to only allow specific operations on specific types of resources.
upvoted 0 times
...
Eva
2 months ago
Yeah, they definitely want us to pay close attention to the details in this task.
upvoted 0 times
...
...
Nina
3 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
1 months ago
Let's make sure we test everything thoroughly before applying these changes.
upvoted 0 times
...
Leah
2 months ago
I think we need to be careful with the new Role and RoleBinding.
upvoted 0 times
...
Wilda
2 months ago
I agree, reducing permissions is crucial for security.
upvoted 0 times
...
...
Ira
3 months ago
I think the tasks provided are clear and will help in securing the cluster.
upvoted 0 times
...
Leatha
3 months ago
I agree, it's important to understand how to manage permissions in Kubernetes.
upvoted 0 times
...
Ira
3 months ago
I find this question about switching cluster context interesting.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77