1,849+ Production-Tested Master Interview Questions and Deep-Dive Answers across AI Engineering & LLM Architecture, Angular 2-19, Core React, React 18/19, Core JavaScript Internals, System Design & Distributed Architecture, Web Security & OWASP, DevOps & Kubernetes, Cloud Infrastructure, Backend, Databases, and Algorithms.
π Interactive Web Portal: https://learn-interview-questions.vercel.app
| Track | Focus Tech Stack | Questions | Link |
|---|---|---|---|
| Track 1: Complete Angular Master | Enterprise Bank: 283 Qs: Angular 2-19, Signals, Control Flow, Directives, DI, RxJS, NgRx | 283 | Open Track 1 |
| Track 2: Complete React Master | Full Stack Bank: 445 Qs: React 18/19, JSX, Fiber, Hooks, Redux, Router v6, SSR, Legacy Internals | 445 | Open Track 2 |
| Track 3: Databases & System Design | PostgreSQL, MySQL, ACID, Indexing, MongoDB, DynamoDB, Redis, Scalability | 60 | Open Track 3 |
| Track 4: Backend Python | Python 3.12+, CPython Internals, AsyncIO, FastAPI, SQLAlchemy 2.0, Celery | 65 | Open Track 4 |
| Track 5: Backend Node.js | Node.js Runtime, V8, Libuv Event Loop, Streams, Buffers, Express, Fastify | 60 | Open Track 5 |
| Track 6: AWS Cloud Architecture | AWS Well-Architected, VPC, Fargate, Lambda, S3, Aurora, IAM, KMS, SQS | 65 | Open Track 6 |
| Track 7: Data Structures & Algorithms | Multi-Language: Python 3, Java, C++, TypeScript (Blind 75, NeetCode 150) | 100 | Open Track 7 |
| Track 8: Core JavaScript Internals | Core Language Bank: 521 Qs: Prototypes, Closures, Event Loop, ES6+, Web APIs, V8 | 521 | Open Track 8 |
| Track 9: Behavioral, HR & Leadership | General Intro, STAR Method (S-T-A-R), Incident Post-Mortems, Culture, Negotiation | 50 | Open Track 9 |
| Track 10: System Design & Distributed Systems | Distributed Trade-offs, TinyURL, Rate Limiter, WhatsApp, Twitter, Raft, Back-of-the-Envelope | 50 | Open Track 10 |
| Track 11: DevOps, Containers & Kubernetes | Docker Internals, Kubernetes Control Plane, CNI/CSI, HPA/Karpenter, GitOps, CI/CD, Terraform, SRE | 50 | Open Track 11 |
| Track 12: Web Security & OWASP Top 10 | OWASP Top 10, BOLA/IDOR, XSS, CSRF, SSRF, CSP Nonces, JWT, OAuth2 PKCE, Cryptography | 50 | Open Track 12 |
| Track 13: AI Engineering & LLM Architecture | RAG, Vector Search, PagedAttention/vLLM, KV Cache, Autonomous Agents, MCP, LoRA & DPO | 50 | Open Track 13 |
| TOTAL | Full-Stack, Cloud, AI Systems, Security, DevOps & System Design Mastery | 1,849 | β |
- Core Angular Architecture, TypeScript & Components (Q1 - Q30): Angular vs AngularJS, TypeScript fundamentals, architecture overview, components & directives, lifecycle hooks (
ngOnInit,ngOnChanges,ngOnDestroy), data binding & interpolation, template statements & expressions. - Templates, Directives, Pipes & View Encapsulation (Q31 - Q60): Custom directives, pure vs impure pipes, ViewEncapsulation modes (Emulated, ShadowDom, None), template reference variables (
#var), content projection (<ng-content>), ViewChild & ContentChild queries. - Services, Dependency Injection & Hierarchical Injectors (Q61 - Q90):
@Injectable(),providedIn: 'root', hierarchical injector trees, injection tokens, multi-providers, factory providers, singleton services. - Angular Forms: Template-Driven & Reactive Forms (Q91 - Q120):
FormControl,FormGroup,FormArray, built-in & custom validators, async validators, cross-field validation, valueChanges observables. - Angular Routing, Guards & Navigation (Q121 - Q150): Router configuration, route parameters & query params, router outlets, Route Guards (
CanActivateFn,CanDeactivateFn,ResolveFn), lazy loading modules and standalone routes. - HTTP Client, Interceptors & RxJS Observables (Q151 - Q180):
HttpClient, HTTP interceptors (HttpInterceptorFn), error handling withcatchError, retry logic, RxJS Subject vs BehaviorSubject vs ReplaySubject, flattening operators (switchMap,mergeMap,concatMap,exhaustMap). - Angular Animations, Internationalization & Service Workers (Q181 - Q210): BrowserAnimationsModule, trigger, state, transition, animate, i18n tooling, Service Worker PWA support, Web Workers integration.
- Angular Ivy, Universal (SSR) & Security (Q211 - Q240): Ivy compiler benefits, differential loading, Angular Universal / SSR hydration, XSS prevention, DomSanitizer, CSP configuration.
- Angular CLI, Testing, Schematics & Modern Tooling (Q241 - Q270): Angular CLI commands, Karma & Jasmine unit tests, component fixture testing, mocking services, custom Schematics, ESLint migration, standalone components.
- Modern Angular 17-19, Signals & NgRx State Management (Q271 - Q283): Angular Signals (
signal,computed,effect), built-in Control Flow (@if,@for,@switch), Deferrable Views (@defer), NgRx architecture (Store, Actions, Reducers, Effects, Selectors).
- Core React, JSX & Component Architecture (Q1 - Q77): React evolution from XHP/FaxJS, JSX transpilation, Virtual DOM, React Fiber scheduling, controlled vs uncontrolled components, reconciliation, fragments, portals, static type checking, synthetic events, prop validation, inline styles, error boundaries.
- React Router & Navigation (Q78 - Q88): React Router v6 architecture,
<BrowserRouter>,<Routes>, programmatic navigation withuseNavigate,pushvsreplace, query parameters, 404 fallback routing. - React Internationalization (Q89 - Q94): React Intl (
IntlProvider,FormattedMessage,FormattedNumber), pluralization, currency formatting, locale switching. - React Testing & Jest (Q95 - Q100): Shallow Renderer, TestRenderer, Jest test runner, parallel execution, snapshot testing, mocking dependencies.
- React Redux State Management (Q101 - Q134): Flux vs Redux unidirectional flow, 3 Core Principles, pure reducers,
useSelector&useDispatch, Redux Thunk vs Redux Saga generators, Redux DevTools time-travel debugging, Reselect memoization. - React Native Architecture (Q135 - Q138): Native views vs HTML DOM, bridge architecture, Hermes JS engine, mobile test tools.
- Supported Libraries, Styling & Integrations (Q139 - Q151): Reselect selectors, Flow vs TypeScript, Styled Components CSS-in-JS, Relay GraphQL fragments, DevTools troubleshooting.
- Advanced React Patterns, Portals & Performance (Q152 - Q261): Render hijacking, code splitting with
React.lazyand<Suspense>, windowing withreact-window, Context API default values, diffing algorithm rules, refs usage, React 18 Automatic Batching, React StrictMode double rendering, immutable state array updates. - React Hooks Deep Dive (Q262 - Q316):
useStatevsuseReducer,useContext,useEffectdependency array & cleanup mechanics,useLayoutEffectDOM measurements,useRefmutable containers,useMemovsuseCallback, Custom Hooks,useId,useTransition,useDeferredValue,useSyncExternalStore,useInsertionEffect. - Modern React 18, React 19 & Next.js Patterns (Q317 - Q353): React 18 Concurrent Rendering, React 19 Actions,
use()hook for promises & context, Server Actions,useOptimistic,useFormStatus, React Compiler (React Forget), Streaming SSR (renderToPipeableStream), Next.js App Router vs Pages Router, Server Components vs Client Components. - Legacy Architecture, Migration Patterns & Historical Internals (Q354 - Q445): React 15 vs 16 migration paths,
unstable_handleError, deprecated lifecycles (componentWillMount,componentWillReceiveProps),replaceState, Mixins deprecation, string refs vs callback refs,renderToNodeStreamvsrenderToPipeableStream,create-react-appinternals, class component reconciliation details.
- Candid Experience & Production Scenarios (Q1 - Q5): Production database selection, zero-downtime schema migrations (Expand/Contract pattern), debugging connection pool exhaustion and slow queries with
pg_stat_statements. - Relational Databases (PostgreSQL / MySQL) (Q6 - Q25): ACID enforcement mechanisms, Normalization (1NF - BCNF) vs Denormalization, SQL Transaction Isolation levels (Read Committed, Repeatable Read, Serializable), B-Tree & B+Tree internal structures, Clustered vs Secondary indexes, Leftmost prefix rule,
EXPLAIN ANALYZE(Seq Scan vs Index Scan vs Bitmap Scan), Join algorithms (Nested Loop, Hash Join, Merge Join), PostgreSQL JSONB with GIN indexes, PgBouncer transaction pooling, MVCC & autovacuum, WAL & Point-In-Time Recovery (PITR), N+1 query elimination. - NoSQL & Document Stores (MongoDB, DynamoDB) (Q26 - Q40): CAP Theorem positioning, Embedding vs Referencing, Aggregation Pipeline (
$match,$group,$lookup), Replica Sets vs Sharding, Oplog & Change Streams, DynamoDB Partition (HASH) and Sort (RANGE) keys, Hot Partitions, Single-Table Design, GSI vs LSI, Optimistic vs Pessimistic concurrency control. - In-Memory Caching & Fast Data Stores (Redis) (Q41 - Q50): Single-threaded event loop throughput, Redis data structures (Strings, Hashes, Lists, Sets, ZSET), Caching patterns (Cache-Aside, Write-Through, Write-Behind), Cache Stampede / Avalanche / Penetration defense, Eviction policies (
allkeys-lru,volatile-lfu), RDB vs AOF persistence, Sliding window rate limiter in Lua, Redlock distributed locking. - Real-Time Architecture, Replication & Scale (Q51 - Q60): Read-Write splitting, Change Data Capture (CDC with Debezium), Database sharding algorithms, Consensus failover (Raft/Paxos), Transactional Outbox Pattern, Elasticsearch vs
tsvector, Time-series hypertables, Vector embeddings indexing (HNSW with pgvector), RPO vs RTO disaster recovery.
- Candid Experience & Scaffolding (Q1 - Q5): FastAPI vs Flask vs Django selection criteria, resolving event loop blocking incidents, package management with
uvand Poetry, multi-stage Docker builds, isolated testing with Pytest and Testcontainers. - Python Core Internals & Runtime (Q6 - Q25): Reference counting and generational cyclic GC, Global Interpreter Lock (GIL) and PEP 703 free-threaded Python, mutable vs immutable memory models, integer caching and string interning, custom decorators with
functools.wraps, Generator expressions and Iterator protocol, Context Managers (__enter__/__exit__), Dunder methods (__new__vs__init__,__repr__), C3 Linearization MRO,__slots__memory optimization, Dataclasses vs NamedTuple vs Pydantic v2, CPython bytecode disassembly viadis. - Async Programming & Concurrency (Q26 - Q40): Multi-threading vs Multi-processing vs AsyncIO, Coroutines, Tasks and Futures, offloading blocking synchronous calls via
asyncio.to_thread(), Structured Concurrency withasyncio.TaskGroup(),asyncio.Queueproducer-consumer architectures, graceful shutdown on SIGINT/SIGTERM, Gunicorn with Uvicorn worker process topology. - FastAPI, Flask & Web API Architecture (Q41 - Q55): Starlette + Pydantic + ASGI synergy, Dependency Injection (
Depends()) for DB sessions and RBAC, Pydantic v2 Rust core speedup, BackgroundTasks vs Celery, custom Starlette middlewares, centralized exception handling, Flask application factory pattern and contexts, JWT authentication with refresh token rotation, Server-Sent Events (SSE) streaming. - ORMs, Data Persistence & Distributed Tasks (Q56 - Q65): SQLAlchemy 2.0 type-annotated syntax (
Mapped,mapped_column), Unit of Work & Identity Map patterns, Async SQLAlchemy withasyncpg, N+1 query elimination (joinedload,selectinload), Alembic production migration guardrails, Celery broker and result backends, exponential backoff retries and task idempotency, Celery Canvas workflows (chain,group,chord), worker memory leak prevention via--max-tasks-per-child.
- Intro & Enterprise Architecture (Q1 - Q5): Layered Controller-Service-Repository architecture, resolving Event Loop latency spikes, Express vs Fastify vs NestJS selection criteria, integration testing with Supertest and Testcontainers.
- Runtime Internals, Libuv & The Event Loop (Q6 - Q20): V8 engine, Libuv architecture, 6 Event Loop phases in exact order (Timers, Pending Callbacks, Idle/Prepare, Poll, Check, Close),
process.nextTick()vssetImmediate(), Libuv Thread Pool operations (fs,crypto,dns) vs native OS non-blocking I/O (epoll/kqueue),UV_THREADPOOL_SIZEscaling,perf_hooksEvent Loop delay monitoring, V8 GC generations (Scavenge vs Mark-Sweep-Compact), Buffer allocation (Buffer.allocvsBuffer.allocUnsafe), CJS vs ESM module resolution, graceful shutdown on SIGTERM. - Streams, Buffers & Core Modules (Q21 - Q35): Readable, Writable, Duplex, and Transform streams, Stream Backpressure and
pipeline(), EventEmitter error handling gotchas,fs.readFilevsfs.createReadStream, Clustering vs Worker Threads (worker_threads) vs Child Processes, Worker thread communication viaMessagePortandSharedArrayBuffer,AsyncLocalStoragefor distributed request context. - Express, Fastify, APIs & Middleware (Q36 - Q50): Express middleware execution mechanics, centralized 4-parameter error middleware, Fastify high throughput via Radix tree router and compile-time JSON schema serialization, Rate limiting with Redis, CORS preflight checks, direct streaming file uploads to S3, Server-Sent Events (SSE), WebSocket horizontal scaling via Redis Pub/Sub, API security (Prototype Pollution, ReDoS, Helmet).
- Production Scale, Deployment & Observability (Q51 - Q60): Containerized Docker best practices (PID 1 handling with
tini, non-root user), PM2 vs Kubernetes orchestration, database connection pool management under surges, Transactional Outbox pattern, Liveness vs Readiness health checks, Pino structured logging, zero-downtime rolling vs blue-green updates, Bun and Deno runtime comparisons.
- Intro & Well-Architected Framework (Q1 - Q5): 6 Pillars of AWS Well-Architected Framework, evaluating architectural trade-offs, resolving severe Lambda concurrency throttles and NAT gateway bottlenecks, EC2 vs Fargate vs Lambda compute selection, FinOps cost governance.
- Networking, VPC & Traffic Routing (Q6 - Q20): Secure 3-tier VPC design across multiple AZs, reserved IP addresses in subnet CIDRs, Security Groups (stateful) vs Network ACLs (stateless), Internet Gateway vs NAT Gateway vs NAT Instance, VPC Peering vs Transit Gateway vs PrivateLink, ALB (Layer 7) vs NLB (Layer 4) vs GWLB, ALB Connection Draining, VPC Flow Logs with Athena, S3 & DynamoDB Gateway Endpoints, Route 53 routing policies (Latency, Weighted, Failover, Geolocation), Alias vs CNAME records, Direct Connect vs Site-to-Site VPN, Global Accelerator vs CloudFront.
- Compute, Containers & Serverless (21 - 35): EC2 instance families and Graviton ARM migration, EC2 pricing models (Spot, Savings Plans, Reserved), Placement Groups (Cluster, Spread, Partition), EBS vs Instance Store ephemeral storage, Auto Scaling Groups (Target Tracking, Step Scaling), Lambda Firecracker execution model, Lambda Cold Start mitigations and Hyperplane ENI VPC networking, ECS Fargate vs EKS Kubernetes, ECR image immutability and vulnerability scanning, Step Functions Standard vs Express workflows.
- Storage, Content Delivery & Databases (Q36 - Q50): S3 vs EBS vs EFS, S3 Storage Classes and Lifecycle rules, 11 9s durability mechanics, S3 Block Public Access and Bucket Policies, Multipart Uploads, Object Lock (WORM), CloudFront Edge Locations and Regional Edge Caches, Signed URLs vs Signed Cookies, CloudFront Functions vs Lambda@Edge, RDS Multi-AZ (HA) vs Read Replicas (scaling), Aurora 6-way replicated storage engine and Serverless v2, DynamoDB Single-Table design and Streams.
- Security, IAM, Messaging & Enterprise Deployments (Q51 - Q65): AWS Shared Responsibility Model, IAM User vs Role vs Policy, IAM evaluation logic (Explicit Deny priority), IAM Instance Profiles, AWS Organizations and SCPs, KMS Envelope Encryption, Secrets Manager vs SSM Parameter Store, SQS vs SNS, SQS FIFO queues and Dead-Letter Queues (DLQ), EventBridge schema routing, CloudWatch vs CloudTrail, Blue/Green and Canary deployments with CodeDeploy, Infrastructure as Code (CDK vs Terraform), Disaster Recovery RPO/RTO strategies (Backup & Restore, Pilot Light, Warm Standby, Active-Active).
π§ Track 7: Data Structures & Algorithms (1 - 100) β Multi-Language: Python 3 β’ Java β’ C++ β’ TypeScript
- Intro & Approach (Q1 - Q5): Step-by-step interview problem-solving framework, Big-O / Big-$\Omega$ / Big-$\Theta$ asymptotic notation, Master Theorem, recursion stack vs heap memory bounds, constraint-based pattern recognition.
-
Arrays, Strings & Hash Maps (Q6 - Q18): Two Sum ($O(N)$), Longest Consecutive Sequence ($O(N)$), Group Anagrams, Product of Array Except Self (
$O(1)$ space), Kadaneβs Algorithm for Maximum Subarray, Subarray Sum Equals K (prefix sums), Next Permutation, Merge & Insert Intervals. -
Two Pointers & Sliding Window (Q19 - Q28): Valid Palindrome, Two Sum II (sorted array), 3Sum ($O(N^2)$), Container With Most Water, Trapping Rain Water (
$O(1)$ space), Longest Substring Without Repeating Characters, Minimum Window Substring ($O(N+M)$), Sliding Window Maximum (Monotonic Deque). -
Stacks & Queues (Q29 - Q36): Valid Parentheses, Min Stack (
$O(1)$ all ops), Evaluate Reverse Polish Notation, Daily Temperatures (Monotonic Stack), Largest Rectangle in Histogram ($O(N)$), Implement Queue using Stacks. - Linked Lists (Q37 - Q45): Reverse Linked List (iterative and recursive), Merge Two Sorted Lists, Floydβs Cycle Detection (Tortoise and Hare), Remove Nth Node From End (single pass), Reorder List, Copy List with Random Pointer (node interweaving), Merge K Sorted Lists (Min-Heap).
- Binary Search (Q46 - Q52): Binary search on sorted boundaries without integer overflow, Search a 2D Matrix ($O(\log(M \cdot N))$), Search in Rotated Sorted Array, Find Minimum in Rotated Sorted Array, Koko Eating Bananas (Binary Search on Answer Range), Median of Two Sorted Arrays.
- Trees & Tries (Q53 - Q65): Invert Binary Tree, Maximum Depth & Diameter, Balanced Binary Tree, Lowest Common Ancestor (BST & Binary Tree), Level Order Traversal (BFS), Validate BST, Kth Smallest Element in BST, Construct Tree from Preorder & Inorder, Trie (Prefix Tree) implementation.
- Heaps & Priority Queues (Q66 - Q72): Kth Largest Element (Min-Heap vs QuickSelect), Top K Frequent Elements (Bucket Sort in $O(N)$), Find Median from Data Stream (Dual Heaps), Task Scheduler, Design Twitter feed (Multi-way Heap Merge), Reorganize String.
- Backtracking (Q73 - Q79): Subsets (Power Set $O(2^N)$), Combination Sum, Permutations ($O(N!)$), Subsets II (duplicate handling), Word Search in Grid, Palindrome Partitioning, N-Queens.
- Graphs (BFS, DFS, Topological Sort & Union-Find) (Q80 - Q90): Number of Islands, Clone Graph, Rotting Oranges (Multi-source BFS), Pacific Atlantic Water Flow, Course Schedule I & II (Kahnβs Algorithm In-degree BFS), Number of Connected Components & Disjoint Set Union (DSU with Path Compression & Union by Rank), Redundant Connection, Word Ladder, Network Delay Time (Dijkstraβs Algorithm $O((V+E)\log V)$), Alien Dictionary.
-
1D & 2D Dynamic Programming (Q91 - Q100): Climbing Stairs, Min Cost Climbing Stairs, House Robber I & II (circular), Coin Change, Longest Increasing Subsequence (
$O(N \log N)$ Patience Sorting), Word Break, Unique Paths, Longest Common Subsequence (LCS), Best Time to Buy and Sell Stock with Cooldown, 0/1 Knapsack & Partition Equal Subset Sum.
- Core Objects, Prototypes, Functions & Scope (Q1 - Q50): Ways to create objects, prototype chains,
call/apply/bind, Map vs Object, arrow functions, currying, pure functions,letvsvar, TDZ, IIFE, memoization, hoisting, closures, scopes, service workers, IndexedDB, cookies & web storage. - Promises, Callbacks, Async & Strict Mode (Q51 - Q100): Web workers, Promise states, callback hell, SSE, promise chaining,
Promise.all(), strict mode,typeof,nullvsundefined,windowvsdocument, event flow, bubbling & capturing, SOP, compiled vs interpreted, case-sensitivity. - DOM, Event Flow, Timers & Browser APIs (Q101 - Q170):
preventDefault()vsstopPropagation(), single-threaded model, event delegation, ECMAScript vs JS,clearTimeout/clearInterval, URL location properties, loops, polyfills, tree shaking, regex patterns, breakpoints. - Prototypes, Object Methods & Event Loop (Q171 - Q250):
Object.freezevsObject.seal,Object.is(),Object.assign(), Proxy objects, WeakSet & WeakMap, accessors, getters & setters, error objects, Intl API, iterators, event loop, call stack & event queue. - ES6+ Modern Syntax, Classes, Modules & Destructuring (Q251 - Q325): Comma operator, TypeScript differences, class constructors &
super(), prototype getters/setters, non-extensible objects, minification & obfuscation, constraint validation, ES6 features, template literals, destructuring, typed arrays. - Async Internals, Memory, Microtasks & Web APIs (Q326 - Q400): PostMessage security, JS paradigms,
~~operator,ArrayBuffer, shallow vs deep copy, mixins, reflow vs repaint, AJAX, zero timeout, microtask queues, observables & RxJS. - Execution Context, Functional JS & V8 Engine (Q401 - Q460): Babel, Node.js concurrency,
thiskeyword, memory leak causes, V8 optimization (hidden classes, inline caching), HOFs, ASI, compose & pipe functions. - Modern JavaScript APIs, WeakRef, Proxy & Performance (Q461 - Q521): Lexical scope, dark mode detection,
requestAnimationFrame,globalThis, shadowing,structuredClone,Promise.any(), BigInt, private class fields, Array.at(), top-level await, WeakRef & FinalizationRegistry, Temporal API, Symbols, AbortController, Intersection Observer, Mutation Observer, Atomics API, bundle size optimization.
- General Intro, Elevator Pitch & Career Trajectory (Q1 - Q10): 90-second elevator pitch (Present-Past-Future narrative), framing departures toward growth, explaining career transitions, navigating counter-offers, authentic strengths and structured self-correction loops.
- Behavioral Scenarios & The STAR Method (Q11 - Q25): Situation, Task, Action, Result framework; handling critical production outages under pressure, navigating architectural disagreements with Staff/Principal engineers, prioritizing conflicting business deliverables, managing underperforming teammates.
- Engineering Leadership, Code Quality & Collaboration (Q26 - Q36): Conducting constructive code reviews, advocating for technical debt remediation, driving cross-team alignment, balancing velocity vs perfection, establishing high-trust engineering team cultures.
- Production Incident Management & Blameless Post-Mortems (Q37 - Q44): On-call incident response, 5 Whys root cause analysis, authoring blameless post-mortems, tracking preventive remediation action items, fostering psychological safety.
- Reverse Interviewing, Compensation & Negotiation (Q45 - Q50): High-signal reverse-interview questions to ask engineering directors and VP peers, evaluating engineering culture, equity compensation mechanics (RSUs vs ISOs/NSOs), competing offers, and salary negotiation frameworks.
- Foundational Distributed Systems Concepts & Trade-offs (Q1 - Q10): 4-Step interview framework, Horizontal vs Vertical scaling bottlenecks, CAP Theorem & PACELC theorem, Consistent Hashing with virtual nodes, Load Balancer algorithms (L4 vs L7), Caching strategies (Cache-Aside, Write-Through, Write-Behind, Refresh-Ahead), Cache Stampede/Penetration/Avalanche mitigation, Database sharding vs partitioning, Replication lag & Read-After-Write consistency, Strong vs Eventual consistency models.
- Real-World High-Scale Architecture Problems (Q11 - Q25): TinyURL URL Shortener (Base62 + KGS), Distributed Rate Limiter (Token Bucket, Leaky Bucket, Redis Lua), WhatsApp/Telegram Real-Time Messaging (WebSocket, Presence, Cassandra), Twitter/X News Feed System (Fan-out on write vs read, Hybrid celebrity model), Uber/Grab Proximity Driver Dispatch (Geohash, Google S2, QuadTrees), Netflix Global Video Streaming CDN (Chunking, Transcoding, Dynamic DASH/HLS), Distributed Unique ID Generator (Snowflake ID 64-bit bits), Stripe Idempotent Payment Processing (Idempotency keys, distributed locks), Distributed Cache Cluster (LRU/LFU, Redis Cluster hash slots), Web Crawler (Frontier queue, robots.txt, deduplication, Bloom filter), Typeahead / Search Autocomplete (Trie with Top-K pre-computation), YouTube/TikTok Video Upload Pipeline (Resumable uploads, chunked parallel processing, CDN ingest), E-Commerce Flash Sale System (Virtual queue, Redis atomic inventory decrement), Metrics & Real-Time Monitoring Platform (Prometheus time-series TSDB, Grafana), Distributed Webhook Delivery Engine (Dead-letter queues, exponential backoff, HMAC signatures).
- Distributed Transactions, Consensus & Reliability (Q26 - Q36): 2-Phase Commit (2PC) vs 3PC, Saga Pattern (Orchestration vs Choreography), Eventual Consistency & Transactional Outbox pattern, Raft Consensus Algorithm (Leader Election, Log Replication, Heartbeats), Paxos vs Raft, Circuit Breaker Pattern (Closed, Open, Half-Open), Dead Letter Queues (DLQ) & Poison pill handling, Message Delivery Semantics (At-most-once, At-least-once, Exactly-once), Gossip Protocol (Peer-to-peer cluster state), Distributed Locking with Redis (Redlock algorithm), Split-Brain scenarios & quorum fencing.
- API Design, Security & Edge Networking (Q37 - Q43): REST vs GraphQL vs gRPC, API Gateway patterns (BFF - Backend For Frontend), WebSockets vs SSE vs Long Polling, CDN Edge caching & Cache-Control headers, API Idempotency & Replay attack defense, Zero Trust Security in Microservices (mTLS, SPIFFE), OAuth 2.0 PKCE flow in distributed single-page applications.
- Back-of-the-Envelope Estimation & Production Calculations (Q44 - Q50): Back-of-the-envelope estimation cheat sheet (powers of two, latency numbers), QPS and Read/Write throughput sizing, Storage capacity sizing over 5 years, Network egress & network bandwidth sizing, Memory & Redis Cache cluster sizing (80/20 Pareto rule), High availability sizing (99.9% vs 99.99% downtime budgets), CDN cost optimization sizing, Closing and summarizing a system design interview.
- Candid Experience, Container Internals & Docker (Q1 - Q10): DevOps philosophy, VM vs container Linux kernel namespaces (PID, NET, MNT) and cgroups (v1/v2), Overlay2 storage driver and Copy-on-Write (CoW), Dockerfile multi-stage builds and layer caching, non-root security context hardening, Docker network drivers (Bridge, Host, Overlay, iptables NAT port mapping), PID 1 zombie process reaping and tini, Docker Compose v2 healthcheck dependencies, multi-architecture buildx and Cosign image signing, systematic container crash debugging (Exit codes 137, 139, 1).
- Kubernetes Architecture & Core Workloads (Q11 - Q25): Control Plane components (API Server, Controller Manager, Scheduler, etcd) vs Worker Node agents (Kubelet, Kube-proxy, CRI containerd), etcd Raft consensus and snapshot disaster recovery, Kube-API Server request lifecycle (AuthN, AuthZ, Mutating/Validating Admission Webhooks), Kube-Scheduler filtering and scoring (Affinity, Taints, Tolerations, Topology Spread), Kubelet syncLoop and systemd cgroup driver alignment, Pod lifecycle phases and zero-downtime graceful shutdown with preStop hooks, Liveness vs Readiness vs Startup probes, Deployments vs StatefulSets (headless services), DaemonSets and Job concurrency policies (Allow, Forbid, Replace), ConfigMaps and Secrets encryption at rest with External Secrets Operator, PersistentVolumes (PV/PVC/CSI/StorageClass), CNI plugins (Cilium eBPF vs Calico vs AWS VPC CNI), Kubernetes Services and Kube-proxy IPVS/iptables, Gateway API vs Ingress, NetworkPolicies microsegmentation.
- Production K8s Scaling, Reliability & SRE (Q26 - Q35): HPA scaling algorithm and KEDA event-driven autoscaling, Cluster Autoscaler vs Karpenter just-in-time direct EC2 provisioning and bin-packing consolidation, Resource Requests/Limits and QoS classes (Guaranteed, Burstable, BestEffort), PodDisruptionBudgets (PDB) protecting voluntary disruptions, Zero-downtime rolling upgrades (maxSurge, maxUnavailable, preStop sleep 10), Service mesh evaluation (Istio Ambient Mesh vs Linkerd mTLS), Kubernetes RBAC and ServiceAccount token security, Custom Resource Definitions (CRDs) and the Go Operator Pattern reconcile loop, Systematic CrashLoopBackOff and Pending Pod troubleshooting, Multi-tenant cluster isolation (ResourceQuotas, LimitRanges, vcluster).
- CI/CD Pipelines, GitOps & Progressive Delivery (Q36 - Q42): CI vs CD vs Continuous Deployment and trunk-based development, Secure GitHub Actions with OIDC keyless AWS authentication, GitOps philosophy and ArgoCD automated drift remediation, Progressive delivery (Blue/Green, Canary, Traffic Mirroring) with Argo Rollouts and Prometheus metrics analysis, Helm templating vs Kustomize declarative overlay patching, Software supply chain security (SLSA, SBOM with Syft, Trivy container scanning, SAST), Zero-downtime database migrations in CI/CD via the Expand-and-Contract (Parallel Run) pattern.
- Infrastructure as Code, SRE Observability & Production Troubleshooting (Q43 - Q50): Terraform internals (state file, S3 remote backend, DynamoDB state locking, DAG dependency graph), Modular Terraform architecture and automated drift detection, SRE foundations (SLI, SLO, SLA, Error Budgets, and Multi-Window Burn Rate alerting), Three Pillars of Observability (Metrics, Structured Logs, Distributed Tracing with OpenTelemetry W3C traceparent), Prometheus architecture and essential PromQL queries (rate, histogram_quantile p95, memory saturation), Grafana dashboard engineering and Alertmanager anti-fatigue tuning (inhibition, grouping), Production incident command and blameless 5-Whys post-mortems, Concluding a DevOps/SRE technical interview with platform engineering tenets.
- Candid Security Experience, Threat Modeling & Fundamentals (Q1 - Q10): Defensive engineering mindset, CIA Triad and Defense-in-Depth layers, STRIDE threat modeling framework, Least Privilege and Zero Trust architecture, Session management and HttpOnly/SameSite cookie security, CORS protocol mechanics and preflight OPTIONS, Same-Origin Policy (SOP) and postMessage validation, HTTP security headers suite (HSTS, nosniff, Referrer-Policy, Permissions-Policy), Modern password hashing (Argon2id vs bcrypt vs PBKDF2), CSPRNG cryptographic randomness (crypto.getRandomValues vs Math.random).
- OWASP Top 10 & Critical Vulnerability Deep-Dives (Q11 - Q25): Broken Object Level Authorization (BOLA/IDOR) tenant context enforcement, Cross-Site Scripting (XSS) (Reflected, Stored, DOM-based) and DOMPurify sanitization, Content Security Policy (CSP Level 3) nonce-based architecture and strict-dynamic, Cross-Site Request Forgery (CSRF) and Double Submit Cookie patterns, Server-Side Request Forgery (SSRF) and AWS IMDSv2 protection, Parameterized prepared statements vs SQL Injection, Command injection avoidance via execFile/spawn, Broken authentication and HaveIBeenPwned k-Anonymity checks, Security misconfigurations and sanitized error responses, Vulnerable and outdated components (SCA with Trivy/Snyk), Insecure deserialization risks, Structured JSON logging and PII masking, Server-Side Template Injection (SSTI), XML External Entity (XXE) parser hardening, Mass Assignment DTO validation.
- Authentication, Authorization & Cryptographic Standards (Q26 - Q35): JSON Web Token (JWT) vulnerabilities (alg: none, RS256 vs HS256, JTI Bloom Filter revocation), OAuth 2.0 and OpenID Connect (OIDC) core flows, OAuth 2.0 PKCE (code_verifier and code_challenge), RBAC vs Attribute-Based Access Control (ABAC) with Open Policy Agent (Rego), Symmetric (AES-256-GCM AEAD) vs Asymmetric (RSA vs ECC Curve25519), Envelope Encryption architecture (DEK vs KEK), Mutual TLS (mTLS) and SPIFFE cryptographic service identities, Phishing-resistant Multi-Factor Authentication (FIDO2 / WebAuthn / Passkeys vs TOTP), Enterprise Single Sign-On (SAML 2.0 vs OIDC), Cryptographic Salt vs Pepper vs Nonce.
- Browser Security, HTTP Headers & Client Hardening (Q36 - Q42): Clickjacking mitigation via frame-ancestors, Subresource Integrity (SRI) on external CDNs, Reverse tabnabbing defense (rel="noopener noreferrer"), MIME sniffing defense (X-Content-Type-Options: nosniff), HTTP Strict Transport Security (HSTS) and Chromium Preload submission, Permissions-Policy hardware sensor restrictions, Prototype Pollution in JavaScript (recursive merge flaws, Object.freeze, Object.create(null)).
- API Security, DevSecOps & Enterprise Incident Handling (Q43 - Q50): Regular Expression Denial of Service (ReDoS) catastrophic backtracking and RE2 linear DFA engine, Web Application Firewalls (WAF) managed rules and bot mitigation, Secure file upload pipelines (magic byte inspection, ClamAV, S3 isolation), GraphQL security (query depth limits, complexity scoring, disabling introspection), DevSecOps shift-left automation (Gitleaks, Semgrep, Trivy in CI/CD), Zero-Secret-Leak architectures and dynamic credentials with HashiCorp Vault, Security incident response containment and GDPR 72-hour reporting rule, High-signal application security interview conclusion.
- RAG Architecture, Chunking & Vector Search (Q1 - Q10): Chunking strategies (fixed-size, semantic, sentence window, parent-document), Distance metrics (Cosine, Dot Product, Euclidean), Vector indexing algorithms (HNSW vs IVF-PQ), Bi-Encoder retrieval vs Cross-Encoder re-ranking (ColBERT), Reciprocal Rank Fusion (RRF) hybrid search, Hypothetical Document Embeddings (HyDE), Lost-in-the-Middle context degradation, RAGAS automated RAG evaluation (Faithfulness, Answer Relevance, Context Precision/Recall), Multi-tenant vector isolation and ACL metadata filtering, GraphRAG with knowledge graph entity extraction.
- LLM Runtime Internals, KV Cache & High-Throughput Serving (Q11 - Q20): Transformer prefill (compute-bound) vs decode (memory-bound) phases, KV Cache memory consumption formulas, vLLM PagedAttention virtual memory block allocation, Continuous (iteration-level) batching vs static batching, Prefix Caching (Radix Attention), Speculative Decoding with draft models, Tokenization anomalies (BPE, byte-level fallback, Token Healing), LLM Weight & Activation Quantization (GPTQ, AWQ, GGUF, FP8, bitsandbytes NF4), FlashAttention 1/2/3 GPU SRAM kernel tiling, Server-Sent Events (SSE) streaming architecture, TTFT, ITL, and latency SLAs.
- Autonomous Agents, Tool Calling & Multi-Agent Workflows (Q21 - Q30): ReAct (Reasoning + Acting) loop mechanics, Grammar-constrained decoding and Structured JSON Outputs (CFG / Outlines), Model Context Protocol (MCP) client-server architecture, LangGraph stateful multi-agent orchestrations with cyclic graphs, Plan-and-Solve vs ReAct patterns, Short-term vs Episodic vs Semantic agent memory tiers, External tool calling error handling, backoff and fallbacks, Human-in-the-Loop (HITL) interrupt checkpoints, Runaway infinite loop and tool recursion guards, Secure isolated code execution sandboxes (gVisor, Firecracker microVMs).
- LLM Security, Guardrails & OWASP Top 10 for LLMs (Q31 - Q40): Direct vs Indirect Prompt Injection attacks and dual-LLM defense boundaries, Insecure Output Handling and cross-context script execution, Canary tokens for system prompt leakage detection, Model deserialization hazards (Pickle RCE vs SafeTensors), LLM Denial of Service (Sponge Examples and prompt dilation), Grounding citations and hallucination mitigation, Presidio PII anonymization and masking pipelines, NeMo Guardrails and Llama Guard input/output moderation policies, Excessive Agency risks and least-privilege scoping, Greedy Coordinate Gradient (GCG) adversarial suffix jailbreaks.
-
Fine-Tuning, Alignment, Benchmarks & Production AI Deployment (Q41 - Q50): Full fine-tuning vs PEFT (LoRA rank
$r$ ,$alpha$ scaling, low-rank decomposition), QLoRA 4-bit NormalFloat (NF4) and Double Quantization, RLHF with PPO vs Direct Preference Optimization (DPO), High-quality synthetic data generation (Alpaca, Evol-Instruct, UltraFeedback), Standardized LLM evaluation benchmarks (MMLU, GSM8K, HumanEval, SWE-bench), LLM-as-a-Judge systemic biases (Position, Verbosity, Self-enhancement), Continual learning, catastrophic forgetting, and rehearsal datasets, Enterprise vLLM Kubernetes deployment (Ray, multi-GPU tensor parallelism), GPU VRAM sizing formulas for inference and training, AI Gateway architecture (Semantic Caching, fallback routing, rate limiting, token cost governance).
This repository includes a full-fledged Next.js 14 App Router web portal providing an interactive study experience with Markdown rendering, instant search, copyable code blocks, and responsive layouts.
# Clone the repository
git clone https://github.com/TheLearningHubOrg/learn-interview-questions.git
cd learn-interview-questions
# Install dependencies
npm install
# Start local Next.js development server
npm run dev
# -> Open http://localhost:3000 in your browser
# Build production static bundle
npm run build
# Start production server
npm run start- Instant Global Search (
βK/Ctrl+K): Search across all 1,849+ questions with live filtering and jump links. - Reading History ("Continue Reading"): Resumes right where you left off across every track and displays a dynamic resume banner on the homepage.
- Bookmarks & "Save for Review": Curate a personal study cheat sheet with an amber star and filter tracks by
StudiedorBookmarked. - Global Study Progress Dashboard: Interactive completion ring, estimated study hours calculation, track readiness breakdown, and mastery badges.
- Multi-Language Interactive Code IDE: Switchable tabs for Python 3, JavaScript, TypeScript, Java, and C++ for all algorithmic patterns.
- Keyboard Navigation Shortcuts:
β/βarrow keys to navigate questions,Gto open the Jump Palette,βKfor instant global search. - Table of Contents Sidebar: Sticky scroll-spy outline for every track.
- Code Block Utilities: One-click code copying and syntax highlighting.
- Server-Side Generation (SSG): 1,883 pre-rendered static HTML pages with zero runtime markdown overhead.
- Obsidian Dark & Clean Light Themes: Custom color palettes with high-contrast typography.
- Targeted Track Review: Jump straight into the track corresponding to your upcoming technical round (e.g., Frontend System Design, Backend API Deep-Dive, Cloud Architecture, or Live Coding DSA).
- Mock Interview Simulation: Practice explaining questions candidly out loud using the structured answers, code snippets, and comparative tables.
- Architecture Reference: Use the detailed design patterns (Expand/Contract migrations, Transactional Outbox, Sliding Window rate limiters, Next.js Server Components, Angular Signals, RAG, and MCP) as production architectural blueprints for real-world projects.
Contributions, enhancements, and additional real-world interview scenarios are welcome!
- Fork the Project.
- Create your Feature Branch (
git checkout -b feature/new-interview-topic). - Commit your Changes (
git commit -m 'Add new interview questions'). - Push to the Branch (
git push origin feature/new-interview-topic). - Open a Pull Request.
This project is open-source software licensed under the MIT License.
Part of The Learning Hub Org.