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.

HardSystem Design
91 practiced

Walk me through how you'd build a scalable pipeline to detect API abuse (credential stuffing, scraping, fraud) across hundreds of services and millions of requests per minute. Include data collection and enrichment (geo, ASN, device fingerprint), real-time detection and scoring (streaming feature aggregation, ML models), alerting to SIEM/SOAR, automated blocking/lists and the feedback loop for model updates, while preserving low latency on request paths.

HardSystem Design
56 practiced

Design an audit logging and telemetry schema for APIs to support security investigations and compliance (e.g., GDPR, SOC2). Specify required log fields (principal, action, resource, timestamp, request/response metadata, trace-id), redaction rules, retention policies, storage backends, indexing strategies, sampling, and how to balance forensic needs with cost and privacy.

HardSystem Design
60 practiced

Lay out the API contract and operational controls for partner integrations that will process PII and PCI data. Cover authentication (mutual TLS, OAuth), token lifecycle management, field-level encryption, throttling and quota models, audit trails and logging, data retention and deletion policies, and how you'd demonstrate compliance during pre-sales and onboarding.

EasyTechnical
61 practiced

What is API discovery and inventory, and why is it critical for API security? Describe manual and automated approaches (runtime discovery, CI scanning, OpenAPI catalogs), metadata to track (owner, risk, exposure), and how inventory ties into vulnerability scanning and incident response.

MediumSystem Design
51 practiced

Perform a threat model for an internal REST API that returns user profiles containing PII (name, email, phone, SSN). Identify actors, assets, trust boundaries, and top threats (data exfiltration, broken access controls, excessive data exposure). Prioritize mitigations (authentication, authorization, field-level encryption, logging, least privilege) and propose a remediation roadmap.

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