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 43 Discussion

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

Given an existing Pod named nginx-pod running in the namespace test-system, fetch the service-account-name used and put the content in /candidate/KSC00124.txt

Create a new Role named dev-test-role in the namespace test-system, which can perform update operations, on resources of type namespaces.

Create a new RoleBinding named dev-test-role-binding, which binds the newly created Role to the Pod's ServiceAccount ( found in the Nginx pod running in namespace test-system).

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

0/2000 characters
Mila
4 months ago
Don't forget to check the permissions on the Role, super important!
upvoted 0 times
...
Alecia
4 months ago
Just did this yesterday, works like a charm!
upvoted 0 times
...
Ronny
4 months ago
Wait, can you really bind a Role to a Pod's ServiceAccount like that? Seems risky.
upvoted 0 times
...
Karan
4 months ago
Totally agree, that's the right command!
upvoted 0 times
...
Gussie
4 months ago
The service account name can be found using `kubectl get pod nginx-pod -n test-system -o=jsonpath='{.spec.serviceAccountName}'`.
upvoted 0 times
...
Elise
5 months ago
I feel like I’ve seen a question like this before, but I’m worried I might mix up the namespace and the service account details.
upvoted 0 times
...
Douglass
5 months ago
For the Role creation, I think we need to specify the verbs and resources, but I’m a bit confused about the exact format for the YAML file.
upvoted 0 times
...
Jettie
5 months ago
This question seems similar to one we practiced where we had to create a Role and RoleBinding. I hope I can recall the syntax correctly.
upvoted 0 times
...
Freeman
5 months ago
I think I remember how to fetch the service account name from the pod, but I'm not entirely sure about the exact command to use.
upvoted 0 times
...
Dyan
5 months ago
Wait, what's the namespace for the nginx-pod again? I need to make sure I create the Role and RoleBinding in the correct namespace. Let me double-check that detail.
upvoted 0 times
...
Vi
5 months ago
No problem, I've got this. First, I'll use the `kubectl get pod` command to find the service-account-name for the nginx-pod. Then, I'll create the new Role and RoleBinding using the `kubectl create role` and `kubectl create rolebinding` commands.
upvoted 0 times
...
Carman
5 months ago
Hmm, I'm a bit unsure about the second part. Creating a new Role and RoleBinding seems a bit tricky. I'll need to review my notes on RBAC to make sure I do this correctly.
upvoted 0 times
...
Christiane
5 months ago
Okay, this looks like a straightforward Kubernetes question. I'll start by fetching the service-account-name used by the nginx-pod and saving it to the specified file.
upvoted 0 times
...
Quentin
5 months ago
I'm feeling pretty confident about this one. Contracts are what define an agent's capabilities and responsibilities, so that's the core connection.
upvoted 0 times
...
Dottie
6 months ago
Hmm, this seems like a tricky one. I'll need to think through the relationships carefully to make sure I get the right approach.
upvoted 0 times
...
Tawanna
6 months ago
Okay, let me think this through step-by-step. The Copy/Monitor tool is used for, well, copying and monitoring elements. The options given are Grids, Levels, Walls, and Windows. I know Grids, Levels, and Windows are all common element categories, but I'm not sure about Walls. I'll have to go with my best guess on this one.
upvoted 0 times
...
Bev
6 months ago
I think the requirement for User Group 1 was pretty high, possibly closer to 512 GB of RAM based on what I studied.
upvoted 0 times
...
Katie
10 months ago
I bet the exam writers are feeling pretty clever with this one. But I'm not going to fall for their tricks! Bring it on!
upvoted 0 times
Socorro
9 months ago
User 3
upvoted 0 times
...
Christoper
9 months ago
User 2
upvoted 0 times
...
Garry
9 months ago
User 1
upvoted 0 times
...
Coleen
9 months ago
User 3
upvoted 0 times
...
Elly
10 months ago
User 2
upvoted 0 times
...
Rolande
10 months ago
User 1
upvoted 0 times
...
...
Rueben
11 months ago
Eve
upvoted 0 times
Edison
10 months ago
Make sure to bind the Role to the Pod's ServiceAccount in the namespace test-system.
upvoted 0 times
...
Gerald
10 months ago
After that, we can create a new RoleBinding named dev-test-role-binding.
upvoted 0 times
...
Lonny
10 months ago
Yes, we should create a new Role named dev-test-role next.
upvoted 0 times
...
Precious
10 months ago
I think we need to fetch the service-account-name used in the nginx-pod first.
upvoted 0 times
...
...
Evelynn
11 months ago
I'm going to start by examining the existing Pod and service account.
upvoted 0 times
...
Selma
11 months ago
I agree, but I believe with the right approach we can figure it out.
upvoted 0 times
...
Evelynn
11 months ago
I think the question is quite challenging.
upvoted 0 times
...

Save Cancel