LearnThatStack Ace your next interview
Topic · part of Security
Authentication & Authorization.
24 Qs 3 free
Change topic Change
Drill · questions

All questions

of 24
Beginner 5
01

What is the difference between Authentication and Authorization?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Authentication is the process of verifying who a user is, while authorization determines what that authenticated user is allowed to do.

  • Authentication answers "Who are you?" - It's about identity verification
  • Authorization answers "What can you do?" - It's about permissions and access control
    Example:
    When you log into your email account:
  • Authentication: Entering your username/password proves you are the account owner
  • Authorization: The system then determines if you can read emails, send emails, access admin settings, etc.
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

02

What are the main types of authentication factors?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Authentication factors are categorized into three main types:

  1. Something you know (Knowledge factors)
    • Passwords, PINs, security questions
  2. Something you have (Possession factors)
    • Smartphones, hardware tokens, smart cards
  3. Something you are (Inherence factors)
    • Biometrics: fingerprints, facial recognition, retina scans
      Multi-Factor Authentication (MFA) combines two or more of these factors for enhanced security.
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

03

What is session management and why is it important?

Beginner ·

Answer it yourself first - out loud, or typed below.

How should your speech become text?

Listening… your words appear above as you speak - tap Stop when you're done.

Recording · cr - tap Stop & transcribe when you're done.

Transcribing with AI…

Voice:

Keep going - a few more words and AI can grade it.

Last attempt -

Your answer

Re-explain

Session management is the process of securely handling user sessions from login to logout. It maintains the user's authenticated state across multiple requests without requiring re-authentication for each action.
Key components:

  • Session creation: Generated after successful authentication
  • Session storage: Server-side storage of session data
  • Session validation: Checking session validity on each request
  • Session termination: Proper cleanup on logout or timeout
    Importance:
  • Provides seamless user experience
  • Maintains security state
  • Prevents unauthorized access
  • Enables proper audit trails
Rewriting in plainer words…

This answer doesn't lend itself to a diagram - it reads best . No credits were charged.

The model's verdict: “

The interactive diagram is below the answer - jump to diagram ↓

This answer is explained by a shared concept diagram - open

Tailored explanation · switch back to · ·
Point the redraw:
How well did you know this?
AI:

04

What is the principle of least privilege?

Part of Pro
05

What is Multi-Factor Authentication (MFA) and when should it be used?

Part of Pro
Intermediate 11
06

Explain how JWT (JSON Web Tokens) work and their structure.

Part of Pro
07

What is OAuth 2.0 and how does it work?

Part of Pro
08

What is Single Sign-On (SSO) and what are its benefits and challenges?

Part of Pro
09

Explain Role-Based Access Control (RBAC) and its components.

Part of Pro
10

What are Access Control Lists (ACLs) and when are they appropriate?

Part of Pro
11

How should passwords be securely stored and what is salting?

Part of Pro
12

What is CSRF (Cross-Site Request Forgery) and how can it be prevented?

Part of Pro
13

Explain the security considerations for storing authentication tokens.

Part of Pro
14

What is session hijacking and how can it be prevented?

Part of Pro
15

How do you implement secure password reset functionality?

Part of Pro
16

How do you implement and manage API key authentication securely?

Part of Pro
Expert 8
17

What is Attribute-Based Access Control (ABAC) and how does it differ from RBAC?

Part of Pro
18

What is Zero Trust Architecture and how does it impact authentication and authorization?

Part of Pro
19

Explain the OAuth 2.0 PKCE (Proof Key for Code Exchange) extension and why it's important.

Part of Pro
20

What are the security implications of microservices architecture for authentication and authorization?

Part of Pro
21

What is OAuth 2.0 Device Authorization Grant and when would you use it?

Part of Pro
22

How do you handle authentication in distributed systems with eventual consistency?

Part of Pro
23

What are the security considerations when implementing passwordless authentication?

Part of Pro
24

How do you implement secure cross-domain authentication for single-page applications (SPAs)?

Part of Pro

No matches

Try a different filter or search term.

Pro · $10/mo

21 of 24 Authentication & Authorization answers are gated.

Full answers, code samples, AI explanations - simpler, deeper, or as an interactive diagram. Cancel anytime.

  • Full answers + code
  • AI explain - simpler, deeper, or visualized
  • 1,000 AI credits / month
  • Cancel anytime

Change topic

Pick a different technology or stack. Your current topic stays put until you choose a new one.

Technologies
No technologies match “”.
Cross-cutting topics
No topics match “”.
By role
Stacks & frameworks

MEAN

MongoDB, Express, Angular, Node.js

MERN

MongoDB, Express, React, Node.js

LAMP

Linux, Apache, MySQL, PHP

Django

Python Full-Stack Development

Ruby on Rails

Convention over Configuration

JAM

JavaScript, APIs, and Markup

Serverless on AWS

Serverless Architecture on AWS

Cross-cutting topics 43 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.

Flutter Mobile

Flutter Cross-Platform Mobile Development

Cross-cutting topics 44 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.

Spring Boot

Enterprise Java Development

.NET

Microsoft Ecosystem

Vue

Vue.js, Vite, TypeScript, Tailwind, Node.js

Go Backend

Golang, gRPC, PostgreSQL, Redis, RabbitMQ

FastAPI

Python, FastAPI, SQLAlchemy, PostgreSQL

React Native

React, TypeScript, Redux, Firebase

iOS Native

Swift, SwiftUI, UIKit, Firebase

Android Native

Java, Jetpack Compose, Firebase

Web3 / Ethereum

Solidity, Ethereum, Hardhat, Foundry

DevOps / Platform

Docker, Kubernetes, Terraform, CI/CD

Core SWE Interview Prep

Data structures, algorithms, OS, concurrency, networking, git
Big-O & Complexity Analysis Arrays, Strings & Hash Tables Linked Lists, Stacks & Queues Trees, BSTs & Heaps Graphs Sorting, Searching & Recursion Operating Systems Concurrency & Multithreading Networking for Developers Git & Version Control API Design 45 Distributed Systems Fundamentals 34

Cross-cutting topics 43 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.


Cross-cutting topics 45 topics

Interviewers also test these - they're common to every stack, whichever one you picked above.