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 CKA Exam - Topic 1 Question 100 Discussion

Posted by Iraida on May 29, 2026 at 03:03 PM

SIMULATION

Score: 4%

Context

You have been asked to create a new ClusterRole for a deployment pipeline and bind it to a specific ServiceAccount scoped to a specific namespace.

Task

Create a new ClusterRole named deployment-clusterrole, which only allows to create the following resource types:

* Deployment

* StatefulSet

* DaemonSet

Create a new ServiceAccount named cicd-token in the existing namespace app-team1.

Bind the new ClusterRole deployment-clusterrole lo the new ServiceAccount cicd-token , limited to the namespace app-team1.

Suggested Answer: A

Solution:

Task should be complete on node k8s -1 master, 2 worker for this connect use command

[student@node-1] > ssh k8s

kubectl create clusterrole deployment-clusterrole --verb=create --resource=deployments,statefulsets,daemonsets

kubectl create serviceaccount cicd-token --namespace=app-team1

kubectl create rolebinding deployment-clusterrole --clusterrole=deployment-clusterrole --serviceaccount=default:cicd-token --namespace=app-team1


Get Premium CKA Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
21 comments · newest first
NU
Nu 26 days ago
Good idea! Practice makes perfect.
AL
Alonso 1 month ago
I’ll practice it a few more times.
DA
Dahlia 1 month ago
Right! `kubectl create rolebinding` is key.
TH
Therese 1 month ago
Don't forget the binding command!
NU
Nu 2 months ago
And then `kubectl create serviceaccount`.
AL
Alonso 2 months ago
I’d go with `kubectl create clusterrole`.
DA
Dahlia 2 months ago
True, but it's just a few lines of code.
TH
Therese 2 months ago
I think the binding is the hardest part.
NU
Nu 2 months ago
Same here! Just need to remember the syntax.
AL
Alonso 2 months ago
I feel confident about the ClusterRole part.
DA
Dahlia 3 months ago
Agreed, but it's straightforward if you know RBAC.
TH
Therese 3 months ago
This question is tricky.
LI
Lisbeth 3 months ago
Sounds a bit complicated for a beginner, not sure I get it all.
EL
Elke 3 months ago
Just did this last week, super straightforward!
NI
Nickole 3 months ago
Wait, can you really limit a ClusterRole to just one namespace?
SA
Santos 3 months ago
Totally agree, this is a common setup for CI/CD pipelines!
SH
Shaquana 4 months ago
You can create a ClusterRole with specific permissions for resources like Deployment, StatefulSet, and DaemonSet.
FR
Freida 4 months ago
I think I need to double-check how to create a ServiceAccount in a specific namespace. I hope I remember the right command!
RI
Ricki 4 months ago
I feel a bit uncertain about the resource types. Are we sure we only need to allow Deployment, StatefulSet, and DaemonSet?
MA
Marquetta 4 months ago
This seems similar to that practice question where we had to set permissions for a specific namespace. I think I can recall the steps.
NA
Nadine 4 months ago
I remember we practiced creating ClusterRoles, but I’m not sure about the exact syntax for binding it to a ServiceAccount.
0/2000 characters

Save Cancel