CPSA Integration and Interfaces Questions and Answers Flashcards
6 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 6 CPSA Integration and Interfaces Questions and Answers flashcards as text
What is 'event-driven architecture' (EDA) and what integration benefit does it provide?
Answer: A style where components communicate by producing and consuming events, providing loose coupling and temporal decoupling
EDA enables loose coupling and temporal decoupling because producers emit events without knowing who consumes them, and consumers process events at their own pace.
What problem does the 'Saga' pattern solve in distributed system integration?
Answer: Managing long-running distributed transactions across multiple services without using a two-phase commit
The Saga pattern coordinates multi-step transactions across services using a sequence of local transactions with compensating actions to handle failures.
In the context of software interfaces, what is the Liskov Substitution Principle's implication for integration?
Answer: Subtypes must be substitutable for their base types without altering the correctness of the program, ensuring interface contracts are respected
LSP ensures that any component implementing an interface can replace another without breaking consumers, which is fundamental for stable integration contracts.
What is the architectural role of an 'anti-corruption layer' (ACL) in integration?
Answer: It translates between the domain model of an external system and the internal domain model, preventing external concepts from polluting the internal design
An ACL acts as a translation layer that maps between an external bounded context and the internal domain, isolating the internal model from external terminology.
What is 'idempotency' and why is it critical for reliable integration interfaces?
Answer: An operation is idempotent if calling it multiple times produces the same result as calling it once, which is essential for safe retries in distributed systems
Idempotent operations allow clients to safely retry failed or uncertain calls without causing duplicate side effects, improving resilience in distributed integration.
Which of the following best describes 'loose coupling' as a desirable property of software interfaces?
Answer: Components interact through stable, minimal interfaces and have no knowledge of each other's internal implementation
Loose coupling means components depend on abstractions rather than concrete implementations, enabling independent change, testing, and deployment.