Skip to content
Sharp

Software Architecture · interview question

In a Java e-commerce application, you need to notify multiple services about a completed order without coupling them to the order processing logic. Which design pattern should you use?

Multiple choiceEasychapter-13-curatedpremiumsoftware-architectureobserver-pattern
Choose one answer
Answer and explanation

Correct answer

D. Observer Pattern

Why

The Observer Pattern allows the order processing logic to notify multiple services (observers) about a completed order without being tightly coupled to them. This promotes loose coupling and flexibility.

Test yourself on Software Architecture

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

Start free test
All Software Architecture questions →