Skip to content
Sharp

Microservice Architecture · interview question

Why do teams use a message broker like Apache Kafka in a microservices architecture in production code?

Multiple choiceEasychapter-18-curatedpremiummicroservice-architecturemessage-brokers-kafka
Choose one answer
Answer and explanation

Correct answer

D. To decouple services by allowing asynchronous communication

Why

Message brokers like Apache Kafka enable asynchronous communication between microservices, which helps decouple producers from consumers. This allows services to operate independently and increases system resilience.

Test yourself on Microservice Architecture

A free test with instant, explained results. No account needed.

Start free test
All Microservice Architecture questions →