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.

Preparing for an interview?

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

← All Security & DevSecOps questions