Interview › Security & DevSecOps
What is RBAC versus ABAC? [Advanced]
Answer
RBAC grants permissions based on roles assigned to users or service accounts. ABAC grants permissions based on attributes such as user department, resource classification, environment, request context, time, or device posture. RBAC is simpler; ABAC is more dynamic and context-aware.
Technical explanation
RBAC works well for stable job functions such as developer, viewer, deployer, or admin.
ABAC is useful when access depends on attributes such as data sensitivity, project ownership, or request source.
Many real systems combine both: role-based entitlements plus attribute conditions.
Hands-on example
Example: RBAC gives the payments-team-deployer role permission to deploy to the payments namespace. ABAC adds a condition that production deploy is allowed only from a protected branch, through approved CI, during a change window, and by the owning team.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Security & DevSecOps interview questions
- What is the difference between authentication and authorization? [Advanced]
- What is certificate management, and how do tools like cert-manager help? [Advanced]
- What are Linux capabilities, and why drop them in containers? [Advanced]
- What are Kubernetes Pod Security Standards (privileged, baseline, restricted)? [Advanced]
- What is the difference between symmetric and asymmetric encryption? [Advanced]
- How do you prevent privilege escalation in a Kubernetes cluster? [Advanced]
- What is encryption at rest versus in transit, and how do you ensure both? [Advanced]
- What is secrets management, and how does HashiCorp Vault work at a high level? [Intermediate]