Skip to content
Sharp

Software Architecture · interview question

Why do teams use the Observer Pattern over a simple callback mechanism in production code?

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

Correct answer

A. It allows multiple independent observers to be notified.

Why

The Observer Pattern allows multiple independent observers to be notified of changes, providing flexibility and decoupling, as opposed to a simple callback mechanism which may be limited to a single listener.

Test yourself on Software Architecture

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

Start free test
All Software Architecture questions →