โ† All CPSA Flashcard Decks

Architectural Patterns and Styles 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 Architectural Patterns and Styles flashcards as text
  1. A system must process large volumes of financial transactions in strict sequential order. Which architectural style is most appropriate?

    Answer: Pipe-and-Filter with sequential filters

    Pipe-and-Filter enforces strict sequential processing by chaining filters, ensuring each transaction passes through every processing stage in order.

  2. Which architectural pattern is best suited for systems that need to support multiple client interfaces (e.g., mobile, web, third-party) each with different data requirements?

    Answer: Backend for Frontend (BFF) pattern

    BFF provides a dedicated API layer per client type, allowing each interface to receive data shaped to its specific needs without compromising other clients.

  3. In the context of the CPSA framework, which architectural pattern directly supports the 'Open/Closed Principle' by allowing new behavior to be added without modifying the core?

    Answer: Plugin / Microkernel Architecture

    Microkernel (Plugin) architecture keeps a minimal stable core and allows new features to be added as plugins, so the core remains closed for modification but open for extension.

  4. When evaluating architectural patterns, which ISO 25010 quality attribute does CQRS most directly improve for the read side?

    Answer: Performance efficiency (scalability of reads)

    CQRS allows the read model to be independently scaled and optimized (e.g., with denormalized read stores) without affecting the write model, directly improving read performance.

  5. A team adopts a 'Modular Monolith' instead of microservices. What is the primary architectural benefit of this choice?

    Answer: Strong module boundaries with simpler deployment and operations than distributed services

    A modular monolith enforces logical separation through well-defined module interfaces while avoiding the operational overhead of deploying, networking, and monitoring separate services.

  6. Which of the following is a key architectural decision criterion when choosing between Choreography and Orchestration for a saga?

    Answer: Orchestration is preferred when visibility into workflow state and centralized error handling are priorities

    Orchestration centralizes workflow logic and state in one place, making it easier to observe, debug, and handle failures, while choreography distributes that responsibility across services.

  7. In software architecture documentation, an Architecture Decision Record (ADR) is used to capture which information?

    Answer: The context, decision made, and consequences of a significant architectural choice

    An ADR records why an architectural decision was made, what alternatives were considered, and what trade-offs were accepted, preserving institutional knowledge for future maintainers.