Bird
0
0

What is the primary purpose of a ClusterRole in Kubernetes?

easy📝 Conceptual Q1 of 15
Kubernetes - RBAC and Security
What is the primary purpose of a ClusterRole in Kubernetes?
ATo define permissions that apply across all namespaces in the cluster
BTo restrict access to a single namespace only
CTo create user accounts in Kubernetes
DTo manage network policies within a namespace
Step-by-Step Solution
Solution:
  1. Step 1: Understand the scope of ClusterRole

    A ClusterRole defines permissions that are cluster-wide or can be used in multiple namespaces.
  2. Step 2: Compare with Role

    A Role is limited to a single namespace, while ClusterRole is not limited to any namespace.
  3. Final Answer:

    To define permissions that apply across all namespaces in the cluster -> Option A
  4. Quick Check:

    ClusterRole scope = cluster-wide [OK]
Quick Trick: ClusterRoles apply cluster-wide, Roles apply namespace-wide [OK]
Common Mistakes:
  • Confusing Role with ClusterRole scope
  • Thinking ClusterRole is namespace-specific
  • Assuming ClusterRole creates users

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes