Question guidemicroservices interview questions

Microservices Interview Questions: Boundaries, Data and Failure

Microservices interviews are rarely about naming service-discovery tools. They are about why the system was split, what complexity the split introduced, and how that complexity is controlled.

Quick answer

Start with the outcome you need

You need to prepare for practical microservices questions beyond framework definitions.

What to remember

Explain why a service boundary exists.
Treat data ownership as part of the boundary.
Connect retries to idempotency and load amplification.
Show how the system is observed and recovered in production.

The answer that fails first

Asked why microservices, most candidates say independent deployment, scaling, and team autonomy. It is correct, it is what every article says, and it earns nothing.

The follow-up is what it cost you, and that is where the round turns. Network calls that used to be function calls, transactions that no longer span the operation, debugging that now requires correlating three logs, and an operational burden that scales with service count.

Candidates who can name the cost are read as having operated microservices. Candidates who only have the benefits are read as having read about them.

Where the boundary goes and why

Boundaries drawn around technical layers produce services that must be deployed together, which is the worst of both architectures. Boundaries drawn around business capabilities produce services that can change independently.

The practical test is the change test: when a typical feature arrives, how many services must change? If the answer is usually more than one, the boundary is wrong, and saying this demonstrates you have watched a split age.

Have an example of a split you would not do. A service owned by nobody, or one extracted so early that its interface was rewritten three times, are both credible and both show judgment.

Data is the hard part

Expect questions about a shared database. The strong answer is that it defeats the point: two services writing the same table cannot be deployed independently because a schema change belongs to both.

Expect distributed transactions. Know why two-phase commit is rarely used in practice, and be able to walk a saga: the steps, the compensating actions, and what happens if a compensation itself fails. That last part is what most candidates have not thought about.

Expect a question about querying across services. Have a position: API composition for small cases, a read model built from events for larger ones, and be able to say what staleness each accepts.

Failure behaviour is what production teaches

A dependency is slow rather than down: this is the question that separates experience from reading. Slow is worse than down, because down fails fast while slow exhausts your threads.

Cover timeouts, retries with backoff and jitter, and a circuit breaker. Then cover why retries can make an outage worse by multiplying load on a struggling dependency, which is the follow-up.

Be able to describe what you actually did to debug across services: correlation identifiers, tracing, and what was still hard. The candidate who says distributed debugging was genuinely difficult is more credible than the one who implies tracing solved it.

Practice checklist

  1. 01Write down three concrete costs microservices imposed on your team.
  2. 02Apply the change test to one boundary in a system you worked on.
  3. 03Prepare one split you would not repeat, and the reason.
  4. 04Walk a saga aloud including a failed compensating action.
  5. 05Explain why a slow dependency is worse than a dead one.
  6. 06Describe what remained hard about debugging even with tracing.

Questions to practice aloud

What evidence justified splitting the original system?

How do you prevent retries from causing duplicate work?

Where do you enforce timeouts and circuit breaking?

How do you debug a failure across multiple services?

Frequently asked questions

What if my company runs a monolith?+

That is answerable and sometimes stronger. Explain why it remains the right choice, where the internal seams are, and what would need to be true before splitting. Judgment about not splitting is judgment.

How much detail is expected on saga implementations?+

Enough to walk one end to end: steps, compensations, and the failure of a compensation. Framework specifics are rarely the point; the reasoning about partial failure is.

Is service mesh knowledge expected?+

Only for infrastructure-leaning roles. For most backend positions, being able to explain what problem a mesh solves and whether you needed it is sufficient.