InterviewStack.io LogoInterviewStack.io

API Security, Authentication and Authorization Questions

Controlling who can call an API, what they may do, and defending it against abuse. Covers the access-control mechanics: API keys, OAuth 2.0 flows, OpenID Connect, JWT issuance/validation, session vs. token auth, scopes/roles for fine-grained authorization, token lifetime and refresh, mutual TLS, and machine-to-machine vs. user-delegated access. Also covers the adversarial hardening view: input validation, injection and deserialization risks, broken object-level authorization (BOLA), mass assignment, secrets handling, and the OWASP API Security Top 10, plus securing data in transit, preventing enumeration/scraping, and testing APIs for vulnerabilities.

EasyTechnical
69 practiced

Explain the difference between authentication and authorization in the API context. Describe two common authentication methods (JWT bearer tokens and OAuth2 Authorization Code flow) and two authorization models (role-based access control RBAC and attribute-based access control ABAC). For each, give a short example of when it is appropriate.

HardTechnical
56 practiced

Your platform needs to expose both internal and external APIs, and engineering is weighing several authentication approaches (API keys, a couple of OAuth2 flows, mTLS, token introspection) with real differences in developer friction, security posture, and how hard each is to walk back if it goes wrong. As the PM, how would you drive that decision, and how would you sequence the rollout and migration so partner integrations don't break?

HardTechnical
70 practiced

You're asked to stand up the security review program for a new public API platform ahead of its GA launch. Walk through how you'd structure it: which risks you'd prioritize first, what preventative controls you'd put in place before launch, and what you'd keep watching once it's live in production.

That is every published API Security, Authentication and Authorization question for Technical Product Manager so far. Browse the other topics in this category, or practice this one interactively.