What are the most common Microservices interview questions to expect?

Topic: microservices, Interview Prep. Level: Basic.

Answer

Be ready for: When do microservices make sense vs a monolith? How do you handle data consistency without distributed transactions (Saga/outbox)? How do services communicate (sync vs async)? How do you prevent cascading failures (timeout/retry/circuit breaker/bulkhead)? How do you find services (discovery)? How do you secure service-to-service calls? How do you trace/debug across services? How do you version and deploy independently? How do you decompose a monolith? What are the downsides/anti-patterns? Always tie answers to trade-offs and a concrete example. ```text Cheat-sheet mapping problem -> pattern: cross-service consistency -> Saga + Transactional Outbox dual-write -> Outbox + CDC slow/failing dependency -> Timeout + Circuit Breaker + Bulkhead + Fallback find instances -> Service Discovery / k8s DNS cross-service query -> API Composition / CQRS read model debug across services -> Distributed Tracing (trace id) decompose monolith -> Strangler Fig + bounded contexts ```