Interview Q&A · questions with model answers

Authorization Interview Questions

Part of the study plan for: Backend Engineer

Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.

  1. Most asked Compare RBAC, ABAC and ReBAC authorization models.

    RBAC grants permissions to roles assigned to users; ABAC evaluates policies over attributes of the user, resource, action and context; ReBAC (relationship-based) derives access from relationships in…

  2. Should an unauthorized request for a resource return 403 or 404?

    Return 404 when revealing the resource's existence would leak information (e.g., private documents, other tenants' IDs); return 403 when the user knows the resource exists but lacks permission for…

  3. What's the difference between feature flags and authorization?

    Feature flags control whether a feature is enabled for a cohort (rollouts, experiments, plans); authorization controls whether a specific user may perform an action on a resource. Plan entitlements…

  4. Should you put roles and permissions inside JWTs?

    Putting coarse roles or scopes in JWTs avoids lookups, but permissions in tokens go stale until the token expires and tokens can bloat. Keep tokens small (identity, tenant, coarse roles/scopes) and…

Was this page helpful?

Report a mistake