Broker Architecture Pattern Quiz

Q1. In a broker-based distributed system, a client invokes a remote service using a local proxy object. Which statement best describes the roles of the client proxy and server skeleton?




Q2. In a broker-based system, a new server instance is deployed at a different network location, yet clients can immediately start using it without any code changes. What enables this dynamic re-routing?




Q3. A client sends a complex object to a remote server via a broker. How is the object transferred over the network?




Q4. The broker pattern provides location transparency, allowing remote calls to use the same syntax as local calls. However, a developer notices remote calls are much slower than local calls. What does this illustrate about distributed systems?




Q5. A client application’s GUI becomes unresponsive while waiting for a response from a remote service via the broker. What change would prevent the UI from freezing during remote calls?




Q6. A client’s remote request through the broker sometimes hangs indefinitely because the target server never responds. What mechanism should be added to handle this gracefully?




Q7. In a broker setup with multiple server instances providing the same service, one instance is getting all the requests and becoming overloaded. How can the broker address this imbalance?




Q8. While implementing a custom protocol for the broker, the developer finds that multiple messages sent over a TCP connection sometimes get concatenated or split unpredictably. What is likely missing in the implementation?




Q9. One of the services behind the broker has become unresponsive, causing every request to it to time out and hang the client. Which resilience pattern can the broker or client employ to avoid repeatedly waiting on a non-responsive service?




Q10. In a secure broker architecture, the team needs to encrypt communications and ensure the end service can authenticate the original user making the request. What should be implemented?




Q11. In a distributed system using a broker, the team wants to trace requests end-to-end and measure performance across components. What approach will improve observability for calls that go through the broker?




Q12. A certain service in the broker architecture occasionally experiences very high latency for some requests (long-tail response times). What pattern can help reduce the impact of these outlier slow responses for clients?




Q13. The team is choosing between a broker pattern, a message bus, or a service mesh for their system. Which statement correctly distinguishes these options?




Q14. In a system with a single broker instance, the broker has become a single point of failure and is nearing its throughput limit. What is a recommended way to improve availability and scalability of the broker?




Q15. Maintaining the broker pattern has become difficult because developers hand-write every client proxy and server skeleton for each service, leading to bugs when interfaces change. What is a better approach?




software-architecture