Skip to content
Sharp

Service Design · interview question

Which move is the best default when dependency injection becomes part of this workflow?

Multiple choiceMediumchapter-13-curatedpremiumservice-designdependency-injection
Choose one answer
Answer and explanation

Correct answer

A. Inject repositories and services at boundary seams so tests and reasoning stay local and explicit.

Why

Inject repositories and services at boundary seams so tests and reasoning stay local and explicit. That is the stronger engineering move because candidates who speak clearly about seams and ownership sound more maintainable. Global hidden dependencies make route behavior harder to predict and harder to override in tests.

Test yourself on Service Design

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

Start free test
All Service Design questions →