← All interview questions

Skill Zuno · skillzunos.com · Fullstack Pro

Spring Boot Micro Service interview questions

Prepare for Spring Boot Micro Service interviews on Skill Zuno. This practice book covers Spring Boot Micro Service interview questions across New, Easy, Medium, Hard, and Diff levels so you can work through real interview-style problems on skillzunos.com.

Open Spring Boot Micro Service on Skill Zuno

Also see the Spring Boot Micro Service tutorial.

Spring Boot is the most common way to build microservices in Java, and Spring Cloud adds the patterns distributed systems need: service discovery, API gateways, centralised configuration, resilience and tracing. Interviews cover designing service boundaries, inter-service communication with REST and messaging, Spring Cloud Gateway, Resilience4j, distributed transactions with sagas, and running services on Kubernetes.

Sample Spring Boot Micro Service interview questions

What does a circuit breaker do?

It tracks failures of calls to a dependency. After too many failures it opens and fails fast without calling, then lets trial calls through to test recovery, which stops failures cascading.

Why should each microservice own its database?

Shared databases couple services through their schemas, so one change can break others. Owning data lets each service evolve and scale independently, communicating through APIs or events.

How do you keep data consistent across services without distributed transactions?

Use a saga: a sequence of local transactions, each publishing an event that triggers the next, with compensating actions to undo earlier steps if a later one fails.

What is the transactional outbox pattern?

The service writes the business change and the event to publish in the same database transaction. A separate process reads the outbox table and publishes events, so no event is lost or sent without the change.

Do you still need Eureka on Kubernetes?

Usually not. Kubernetes Services and DNS already provide discovery and load balancing, so Spring apps can call each other by service name.

What you can practice

  • Spring Boot Micro Service interview questions for beginners and experienced developers
  • Level-based practice: New, Easy, Medium, Hard, and Diff
  • Fullstack Pro topics alongside Spring Boot Micro Service on skillzunos.com

More Fullstack Pro interview questions

All interview questions