Bird
0
0

Which of the following is the correct way to describe event-driven communication between microservices?

easy📝 Architecture Q12 of 15
Microservices - Event-Driven Architecture
Which of the following is the correct way to describe event-driven communication between microservices?
AService A calls Service B's API and waits for a response
BService A publishes an event to a message broker and continues processing
CService A directly updates Service B's database
DService A shares its memory space with Service B
Step-by-Step Solution
Solution:
  1. Step 1: Identify event-driven communication

    Event-driven means a service publishes events to a broker without waiting for immediate replies.
  2. Step 2: Match options to event-driven style

    Only publishing to a message broker and continuing processing fits event-driven communication.
  3. Final Answer:

    Service A publishes an event to a message broker and continues processing -> Option B
  4. Quick Check:

    Publish and forget = C [OK]
Quick Trick: Event-driven means publish and continue, not wait [OK]
Common Mistakes:
MISTAKES
  • Confusing direct API calls with event publishing
  • Thinking services share databases directly
  • Assuming shared memory is used

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Microservices Quizzes