Designing Building Blocks Flashcards
7 cards from real CPSA practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 7 Designing Building Blocks flashcards as text
Which principle states that a building block should have only one reason to change?
Answer: Single Responsibility Principle
The Single Responsibility Principle (SRP) dictates that each building block should encapsulate exactly one reason for change.
What is the primary purpose of defining explicit interfaces between building blocks?
Answer: To enforce encapsulation and reduce coupling
Explicit interfaces enforce encapsulation by hiding internal details and reduce coupling between building blocks.
In iSAQB terminology, a 'building block' is best described as:
Answer: A named, self-contained architectural element with defined responsibilities
A building block is a named, self-contained architectural element with clearly defined responsibilities and interfaces.
When should a software architect choose to split one building block into two separate blocks?
Answer: When the block has multiple distinct responsibilities that change for different reasons
Splitting is justified when distinct responsibilities evolve independently, aligning with SRP to reduce change impact.
Which coupling type is considered MOST harmful to building block design?
Answer: Content coupling
Content coupling, where one block directly accesses or modifies the internals of another, is the strongest and most harmful form of coupling.
A building block's 'provided interface' is best described as:
Answer: The set of services the block offers to other blocks
A provided interface specifies the services and operations that a building block exposes to other blocks.
What does high cohesion within a building block indicate?
Answer: The block's internal elements are strongly related and focused on a single purpose
High cohesion means all internal elements of a building block work together toward a single, well-defined purpose.