Which mechanism provides stateless authentication and authorization for REST API calls?
Choose an answer
Tap an option to check your answer.
Correct answer: OAuth 2 tokens.
Why this is the answer
OAuth 2 tokens provide stateless authentication and authorization for REST API calls because they are self-contained and carry all necessary information (like user identity and permissions) within the token itself, typically a JSON Web Token (JWT). The server doesn't need to store session state, making it scalable for distributed systems. API keys offer authentication but are generally less secure for authorization and often require additional mechanisms for user context. SSL/TLS certificate encryption secures the communication channel but doesn't handle authentication or authorization of the API caller. Cookie-based session authentication is stateful, as the server must maintain session information associated with the cookie.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed