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 questions
Answer options
A: By applying the Messaging Metadata pattern, the service consumer can write a request identifier in the message header. Service agents then intercept the request messages and do not forward those that contain a previously detected identifier. This practice eliminates the delivery of the duplicate messages to the service.
B: The Event-Driven Messaging pattern can be applied to establish a messaging framework in which service consumers are automatically notified of relevant runtime service events. Correct answer
C: By applying the Atomic Service Transaction pattern, a service can be designed to invoke an alternative exception handling process when it is unavailable to receive a given message.
D: None of the these statements describe solutions that directly solve this problem.
Correct Answer:
B. The Event-Driven Messaging pattern can be applied to establish a messaging framework in which service consumers are automatically notified of relevant runtime service events.
Explanation

The 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.

Why Incorrect

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.

References

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.

Scroll to Top