Authentication and authorization interview questions

Sessions and tokens, JWT validation, refresh rotation, OAuth 2.0 with PKCE, OpenID Connect, password hashing, MFA, API keys, service identity and access control models.

6 quick facts

– interview-ready · 12 questions in this topic

– of 12 tried

Saved on this device. Interview-ready means you got it right on two different days. Guesses and hints count for less.

Questions

  1. Server sessions vs stateless tokensPick the fix
  2. Validating a JWT properlyPredict
  3. Access tokens, refresh tokens and rotationOrder the steps
  4. OAuth 2.0 authorization code with PKCEOrder the steps
  5. OpenID Connect and ID tokensPick the fix
  6. Storing passwordsPredict
  7. MFA and TOTP codesPredict
  8. API keys done rightPick the fix
  1. Authenticating service-to-service callsPick the fix
  2. RBAC, ABAC and resource ownershipPick the fix
  3. Revoking tokens and sessionsPredict
  4. Cookie flags for session securityPick the fix

Practise this topic

Flashcards · 18

Flip, then say if you knew it. Needs JavaScript; every answer is also on its question page.

Quick quiz · 12 questions

One exercise per question, checked as you go. Needs JavaScript.

Mock interview · 2 sets

Timed, out loud, then tick what you covered. Needs JavaScript.

Quick facts

Recall the answer first, then tap Show to check.

Sources: Topic outline informed by System Design Primer by Donne Martin and the Zalando RESTful API Guidelines, both licensed under CC BY 4.0. Every question and answer is written by Best Latest Apps. Credits and license