ETExamTower
Q11Kubernetes Fundamentals

In Kubernetes Role-Based Access Control (RBAC), what is the main difference between a Role and a ClusterRole?

← → navigate · a answer
Community votes
B
100% (2)
A
0% (0)
C
0% (0)
D
0% (0)
Discussion · 1
B 1
The correct answer is: B. A Role is namespace-scoped and applies only within a single namespace, while a ClusterRole is cluster-scoped and applies across all namespaces. Simple difference: Role = permissions inside one namespace ClusterRole = permissions across the cluster or for cluster-scoped resources Example: Use Role to allow reading Pods only in the dev namespace. Use ClusterRole to allow reading Nodes, or reading Pods across all namespaces. Answer: B.