Genai Applied
Sign in Get my playbook

Track 15 · Security

15.9 API Security & Gateways

20 topics in 4 parts. Use it as a checklist before an interview, or as a map of what to learn next.

  • CCritical
  • HHigh
  • MMedium
  • NNew 2026

01API Authentication Mechanisms Compared5 topics

  • API key, basic auth, OAuth token, mTLS, HMAC signing, IP allowlist, managed identityC
  • For each: what it solves, what it does NOT solve, when to use, when to avoidC
  • An API key is not a user identityC
  • What HMAC request signing adds over TLS aloneH
  • "Non-bearer" credentials and why mTLS is qualitatively differentH

02API Abuse Controls6 topics

  • Rate limiting as a SECURITY control in AI systems, not just a cost controlC
  • Count tokens and cost, not requests; key on the subject, not the IPC
  • The per-pod limiter bug that multiplies your limit by the replica countH
  • CORS vs CSRF — a permission you grant vs a threat you defend againstC
  • BFF reintroduces CSRF: ambient credentials returnH
  • Replay protection, idempotency keys, schema validation and payload limitsH

03API Gateways and Azure APIM6 topics

  • The division of labour: envelope decisions vs data decisionsC
  • validate-jwt with audiences and issuers — the checks people omitC
  • rate-limit-by-key, quota-by-key, ip-filter, size capsH
  • Strip client-supplied identity headers at the edgeC
  • Gateway bypass: any path to the backend that skips itC
  • The backend should authenticate the gateway, not trust the networkH

04Drills & Architecture Exercise 9.83 topics

  • Why isn't APIM enough? (knowledge, path, granularity)C
  • Design partner webhook authentication in five layersC
  • A leaked API key on a ₹8-per-request LLM endpoint — what did the architecture do?C

All 53 modules

Practise it

Knowing it is half.
Saying it is the rest.

Run a realistic voice interview with an AI panel in the Interview Room, then read a scored report on every answer.