Skip to content

About

Repo for Interview Preparation as a Full stack developer or Front end Dev or Backend Developer

Topics

Resources

Contributing

Stars

169 stars

Watchers

8 watching

Forks

Latest commit

 

History

33 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Java, Spring, Microservices & System Design Interview Guide (Junior to Senior)

One place to prepare for backend and full-stack interviews: system design (HLD and LLD), distributed systems, DSA, microservices, Java (8 to 25), OOP and design patterns, Spring Boot (2 to 4), Hibernate, SQL, Redis, MongoDB, Kafka, REST, gRPC, GraphQL, Docker, Kubernetes, cloud (AWS, GCP, Azure), React, Next.js, Node.js, testing, senior/staff leadership and AI/LLMs.

Answers are written in simple English, with a real-life story first, a small example, a simple diagram where it helps, and a "Say this in the interview" line you can use as it is.

📱 Study on your phone: interviewprep.ankitbansal.dev — search any topic, swipe one card at a time, follow a plan, revise with flashcards.

Started in 2019, rebuilt in 2026 for modern Java and senior-level interviews. Want to help? Read CONTRIBUTING.md.

Table of contents

How to use this guide

  1. Pick a plan below: 2 weeks, 1 month or 2 months. Interview tomorrow? Go to the crash course.
  2. Read the question first. Try to answer it out loud before you read the answer. Speaking is the skill you are training.
  3. Draw it. For system design, draw boxes and arrows on paper or Excalidraw.
  4. Add your own story. For each topic, think: "Where did I use this at work? What went wrong?" Senior interviews are won with real stories.
  5. Tick the day and commit. Each plan has one row per day. Mark it done and push. Small daily progress beats a big weekend.

Every answer follows the same shape:

Part Why it is there
In one line Your first sentence in the interview
Story Helps you remember and explain
How it works The real details
Diagram / Example Show, don't only tell
Good and bad Seniors always talk about trade-offs
Say this in the interview Ready-made answer in simple words
They may ask next Follow-up questions

Study plans

Every day, in every plan:

  • Coding: solve 2 problems (pattern of the week below). Time-box 40 minutes each. Use the 16 patterns and 47 problems and its 4-week DSA plan.
  • Speak: explain today's topic out loud for 2 minutes. Record yourself on the phone if you can.
  • Revise: read yesterday's "Say this in the interview" lines once more (10 minutes).
  • Commit: tick the day (✅) in the plan table and push. Commit message: day-07: caching.

Coding pattern of the week (use it for the daily 2 problems):

Week Pattern
1 Arrays, hashing, two pointers
2 Sliding window, stack, queue
3 Binary search, linked list
4 Trees, BST, recursion
5 Graphs (BFS, DFS, topological sort)
6 Heap, intervals, greedy
7 Dynamic programming
8 Mixed, timed (like a real interview)

The 2-week plan uses weeks 1–2 only, mixed. The 1-month plan uses weeks 1–4.

2-week plan

For: interviews already scheduled. About 6–8 hours a day. Focus only on what is asked most.

Day Study Practice Done when you can...
1 How to answer a system design question, Capacity estimation Estimate numbers for 3 systems (orders, chat, video) do the "1M orders per day" math without notes
2 Scaling, Stateless services, Load balancing, Caching, CDN Draw a 3-tier app with cache and CDN explain cache-aside and 2 cache problems
3 Replication, Sharding, Consistent hashing, Consistency, CAP, Indexes Pick a shard key for orders, chat, and users say when you need strong vs eventual consistency
4 Message queues, WebSockets vs SSE, Unique IDs, Rate limiting Design a rate limiter (30 min) draw token bucket and explain it
5 Monolith vs microservices, Sync vs async, Saga, Outbox, Idempotency Draw the order saga with compensations explain the "dual write" problem
6 Timeouts, Retries + jitter, Circuit breaker, Bulkhead, API gateway Explain what happens when payment service is slow describe circuit breaker states
7 Kafka basics, Partitions, Ordering, Delivery, Duplicates Mock 1: Amazon order processing (45 min) guarantee order per customer and handle duplicates
8 SQL joins, Transactions, Locking Do 5 of the SQL query problems by hand (2nd highest salary, top N per group) explain optimistic vs pessimistic with the "last seat" story
9 Java concurrency story, Virtual threads Write a thread-safe counter 3 ways explain race condition, volatile, deadlock
10 Java 8 to 25, JVM memory, G1 vs ZGC Rewrite one old Java 8 class with records, switch, sealed list 3 changes per LTS version
11 Spring Boot 2 to 4, MVC vs WebFlux, Spring Core (DI, scopes, AOP proxies), @Transactional Explain why @Transactional fails on self-call explain auto-configuration and bean lifecycle
12 Case studies: news feed + WhatsApp Mock 2: design WhatsApp (45 min) handle offline users and message order
13 Case studies: BookMyShow + YouTube Mock 3: design BookMyShow (45 min) stop double booking of the same seat
14 Behavioral questions, Crash course Say 6 STAR stories out loud answer "tell me about yourself" in 2 minutes

1-month plan

For: you have a few weeks before interviews start. About 4–5 hours a day. Sundays are for a mock interview and revision.

Day Study Practice / Mock
1 How to answer a system design question Read the 60-minute plan, try it on "URL shortener"
2 Capacity estimation Do numbers for orders, chat, video
3 Scaling, Stateless services, Load balancing Draw a 3-tier app
4 Caching, CDN List cache problems and fixes
5 Replication, Sharding, Consistent hashing Pick shard keys for 3 systems
6 Consistency, CAP, SQL vs NoSQL, Indexes Choose a database for 5 use cases
7 Mock: URL shortener + rate limiter Revise week 1
8 Message queues, WebSockets vs SSE, Blob storage Draw file upload with pre-signed URL
9 Unique IDs, Rate limiting, Bloom filter Explain Snowflake ID bits
10 Geohash, Inverted index, Video streaming Explain how search is fast
11 Monolith vs microservices, Sync vs async, API gateway Explain availability math for 5 services
12 Saga, Outbox, Idempotency Draw order saga with compensation
13 Timeouts, Retries, Circuit breaker, Bulkhead "Payment service is slow. What happens?"
14 Mock: Amazon order processing Revise week 2
15 Kafka basics, Partitions, Ordering How many partitions for 10k msg/s?
16 Delivery guarantees, Duplicates Write an idempotent consumer
17 SQL joins, Transactions, Locking 10 SQL query problems by hand
18 Case studies: news feed, WhatsApp Design both, 30 min each
19 Case studies: YouTube, YouTube search Design both, 30 min each
20 Case studies: BookMyShow, payments / banking Design both, 30 min each
21 Mock: Uber or Hotstar live Revise week 3
22 Java concurrency story (eras 1–4) Thread-safe counter 3 ways, deadlock example
23 Java collections: HashMap, ConcurrentHashMap internals Explain put() step by step
24 Java 8 to 25, Virtual threads, Streams 10 stream coding problems
25 JVM memory, G1 vs ZGC Explain 3 kinds of OutOfMemoryError
26 Spring Core: DI, scopes, lifecycle, auto-configuration, AOP proxies, @Transactional Explain self-invocation problem
27 Spring Boot 2 to 4, MVC vs WebFlux, security (OAuth2, JWT) Explain JWT flow with a diagram
28 Mock: Java + Spring deep dive (ask a friend or use AI as interviewer) Revise week 4
29 Behavioral questions, Next.js / Node.js if your role needs it 6 STAR stories out loud
30 Crash course + rest Sleep well

2-month plan

For: building strong depth while applying for jobs. About 3–4 hours a day. This is also the build plan for this guide: each day, the answers for that topic are written or improved here and committed.

Week 1: System design basics

Day Topic Commit to this guide
1 How to answer a system design question, Capacity estimation Review answers, add your own numbers
2 Scaling, Stateless services, Load balancing Add your production story
3 Caching, CDN Add a cache incident you saw
4 Replication, Sharding, Consistent hashing Review answers
5 Consistency, CAP, SQL vs NoSQL, Indexes Review answers
6 Message queues, WebSockets vs SSE, Blob storage, IDs Review answers
7 Mock: URL shortener. Revise the week. Review answers

Week 2: Microservices, Kafka, databases

Day Topic Commit to this guide
8 Monolith vs microservices, Sync vs async, API gateway Answer old Microservices questions
9 Saga, Outbox, Idempotency CQRS and event sourcing answers
10 Timeouts, Retries, Circuit breaker, Bulkhead Load shedding, backpressure, graceful degradation
11 Kafka basics, Partitions, Ordering Answer old Kafka questions
12 Delivery guarantees, Duplicates Kafka vs RabbitMQ answer
13 SQL joins, Transactions, Locking SQL query problems + old MySQL questions
14 Mock: Amazon order processing. Revise. Rate limiter case study

Week 3: Case studies, part 1

Day Topic Commit to this guide
15 Rate limiting, Bloom filter Review rate limiter
16 News feed (Facebook / Instagram) Case study: news feed
17 WhatsApp (chat, groups, online status) Case study: WhatsApp
18 YouTube (upload and watch) Case study: YouTube
19 YouTube search and typeahead Case study: search + typeahead
20 BookMyShow (seat booking) Case study: BookMyShow
21 Mock: one of this week's systems. Revise. Fix gaps found in the mock

Week 4: Case studies, part 2

Day Topic Commit to this guide
22 Payment gateway and bank ledger Case study: payments / banking
23 Uber / Ola (location, matching) Case study: Uber
24 Hotstar live (millions join at once) Case study: Hotstar live
25 Notification service, distributed job scheduler Case studies: notifications, scheduler
26 Dropbox / Google Drive Case study: Dropbox
27 Flash sale, stock exchange Case studies: flash sale, stock exchange
28 Mock: random system. Revise. Fix gaps

Week 5: Java

Day Topic Commit to this guide
29 Java concurrency story Executors, CompletableFuture answers
30 Collections: HashMap, ConcurrentHashMap internals Update old collection answers
31 Java 8 to 25 Update old Java answers
32 Core Java deep dive (HashMap, generics, JVM), JVM memory, G1 vs ZGC Memory leak and high GC debugging story
33 Virtual threads, streams Solve 15 stream problems
34 OOP, SOLID, design patterns Self-test with OOPS and Design Patterns questions
35 Mock: Java deep dive. Revise. Fix gaps

Week 6: Spring and low-level design

Day Topic Commit to this guide
36 Spring Core: DI, scopes, lifecycle, AOP, filters vs interceptors, how Boot works Self-test with Spring questions
37 @Transactional, propagation, Hibernate and JPA Self-test with JPA / Hibernate questions
38 Spring Boot 2 to 4, observability Review answers
39 Spring Security, OAuth2, JWT Review answers
40 MVC vs WebFlux, testing (JUnit 6, Mockito, Testcontainers) Review answers
41 Low-level design: parking lot, BookMyShow, elevator, Splitwise Design 2 case studies on paper first
42 Mock: low-level design. Revise. Fix gaps

Week 7: Full stack and cloud

Day Topic Commit to this guide
43 Node.js event loop and scaling Review answers
44 React (with the machine coding round), Next.js Build 2 machine-coding problems
45 Cloud: AWS, GCP, Azure Name the service for each need on all 3 clouds
46 Docker and Kubernetes Self-test with Docker / Kubernetes questions
47 Redis and MongoDB Self-test with Redis / MongoDB questions
48 Production-ready apps: observability, incidents, disaster recovery Review answers
49 Mock: full-stack system (Next.js + Spring + AWS). Revise. Fix gaps

Week 8: Harder systems, behavioral, final polish

Day Topic Commit to this guide
50 Multi-tenant SaaS, multi-region Case studies
51 Leaderboard, top-K trending, ad click counting Case studies
52 AI and LLMs: LLM basics and RAG Build a small RAG demo
53 Behavioral questions, staff-level stories Write your 8 STAR stories (keep them private if you want)
54 Weak areas from your mock notes Fix gaps
55 Full mock loop: coding + system design + behavioral Fix gaps
56 Crash course + rest Final commit

Crash course (last-minute preparation)

You don't have time to learn new things now. Your goal is to remember and speak clearly.

The day before (about 6 hours)

Time Do this
1 hour Read the Top 20 questions. Only the In one line and Say this in the interview parts.
1 hour Read How to answer a system design question and Capacity estimation. Do one estimate on paper.
1.5 hours One full mock design out loud, with a timer: Amazon order processing or the system the company is famous for.
1 hour Java + Spring: concurrency, Java 8 to 25, virtual threads, Spring Boot 2 to 4.
1 hour 2 easy-medium coding problems. Only to warm up, not to learn.
30 min Read your STAR stories. Practice "tell me about yourself". Read about the company.
Night Stop. Sleep 7–8 hours. A tired brain cannot design systems.

The last hour

  • Read the one-page sheet below. Nothing else.
  • Keep water, paper and a pen ready. Open your drawing tool. Test camera and microphone.
  • Write 3 questions for the interviewer (ideas here).

One-page sheet

System design steps (60 minutes):

  1. Clarify (5 min): who uses it, main features, scale, what is out of scope.
  2. Numbers (5 min): users, requests per second, storage. 1 day ≈ 100,000 seconds.
  3. APIs + data model (10 min).
  4. Simple design first (10 min): client → load balancer → services → database / cache / queue.
  5. Deep dive (15 min): the 2–3 hard parts.
  6. Failures + trade-offs (10 min): "What if X goes down?"
  7. Summary (5 min).

Numbers to remember:

Thing Number
Seconds in a day 86,400 ≈ 100,000
1 million per day ≈ 12 per second (peak ≈ 2–3x)
Read from memory (RAM) ~100 nanoseconds
Read from SSD ~100 microseconds
Network call in same data center ~0.5 ms
Network call across continents ~150 ms
One server (simple API) ~1,000–5,000 requests/second

Lines that always work:

  • "Let me first clarify the requirements before I design."
  • "I will start simple, then scale the parts that need it."
  • "This is a trade-off. We get X, but we pay Y."
  • "What happens if this service goes down? Let me walk through it."
  • "For money, I choose strong consistency. For likes and views, eventual consistency is fine."
  • "I will make this operation idempotent, so retries are safe."

Useful sentences when you are stuck (it is normal, and it is fine):

  • "Let me take a minute to think about this."
  • "Can I ask a question to understand this better?"
  • "Let me say what I understood, so we are on the same page."
  • "I have not used this directly, but here is how I would approach it."

Top 20 questions to master first

If you only have little time, master these. Each link goes to the full answer.

# Question Area
1 Design Amazon order processing System design
2 Estimate capacity for 1 million orders per day System design
3 How many service instances do you need, and why? System design
4 Sync vs async communication between microservices Microservices
5 Saga pattern Microservices
6 Kafka partitions and consumer groups Kafka
7 How do you guarantee message ordering? Kafka
8 How do you handle duplicate events? Kafka
9 Database consistency: strong vs eventual Databases
10 SQL joins and self join Databases
11 Optimistic vs pessimistic locking Databases
12 Exponential backoff with jitter Resilience
13 Circuit breaker Resilience
14 Java concurrency and shared data Java
15 Java 8 → 17 → 21 → 25 Java
16 G1 vs ZGC Java
17 Virtual threads Java
18 Spring Boot 2 → 3 → 4 Spring
19 Spring MVC vs WebFlux Spring
20 Next.js architecture and Server Components Frontend

Behavioral questions

Senior interviews always have a behavioral round. Prepare 8 real stories from your work. One story can answer many questions.

For senior and staff topics (design docs, tech debt, leading incidents, mentoring, influence) and 15 sample staff-level answers, see Senior and staff engineering.

Use STAR to tell a story:

Letter Meaning How long
Situation Where were you? What was the project? 2 lines
Task What was your job or the problem? 1 line
Action What did you do? Say "I", not "we". Most of the story
Result What changed? Use numbers: "latency went from 2 s to 300 ms". 2 lines

Stories to prepare:

  1. A hard technical problem you solved (production issue, performance fix).
  2. A system you designed from scratch.
  3. A disagreement with a teammate or manager, and how you solved it.
  4. A mistake you made, and what you learned.
  5. A time you helped or mentored someone.
  6. A time you delivered under a tight deadline.
  7. A time you changed something without being asked (ownership).
  8. A time you had to say "no" or push back on a requirement.

Common questions:

  • Tell me about yourself. (2 minutes: current role → biggest achievement → what you want next.)
  • Why are you looking for a change? / Tell me about your layoff.
  • Tell me about a project you are proud of.
  • Tell me about a time you failed.
  • How do you handle conflict in the team?
  • How do you make technical decisions?
  • How do you mentor juniors?
  • Why this company?

About a layoff: keep it short, honest and positive. Layoffs are common and interviewers know it. Example:

"My company reduced the team size in a restructuring, and my role was affected along with many others. It was not about performance. I used the time to sharpen my system design and modern Java skills, and I am excited to bring my 10+ years of backend experience to a team like yours."

Then stop. Do not over-explain.

System Design

Basics, all in one file: docs/system-design.md

Case studies, one file each (full list and status):

Distributed systems fundamentals: docs/distributed-systems.md: clocks, Raft, quorums, consistency models, 2PC, CRDTs, Elasticsearch and RabbitMQ.

Low-level design (LLD / object-oriented design): docs/lld-case-studies.md: UML basics, a repeatable method and 20 case studies (parking lot, BookMyShow, elevator, vending machine, Splitwise, ATM, chess…).

Older practice list (from 2019, still good): full-text search, elevator, coffee vending machine, parking system, Quartz scheduler, web crawler, Pastebin, push notifications, Instagram, Dropbox, Messenger, Twitter, Netflix, BookMyShow, typeahead, rate limiter, event management, Twitter search, news feed, Yelp / nearby friends, Uber, Quora, UberEats, Reddit, HackerRank.

General Topics

DS Algo

Answers: dsa-coding-round.md

Codechef DS certification and preparation path with required links

Standford Algorithms Playlist 1
Standford Algorithms Playlist 2
Sample DS Interview questions
Geeks for Geeks for almost all types of algorithms example in the world

OOPS

Answers: oop-clean-code.md

OOPs concept theory
Characteristics of good OOD

Principles

Answers: oop-clean-code.md

Clean Code

Answers: oop-clean-code.md

-- Gist link -- https://gist.github.com/bansalankit92/6119c4f7fabe11b7a174a99f5a7bb376

Design Patterns

Answers: oop-clean-code.md

-- Design patterns are typical solutions to common problems in software design. Each pattern is like a blueprint that you can customize to solve a particular design problem in your code.

Object Oriented Design

Answers: lld-case-studies.md

Object-Oriented Design and UML

Object Oriented Design Case Studies

Frontend

Answers (simple English, with diagrams and code):

Topic What's inside
React How React renders, hooks (stale closures, when not to use useEffect), performance, React 19, architecture for big apps, design systems, state, data fetching, testing, the "500k-line app in 90 days" question
JavaScript Event loop, closures, this, prototypes, promises, V8 engine, callbacks, functional programming, DOM events, generators, Proxy, Web Workers, 15 output puzzles, 45 coding problems (debounce, Promise.all, Promise from scratch, LRU…)
TypeScript Narrowing, generics, utility and mapped types, satisfies, tsconfig, TS 6 → 7, 16 coding tasks
CSS and Tailwind Box model, specificity, flexbox, grid, responsive, modern CSS, Tailwind v4, 14 coding tasks
Frontend UI and web What happens when you type a URL, browser rendering, accessibility, Core Web Vitals, frontend security, frontend system design
Next.js App Router, Server vs Client Components, rendering, caching and Cache Components, Server Actions, auth and BFF with Spring, deployment, security, e-commerce page design
Testing JS, React and Node Vitest vs Jest, Testing Library, MSW, Playwright, accessibility tests, flaky tests, CI

The older question lists below are answered in these files.

General

Answers: frontend-ui.md

Js

Answers: javascript.md

Basics

Advanced

New features

JavaScript Concepts JavaScript Professionals Must Know Well

HTML

Answers: frontend-ui.md

CSS

Answers: css-tailwind.md

Interview Questions

Next.js

Answers: docs/nextjs.md

  • Next.js architecture and Server Components (App Router, Server vs Client Components, SSR / SSG / ISR, caching, Next.js 15 → 16, calling a Spring Boot backend)
  • Coming next: Server Actions, Route Handlers, performance for large apps, React 19 basics.

Backend

Answers (simple English, with diagrams and code):

Topic What's inside
Core Java deep dive HashMap and ConcurrentHashMap internals, collections Big-O, strings, generics, exceptions, class loading, JIT, Java memory model, 15 coding questions
Java · concurrency · streams Java 8 → 25, JVM memory, GC, threads to virtual threads, 65 stream problems
DSA: the coding round How the round is scored, Big-O, 16 patterns, 47 problems with tested Java, a 4-week plan
OOP, SOLID, design patterns, clean code 4 pillars, SOLID with bad/good code, all 23 GoF patterns, clean code, code smells
Spring and Spring Boot Spring Core (IoC, bean scopes, lifecycle, stereotypes, annotations cheat sheet), how Boot works, AOP proxies, DispatcherServlet, filters vs interceptors, Boot 2 → 4, WebFlux
Spring questions (README list) Every Spring Core, MVC, Boot, AOP and Spring 5 question below, answered
Spring ecosystem Security (filter chain, JWT, OAuth2), Data JPA, validation, caching, Spring Cloud, observability, Batch, Spring AI
Testing Spring and Java JUnit 6, Mockito, test slices, @MockitoBean, Testcontainers, flaky tests, coverage
Hibernate and JPA Entity states, persistence context, dirty checking, N+1, caching, batching, locking, Hibernate 7
SQL · transactions and locking Indexes, EXPLAIN, window functions, CTEs, MVCC, partitioning, 25 query problems
Redis · MongoDB Caching patterns, locks, rate limiting, cluster · schema design, indexes, aggregation, sharding
REST APIs and web services HTTP semantics, status codes, API design, pagination, versioning, ETags, webhooks, SOAP
gRPC, GraphQL and WebSockets HTTP/2, Protobuf, streaming, deadlines, gRPC load balancing, Spring gRPC, DataLoader, federation, scaling WebSockets, choosing an API style
Distributed systems Clocks, Raft consensus, quorums, consistency models, 2PC and TCC, CRDTs, gossip, Elasticsearch internals, RabbitMQ vs Kafka vs SQS
Kafka · Microservices KRaft, replication, exactly-once, DLT · 12-factor, saga, outbox, CQRS, DDD, anti-patterns
Node.js Event loop, libuv, streams, auth, databases, queues, WebSockets, 12 coding problems
Debugging Spring Boot Startup errors, missing beans, breakpoints inside Spring, slow apps

The older question lists below link each question to its answer.

Java

Answers: docs/java.md

Modern Java (answered in simple English):

Core Java questions (2019 answers, being updated to Java 21/25):

OOPs in Java
Solid Principles in Java

Spring

Answers: docs/spring.md

Spring Core

Answers: spring-questions.md

Spring Web MVC

Answers: spring-questions.md

Spring Boot

Answers: spring-questions.md

Spring Data Access

Spring Aspect-Oriented Programming (AOP)

Answers: spring-questions.md

Spring 5

Answers: spring-questions.md

Answered in Spring Reactive interview questions.

Database Connectivity - JDBC, Spring JDBC & JPA, Hibernate

Answers: hibernate-jpa.md

https://www.journaldev.com/3633/hibernate-interview-questions-and-answers

Unit Testing

Answers: spring-testing.md

Node.js

Answers: docs/nodejs.md

  • Event loop phases, process.nextTick vs setImmediate, what blocks the loop, worker threads vs cluster, streams and backpressure, Express / Fastify / NestJS, scaling, memory leaks, graceful shutdown, Node 22–26, Node vs Java/Spring

Web Services

SOAP Web Services

Answers: web-services.md

RESTful Web Services

Answers: web-services.md

https://github.com/in28minutes/in28minutes-initiatives/blob/master/The-in28Minutes-CourseGuides/spring-interview-questions.md

Databases

SQL, transactions and locking

Answers: docs/databases.md

MongoDB

Answers: mongodb.md

https://www.fullstack.cafe/
http://www.globalguideline.com/interview_questions/Questions.php?sc=MongoDB

MySQL

Answers: sql.md

Microservices

Answers: docs/microservices.md

Microservices patterns

Group Patterns
Breaking the system into services Monolith vs microservices · Split by business area (DDD) · Strangler fig (replace old system piece by piece) · Anti-corruption layer
Data Database per service · Saga · Transactional outbox · CQRS · Event sourcing · CDC (Debezium) · API composition
Talking between services Sync vs async · Idempotency · Pub/sub · Dead-letter queue
Front door API gateway and BFF · Service discovery · Service mesh / sidecar
Staying alive when things fail Timeouts · Retry with backoff and jitter · Circuit breaker · Bulkhead · Rate limiting · Fallback · Load shedding
Seeing what is happening Logs · Metrics · Distributed tracing (OpenTelemetry) · Health checks · Correlation IDs
Releasing safely Blue-green · Canary · Rolling · Feature flags · 12-factor app
Security OAuth2 / OIDC · JWT · mTLS between services · Secrets management
Testing Contract testing (Pact, Spring Cloud Contract) · Testcontainers
Mistakes to avoid Distributed monolith · Shared database · Chatty services · Too-small services

Linked items have full answers. The rest are added following the 2-month plan.

Note on the old Netflix stack: Zuul, Hystrix and Ribbon are retired. Today we use Spring Cloud Gateway, Resilience4j and Spring Cloud LoadBalancer. See API gateway and BFF.

Microservices questions

Answers: microservices.md

Apache Kafka

Answers: docs/kafka.md

More questions to practice:

Topics

Interview Questions

https://gist.github.com/bansalankit92/9414ef3614229cdca6053464fedf5038

Questions generated with markdown-toc

Reference Interview Questions

Docker

Answers: docker-kubernetes.md

Tutorials

Interview Questions and Answers

Docker questions link generated with markdown-toc

References:
https://www.edureka.co/blog/interview-questions/docker-interview-questions/
https://www.educba.com/docker-interview-questions/
https://www.fullstack.cafe/

Kubernetes

Answers: docker-kubernetes.md

Tutorial/Concept

Interview Questions
https://www.edureka.co/blog/interview-questions/kubernetes-interview-questions/
https://www.algrim.co/posts/145-kubernetes-interview-questions#q-1

Redis

Answers: redis.md

Topics

Interview Questions

https://redis.io/documentation
https://redis.io/topics/data-types-intro

Difference between Apache Kafka and Redis

Answers: redis.md

https://stackoverflow.com/a/37993809/4428927

Akka

Answers: microservices.md

Akka is a open-source library or a toolkit written in Scala to create concurrent, distributed and fault-tolerant application.

Tutorials

https://doc.akka.io/docs/akka/current/general/index.html

AI and LLMs

Senior backend interviews now often ask how you would build with LLMs. Start with the basics, then RAG.

Topic What's inside
AI and LLM basics How LLMs work, prompting, structured output, tool calling, agents, MCP, guardrails, evals, cost and latency, an LLM gateway design, Spring AI
RAG Chunking, embeddings, vector databases, hybrid search, reranking, citations, evaluation, "design a chatbot over company docs"
Inference, fine-tuning and local models Prompt vs RAG vs fine-tune, GPU memory math, quantization, Ollama / llama.cpp / vLLM, LoRA on your own docs, running it locally
AI projects end to end OCR (English + Hindi), an astrology chart explainer, a granth assistant that answers only from one scripture
Coding with AI assistants The workflow that works, giving context, reviewing AI code, security, how to talk about AI in interviews

Production-ready apps

Topic What's inside
Production-ready apps (backend + frontend) Logs, metrics, traces, OpenTelemetry, ELK / Loki / Grafana, APM (New Relic, Datadog…), frontend monitoring, analytics, SLOs and alerts, 7 incident debugging walkthroughs, safe deploys, a go-live checklist
Docker and Kubernetes Images, Dockerfiles for Spring and Node, JVM in containers, pods, services, probes, autoscaling, GitOps, a troubleshooting runbook
Cloud: AWS, GCP, Azure One table of service names on all 3 clouds, compute choices, VPC, IAM, databases, messaging, DR, cost
Debugging Spring Boot from the inside Reading startup errors, conditions report, Actuator, breakpoints inside Spring, debugging security, transactions and slow apps

Questions to ask the interviewer

At the end they ask: "Do you have any questions for us?" Always ask 2 or 3. Saying "No, I am good" sounds like you are not interested.

Story: Buying a house, you don't only answer the seller's questions. You also ask: "Does the roof leak? How are the neighbours?" Good questions show you are serious, and the answers tell you if you want to live there.

The best 10 questions (pick 2 or 3)

# Question Ask whom Why it works
1 "What would a great first 90 days look like for this role?" Hiring manager Shows you think about results. You learn what they really expect.
2 "What is the team's biggest challenge right now, and how would this role help?" Anyone You learn the real problem. You can link it to your own experience in one line.
3 "How does code go from a laptop to production here? How often do you deploy?" Engineer Shows a senior, production mindset. Tells you about CI/CD, tests and on-call.
4 "Tell me about a recent incident or outage. What changed after it?" Engineer / manager Shows you care about reliability. Blameless answers mean a healthy team.
5 "How are technical decisions made? For example, picking a new database or library." Senior engineer Shows you want to own design. You learn if there are design docs, RFCs or one boss.
6 "How do you balance new features with tech debt and maintenance?" Manager Tells you if the code is a mess and if anyone gives time to fix it.
7 "What does success look like in this role after one year? How is performance measured?" Hiring manager Clear goals = fair reviews. Vague answer = warning sign.
8 "What is the team size and mix? Who would I work with most closely?" Manager You learn about seniors, juniors, product and QA around you.
9 "How is the team using AI coding tools today?" Engineer Modern and practical. Shows you keep up, without saying "AI" ten times.
10 "Is there anything in my background that makes you unsure I fit? I'd like to answer it now." Last round / manager Brave and senior. You get a chance to fix a doubt before they decide.

Say this in the interview:

"Yes, I have a couple. What would a great first 90 days look like for this role? And what is the team's biggest challenge right now?"

Tips:

  • Ask about work, team and impact in technical rounds. Keep salary, leave and notice period for HR.
  • Listen, then connect: "Interesting. At my last job we had the same problem with slow deploys. I fixed it by..." (one line only).
  • Don't ask what you can find on their website ("What does your company do?").
  • Write your 3 questions before the call. Change one based on what you heard in the interview.
More questions (older list)
  • What is the most important/valuable thing you have learnt from working here?
  • How do your clients and customers define success?
  • What would you change around here if you could?
  • How do you evaluate new technologies? Who makes the final decisions?
  • How do you know what to work on each day?
  • Do you tend to roll your own solutions more often or rely on third party tools? What's the rationale in a specific case?
  • How do you measure individual performance?
  • What does a typical day look like for you?
  • What do you think the company can improve at?
  • What is your policy on working from home/remotely?
  • What are the engineering challenges that the company/team is facing?
  • What is the most fulfilling/exciting/technically complex project that you've worked on here so far?
  • What is your stack? What is the rationale for/story behind this specific stack?
  • What do you measure? What are your most important product metrics?
  • What does the company do to nurture and train its employees?
  • If you hire person, what do you have for him to study product you're working on and processes in general? Do you have specifications, requirements, documentation?
  • Tell me about the main products of your company.
  • How do you train/ramp up engineers who are new to the team?
  • What are some weaknesses of the organization?
  • Why did you choose to come to this company?
  • What is the most frustrating part about working here?
  • How does the engineering team balance resources between feature requests and engineering maintenance?
  • What makes your product competitive?
  • Is the team growing, and what sort of opportunities will there be in the next year/3 years?
  • What is your team's biggest challenge right now?
  • What is the current team composition like?
  • Why have the last few people left?
  • How are you funded?
  • What is unique about working at this company that you have not experienced elsewhere?
  • When was the last time you interacted with a founder? What was it regarding? Generally how involved are the founders in the day-to-day?
  • What has been the worst technical blunder that has happened in the recent past? How did you guys deal with it? What changes were implemented afterwards to make sure it didn't happen again?
  • What is the most costly technical decision made early on that the company is living with now?
  • How much time do you spend on new project development versus maintenance?
  • What are your highest priorities right now? For example, new features, new products, solidifying existing code, reducing operations overhead?
  • Does the company culture encourage entrepreneurship? Could you give me any specific examples?
  • What would I work on if I joined this team and who would I work most closely with?
  • Are you profitable? If no, what's your plan for becoming profitable?
  • How long does the average engineer stay at the company?

Open source contributions

Awesome Repo for beginners

For contributing go through this article on First Time Contributions

About

Repo for Interview Preparation as a Full stack developer or Front end Dev or Backend Developer

Topics

Resources

Contributing

Stars

169 stars

Watchers

8 watching

Forks

Releases

Packages

Used by

Contributors

Languages