π’ Junior Level (1β250)¶
Focus: Fundamentals β HTTP, DNS, REST, simple DBs, cache, monolith vs microservices, basic designs (URL shortener, parking lot). The interviewer is looking for logical thinking and core-component understanding, not deep internals.
For whom: 0β2 years of experience, bootcamp / junior level. Time per question: 2β5 minutes.
π Networking & Web Basics (1β30)¶
- What is HTTP and how does it differ from HTTPS?
- Explain the difference between TCP and UDP.
- What happens when you type a URL in the browser and press Enter?
- What is DNS and how does DNS resolution work?
- What is a TCP three-way handshake?
- Define IP address β what is the difference between IPv4 and IPv6?
- What is the OSI model and its 7 layers?
- Explain HTTP status codes: what do 2xx, 3xx, 4xx, and 5xx mean?
- What is the difference between HTTP/1.1, HTTP/2, and HTTP/3?
- What is a cookie and how is it different from session storage?
- What is CORS and why does it exist?
- Explain the request/response cycle of a web application.
- What is SSL/TLS and what problem does it solve?
- What is a proxy server?
- What is the difference between a forward proxy and a reverse proxy?
- What is a CDN and what is its primary role?
- What is latency vs throughput?
- What is bandwidth?
- What does keep-alive mean in HTTP?
- What is a webhook and how does it differ from polling?
- Explain long polling vs short polling vs WebSockets.
- What is a port number and which common ports do you know?
- How does WebSocket handshake work?
- What is a public IP vs a private IP?
- What is NAT (Network Address Translation)?
- What does "stateless" mean for HTTP?
- What is a session and how is it managed?
- What are the most common HTTP methods?
- What is the difference between PUT and PATCH?
- What is the role of a load balancer at the highest level?
ποΈ Database Basics (31β60)¶
- What is the difference between SQL and NoSQL databases?
- What is a primary key vs a foreign key?
- What is normalization and why do we use it?
- What is denormalization and when is it appropriate?
- Explain the ACID properties.
- What is an index and why does it speed up queries?
- What is a JOIN and what types of JOINs exist?
- What is a transaction in a database?
- What is the difference between a clustered and a non-clustered index?
- What is a database schema?
- Define 1NF, 2NF, and 3NF in simple terms.
- What is a stored procedure?
- What is a trigger?
- What is a view in SQL?
- What is the difference between DELETE, TRUNCATE, and DROP?
- What is a key-value store and when would you use one?
- What is a document database (like MongoDB)?
- What is a graph database and what problem does it solve?
- What is a column-family store (like Cassandra)?
- What is the difference between OLTP and OLAP?
- What is data integrity?
- What is a deadlock?
- What is database replication in a single sentence?
- What is read-only replica?
- Why do we use connection pooling?
- What is an ORM and what are its pros/cons?
- What is a UUID and when would you use it instead of auto-increment IDs?
- What does "eventually consistent" mean in plain English?
- What is a composite key?
- When would you choose Postgres vs MySQL?
πΎ Caching Basics (61β80)¶
- What is caching and why do we use it?
- What are the layers where caching can happen (browser, CDN, app, DB)?
- What is a cache hit vs cache miss?
- What is TTL (time to live)?
- What is cache eviction?
- Explain LRU, LFU, and FIFO eviction policies.
- What is the difference between Redis and Memcached?
- What is local cache vs distributed cache?
- What is a write-through cache?
- What is a write-back (write-behind) cache?
- What is a cache-aside (lazy-loading) pattern?
- What is a stale cache?
- What problem does cache invalidation solve?
- What is a thundering herd problem?
- Why is "there are only two hard things in CS: cache invalidation and naming things" famous?
- What is the role of caching in a URL shortener?
- How does browser caching work?
- What is HTTP cache-control header?
- What is ETag?
- What is the typical hit ratio you should target for a cache?
π§± Architecture Basics (81β110)¶
- What is a monolithic architecture?
- What is microservice architecture?
- What is the difference between monolith and microservices?
- What is service-oriented architecture (SOA)?
- What is a 3-tier architecture?
- What is clientβserver architecture?
- What is peer-to-peer architecture?
- What is event-driven architecture in simple terms?
- What is a serverless architecture?
- What are pros and cons of monolith for a small startup?
- What is vertical scaling (scale up)?
- What is horizontal scaling (scale out)?
- Why is horizontal scaling usually preferred for web services?
- What is high availability?
- What is fault tolerance?
- What is single point of failure (SPOF)?
- What is redundancy in system design?
- What is failover?
- What is a stateless service?
- What is a stateful service?
- What is idempotency?
- Why is idempotency important for retries?
- What is the role of message queues at a basic level?
- What is a publishβsubscribe pattern?
- What is decoupling and why does it matter?
- What is loose coupling vs tight coupling?
- What is cohesion?
- Why is "single responsibility" important in service design?
- What is the role of an API gateway?
- What does "12-factor app" mean?
βοΈ Load Balancing Basics (111β125)¶
- What is a load balancer?
- What is round-robin load balancing?
- What is least-connections load balancing?
- What is IP-hash load balancing?
- What is the difference between L4 and L7 load balancers?
- Why might you put a load balancer in front of a database?
- What is a sticky session?
- When should you avoid sticky sessions?
- What is health-checking on a load balancer?
- What is the difference between hardware and software load balancers?
- What is HAProxy vs nginx vs ELB at a basic level?
- What is DNS-based load balancing?
- What is Anycast routing?
- Why do load balancers improve availability?
- What is SSL termination at the load balancer?
π Security Basics (126β145)¶
- What is authentication vs authorization?
- What is a JWT token?
- What is OAuth 2.0 in one sentence?
- What is HTTPS and why is it important?
- What is a man-in-the-middle attack?
- What is SQL injection?
- What is XSS?
- What is CSRF?
- What is hashing vs encryption?
- What is salt in password hashing?
- Why should you never store passwords in plain text?
- What is rate limiting and why is it useful?
- What is two-factor authentication?
- What is an API key?
- What is the principle of least privilege?
- What is a firewall?
- What is a DMZ in network architecture?
- What is a brute-force attack?
- Why do we use HTTPS for login pages?
- What is data-at-rest vs data-in-transit encryption?
π οΈ API Basics (146β165)¶
- What is a REST API?
- What are REST principles (statelessness, uniform interface, etc.)?
- What is the difference between REST and SOAP?
- What is GraphQL and how does it differ from REST?
- What is gRPC?
- What is an HTTP method-resource mapping?
- How would you design endpoints for a blog (posts, comments)?
- What is API versioning and why is it needed?
- What is pagination and how do you implement it?
- What is cursor-based vs offset-based pagination?
- What is rate limiting at an API level?
- What is throttling?
- What is API documentation, and why is OpenAPI/Swagger useful?
- What is content negotiation?
- What is HATEOAS?
- What is an idempotent endpoint? Give an example.
- What is the difference between 401 and 403?
- What is the difference between 200, 201, and 204?
- What is bulk endpoint vs single endpoint?
- When would you use webhooks instead of polling?
π¦ Storage & Files Basics (166β180)¶
- What is object storage and how does it differ from block storage?
- What is S3 in simple terms?
- What is a CDN edge node?
- What is the difference between SSD and HDD in system design?
- What is RAID and which levels do you know?
- What is file system journaling?
- What is a blob?
- What is metadata for a file?
- How would you store user-uploaded avatars?
- Why don't you store large files in a relational DB?
- What is a presigned URL?
- What is multipart upload?
- What is data redundancy in storage?
- Why is S3 considered "11 nines" durable?
- What is data tiering (hot/warm/cold)?
π Common Junior-Level Designs (181β215)¶
- Design a URL shortener like Bitly (high-level).
- Design a TinyURL β what data store would you pick?
- Design a basic in-memory key-value store.
- Design a simple to-do list backend.
- Design a basic blog platform.
- Design a simple chat between two users.
- Design a parking lot system (object-oriented).
- Design an elevator system.
- Design a vending machine.
- Design a tic-tac-toe game.
- Design a coffee shop ordering system.
- Design a library book lending system.
- Design an ATM machine.
- Design a simple e-commerce product page.
- Design a hotel reservation system (basic).
- Design a calendar / meeting room booking.
- Design a simple feed of recent posts.
- Design a basic job scheduler.
- Design a polling/voting system.
- Design a movie ticket booking (simplified).
- Design a bookstore inventory.
- Design a music playlist app.
- Design a basic notification system (email only).
- Design a flashcard study app.
- Design a basic file uploader.
- Design a simple photo gallery.
- Design a contact list / address book.
- Design a simple chess game.
- Design a step counter app backend.
- Design a leaderboard for a small game.
- Design a simple weather API consumer.
- Design a basic e-mail inbox view.
- Design a "split the bill" calculator API.
- Design a basic survey / form builder.
- Design a simple expense tracker.
π§ͺ Concepts & Terminology (216β235)¶
- What is throughput vs latency vs response time?
- What does "p99 latency" mean?
- What is QPS (queries per second)?
- What is back-of-the-envelope estimation?
- How would you estimate storage needed for 1M users with 1KB profile each?
- What is a synchronous vs asynchronous system?
- What is non-blocking I/O?
- What is concurrency vs parallelism?
- What is a thread pool?
- What is event loop (e.g., in Node.js)?
- What is a process vs a thread?
- What is a race condition?
- What is a mutex?
- What is optimistic vs pessimistic locking?
- What is a critical section?
- What is the difference between SDK and API?
- What is observability (logs, metrics, traces) at a basic level?
- What does "graceful degradation" mean?
- What is feature flag?
- What is blue-green deployment in one sentence?
π DevOps & Deployment Basics (236β250)¶
- What is CI vs CD?
- What is Docker and why is it used?
- What is a container vs a virtual machine?
- What is Kubernetes in one sentence?
- What is a pod in Kubernetes?
- What is a deployment vs a service in Kubernetes?
- What is rolling deployment?
- What is a canary release?
- What is Infrastructure as Code (IaC)?
- What is a container registry?
- Why is environment parity important (dev/staging/prod)?
- What is monitoring vs alerting?
- What is logging level (DEBUG/INFO/WARN/ERROR)?
- What is the role of staging environment?
- What is a runbook?