System Architecture & Design Flashcards
7 cards from real CTP practice questions. Tap to flip, then mark Knew It or Still Learning โ missed cards come back until you master them.
Read the first 7 System Architecture & Design flashcards as text
A team must let independent services react to an order being placed without the order service knowing who the consumers are. Which pattern fits best?
Answer: Publish/subscribe messaging
Publish/subscribe decouples producers from consumers by routing events through a broker or topic.
Which statement best describes the CAP theorem for a distributed data store during a network partition?
Answer: It must choose between consistency and availability
When a partition occurs, a distributed system can preserve either consistency or availability, but not both.
An architect places a component in front of several microservices to handle authentication, rate limiting, and request routing. What is this component called?
Answer: API gateway
An API gateway is a single entry point that centralizes cross-cutting concerns like auth, throttling, and routing.
Which design principle states that a module should have only one reason to change?
Answer: Single responsibility principle
The single responsibility principle limits each module to one responsibility, so it has one reason to change.
A system must stop sending requests to a failing downstream service for a short period and then test whether it has recovered. Which pattern provides this?
Answer: Circuit breaker
A circuit breaker opens after repeated failures, blocks calls, and then half-opens to test recovery.
Adding more servers behind a load balancer to handle increased traffic is an example of what?
Answer: Horizontal scaling
Horizontal scaling (scaling out) adds more machines rather than making one machine bigger.
Which architectural style keeps the user interface, business logic, and data access in separate logical layers that each depend only on the layer below?
Answer: N-tier (layered) architecture
N-tier architecture organizes code into stacked layers such as presentation, business, and data.
Written and edited by Nathan Beja, founder of Practice Test Geeks, with AI assistance. We have not yet matched this exam's facts to an official source, so confirm fees, dates and rules with the exam body. Editorial policy