Bird
0
0

Which Kubernetes object would you use to grant permissions within a specific namespace?

easy📝 Conceptual Q2 of 15
Kubernetes - RBAC and Security
Which Kubernetes object would you use to grant permissions within a specific namespace?
AClusterRole
BRole
CServiceAccount
DNamespace
Step-by-Step Solution
Solution:
  1. Step 1: Identify namespace-scoped permission object

    A Role is used to define permissions limited to a single namespace.
  2. Step 2: Differentiate from ClusterRole

    ClusterRole is cluster-wide, so it is not limited to one namespace.
  3. Final Answer:

    Role -> Option B
  4. Quick Check:

    Namespace permissions = Role [OK]
Quick Trick: Use Role for namespace permissions, ClusterRole for cluster-wide [OK]
Common Mistakes:
  • Using ClusterRole for namespace-only permissions
  • Confusing ServiceAccount with permission objects
  • Thinking Namespace object grants permissions

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes