Skip to content
Sharp

Service Design · interview question

A teammate submits shaky dependency injection code. Which review comment is the strongest?

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

Correct answer

B. Make the rule clearer and easier to explain. Inject repositories and services at boundary seams so tests and reasoning stay local and explicit.

Why

The best review comment anchors the change to readability, correctness, and future maintenance. 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 →