S90-08 practice question 2 of 35
If a service consumer program needs to get data from a service that is not available, it can poll the service by periodically issuing a request message. This type of interaction can be inefficient because it can lead to unnecessary message transmissions. Which of the following statements describes a solution to this problem?
Full set: 100 questionsThe problem described is the inefficiency of a polling mechanism, where a service consumer repeatedly sends requests to a service to check for data availability. The Event-Driven Messaging pattern directly solves this by inverting the communication model. Instead of the consumer pulling data, the service pushes notifications. The consumer subscribes to specific events, and the service (or an intermediary event bus) automatically sends a message to the consumer only when a relevant event occurs (e.g., new data is available). This eliminates the constant, unnecessary network traffic generated by polling.
A. The Messaging Metadata pattern focuses on enriching messages with contextual data, such as for duplicate detection. It does not change the underlying polling interaction, which is the source of the inefficiency.
C. The Atomic Service Transaction pattern addresses data consistency and integrity across multiple service operations. It is concerned with transactional behavior, not the efficiency of the communication style.
D. This option is incorrect because option B provides a direct and standard solution to the problem of inefficient polling.
1. Erl, T. (2009). SOA Design Patterns. Prentice Hall.
Event-Driven Messaging (p. 384): The pattern description explicitly contrasts this model with the polling model: "Instead of forcing service consumers to poll services for state changes, this pattern allows services to publish state change events to which service consumers can subscribe." This directly supports the correct answer.
Messaging Metadata (p. 376): This section describes the pattern's purpose as adding header information for various technical purposes, including message processing instructions. It does not address the polling inefficiency.
Atomic Service Transaction (p. 484): This pattern is described as a mechanism to "allow a group of services to partake in a transaction that is managed and coordinated by a transaction controller." This confirms its focus is on transactional integrity, not communication efficiency.
Keep practicing
Take the free S90-08 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other S90-08 practice questions
- Question 1Which of the following statements about the application of the Policy Centralization patt…
- Question 3Because the Service Broker pattern is part of the Enterprise Service Bus pattern, the Sch…
- Question 4Which of the following statements are false?
- Question 5Assuming you have technical service contracts for SOAP-based Web services, you can apply …
- Question 6By applying the Service Broker compound pattern, you establish an environment capable of …
- Question 7The Service Fa?ade pattern can be used to introduce a logic layer that resides between th…
