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 Where should authorization checks live in an application?

    Enforce authorization on the server, as close to the data and business logic as practical, through a central policy layer that every entry point (HTTP, GraphQL resolvers, jobs, admin tools) calls.…

  2. How do you handle authorization in GraphQL APIs?

    Authorize at the resolver or data-access layer for every field and object that needs protection, not just at the top-level query, because clients can reach the same object through many paths.…

  3. How do OAuth scopes relate to user permissions in an API?

    Scopes limit what a client application may do with a token; user permissions limit what the human may do. The effective permission is the intersection: the token must have the scope and the user…

  4. Is it enough to enforce authorization at an API gateway?

    No. A gateway can authenticate tokens and enforce coarse rules (scopes, rate limits, route access), but object-level and business-rule authorization requires domain data that only the service has,…

  5. How should the frontend handle permissions?

    The frontend should fetch the user's effective permissions (or capabilities per resource) from the backend to show or hide UI, but always assume the server enforces the real checks. Never ship…

  6. How does Postgres Row-Level Security work?

    RLS attaches policies to a table that filter which rows a session can read or modify, typically using a session variable such as current_setting('app.tenant_id'); queries automatically include the…

  7. How does cloud IAM (AWS/GCP/Azure) authorization work at a high level?

    Principals (users, roles, service accounts) get policies that allow or deny actions on resources, optionally with conditions; requests are evaluated against identity policies, resource policies and…

  8. How do plan limits (quotas) relate to authorization?

    Quotas and plan entitlements decide whether a tenant may use a feature or how much (seats, API calls, storage). Enforce them server-side alongside permissions, with clear errors (402/403/429) and…

Was this page helpful?

Report a mistake