tokens
AI security interview questions tagged tokens, across every topic.
5 questions · 2 unlocked for you
Concepts behind "tokens"
Explanations of the mechanisms these questions rely on.
Foundational
Context Windows, System Prompts and Chat TemplatesChat templates represent supported messages and roles in a model-specific format. Context limits constrain the current request, while stored history and trained parameters are separate assets. Preserve trusted role assignment, source permissions and required evidence; enforce consequential actions outside the model’s interpretation. How LLM Systems Work
Advanced
Validating JWTs SafelyA JSON Web Token is a signed (sometimes encrypted) set of claims, whose safety depends on explicit verifier policy. Safe validation pins the allowed algorithm to each key, selects keys only from the configured issuer's key set, checks the token type, issuer, audience and time claims, treats header fields such as kid and jku as untrusted input, and keeps different token kinds mutually exclusive. Key rotation needs a schedule that accounts for cache lifetimes, token lifetimes and clock leeway. Identity & Access🔒 Premium