# Role-Based Access Control (RBAC)

> What is RBAC in Kubernetes, and how do you use Roles, ClusterRoles, bindings and ServiceAccounts to secure a cluster?

Canonical: https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-rbac-basics
Last updated: 2026-11-28

Difficulty: Advanced

## Question

What is RBAC in Kubernetes, and how do you use Roles, ClusterRoles, bindings and ServiceAccounts to secure a cluster?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

RBAC, Role, ClusterRole, RoleBinding, ServiceAccount, Least Privilege

Previous: [DaemonSets, Jobs, & CronJobs](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-daemonsets-vs-jobs) · Next: [Get vs. Describe](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-kubectl-get-vs-describe) · [All of Kubernetes & Orchestration](https://www.internhack.in/learn/interview/kubernetes-orchestration)

## More Kubernetes & Orchestration questions

- [Pod Lifecycle States](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-pod-states)
- [Requests vs. Limits](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-resource-requests-limits)
- [Headless Service](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-headless-service)
- [ReplicaSet](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-replica-set-role)
- [Taint Effects](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-taint-effects)
- [Kubeconfig Contexts](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-context-switching)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Kubernetes & Orchestration](https://www.internhack.in/learn/interview/kubernetes-orchestration)
