volume_mute

Repository Pattern - Advantages

publish date2026/06/11 07:37:9.980331 UTC

volume_mute

Which of the following are genuine advantages of the Repository architectural pattern? Select ALL that apply.

Correct Answer

(1) Components can be independent - they do not need to know about the existence of other components
(2) Changes made by one component can be propagated to all other components through the repository
(3) All data can be managed consistently - for example, backups can be done at the same time since all data is in one place

Explanation

Repository advantages: component independence (no direct knowledge of other components); change propagation; consistent data management. The disadvantages are that the repository IS a single point of failure, and distributing the repository across machines is often difficult - so the last two options are incorrect.

Reference

Software Engineering, Ian Sommerville, 10th edition


Quizzes you can take where this question appears