11 Microservices Interview Questions Freshers Must Master
The 11 microservices interview questions Indian backend interviews actually ask, with the trade-off answers that get freshers to round two.

Why Every Indian Backend Interview Now Asks About Microservices
Infosys told investors it moved 3 million lines of Hertz's COBOL into a microservices environment using AI at 60% lower cost and 60% faster. That project explains why microservices questions now appear in almost every Indian backend interview — from Bengaluru product companies to TCS and Infosys running large modernisation programmes. These are the questions that actually get asked.
What Interviewers Are Actually Testing
Most candidates memorise the definition and stop there. Interviewers probe three layers: the why (what problems a monolith creates at scale), the how (communication, gateways, databases), and the trade-offs (when microservices are the wrong choice). As a developer who interviewed at four companies noted, every interview had at least eight such questions — mostly about trade-offs and failure modes.
The 11 Questions, From Basic to Round-Two
1. What are microservices?
An architectural style where an application is split into small, independent services, each built around a business capability — payments, users, orders, notifications. Each can be deployed and scaled independently. Don't just recite it; follow with an example, like how Swiggy separates ordering, delivery tracking, and payments.
2. How are microservices different from a monolith?
A monolith packs everything into one deployable unit — one failure domain. Microservices break that into independently deployable pieces. The killer follow-up: "When would you NOT use microservices?" A small team with a simple app is better served by a monolith — saying this shows judgement.
3. How do microservices communicate with each other?
Synchronous — HTTP/REST or gRPC, where the caller waits. Asynchronous — Kafka or RabbitMQ, where the caller fires and continues. Payments need synchronous confirmation; notifications can be queued.
4. What is an API Gateway?
The single entry point for all client requests — it handles routing, authentication, rate limiting, and SSL termination, so individual services don't repeat that logic. Mention Spring Cloud Gateway for Java stacks — Indian job descriptions list it often.
5. What is service discovery?
Services can't hard-code each other's IPs in a dynamic environment where instances scale up and down. A service registry (Eureka, Consul, Kubernetes DNS) lets services find each other at runtime.
6. What is the database-per-service pattern?
Each service owns its own database, so no service reaches into another's data directly. It enforces loose coupling — one service's schema can change without breaking others. The trade-off: cross-service transactions get harder, leading to the saga pattern or eventual consistency.
7. What is a circuit breaker, and why do you need one?
If Service A calls Service B and B is down, A's threads pile up and A fails too — a cascading failure. A circuit breaker (Resilience4j) trips after repeated failures and falls back fast instead of hanging.
8. Kafka or REST — which one and when?
REST for request-response flows needing an immediate answer. Kafka for event-driven flows — order placed, inventory updated, email sent — where services shouldn't be coupled in time. Indian product companies run heavy Kafka pipelines, so expect follow-ups on consumer groups if you claim Kafka experience.
9. What are the main challenges of microservices?
Be ready with specifics: debugging across services (distributed tracing — Zipkin, Jaeger), data consistency without ACID transactions, deployment complexity (CI/CD, Docker, Kubernetes), and network latency. Give your own project example for at least one — Simplilearn's guide covers the categories.
10. How would you split a monolith into microservices?
By business capability, not technical layer — a "service for controllers" is wrong. The strangler pattern is what interviewers want: route traffic through a facade, extract one capability at a time, and let new services gradually replace the monolith — how the big COBOL-to-microservices migrations run.
11. How do you monitor and debug a microservices system?
Centralised logging (ELK), metrics (Prometheus, Grafana), distributed tracing (Jaeger), and correlation IDs passed across services.
Your Preparation Checklist
- Build or rebuild one project as 2-3 actual services (even a gateway + auth + core service)
- Be able to draw your architecture and defend every arrow
- Practise the trade-off questions — they decide round two
- Revise adjacent topics: our guides on REST interview questions and Spring Boot interview questions cover the same rounds
Reading definitions gets you through question 1; live practice gets you through all 11. Run a PrepFox AI mock interview on microservices and see where your answers break before the real interview does. GeeksforGeeks' Java microservices set is a good extra drill.
The bottom line: Indian IT is rebuilding decades of monoliths and pays people who can reason about distributed systems, not just define them. Master the trade-offs and you're ahead of most of the batch.
Ready to put this into practice?
Practice mock interviews, build your resume, and get expert feedback — all on PrepFox.
More from PrepFox Blog
How to Crack Pharma Interview Questions as a Fresher
How to crack pharma interview questions as a B.Pharm fresher: QA vs QC, GMP, deviations, HPLC basics, HR round traps and a 3-step prep plan.
11 Salesforce Interview Questions Indian Freshers Face
11 Salesforce interview questions Indian freshers face in admin, Apex and LWC rounds — with model answers, governor limits, and salary data for 2026.
How to Write a Cover Letter With No Work Experience
How to write a cover letter with no work experience: five proof sources, a four-paragraph structure, a sample letter, and mistakes that get letters rejected.
