S90-19 practice question 7 of 15

The exception shielding logic resulting from the application of the Exception Shielding pattern can be centralized by applying which additional pattern?

Full set: 83 questions
Answer options
A: Message Screening
B: Trusted Subsystem
C: Service Perimeter Guard Correct answer
D: None of the above.
Correct Answer:
C. Service Perimeter Guard
Explanation

The Service Perimeter Guard pattern establishes a centralized point of control for messages entering and leaving a defined service boundary. This makes it an ideal location to implement cross-cutting security logic that applies to all services within that boundary. By implementing the Exception Shielding logic within the Service Perimeter Guard, the policy of sanitizing and standardizing exception messages is centralized. This ensures consistent application across all services and avoids redundant, and potentially inconsistent, implementations within each individual service.

Why Incorrect

A. Message Screening: This pattern focuses on inspecting and filtering the content of messages for malicious code or data, not on centralizing exception handling logic.
B. Trusted Subsystem: This pattern addresses identity and trust by allowing a service to execute actions with elevated privileges on behalf of a consumer; it is unrelated to exception management.
D. None of the above: This is incorrect as the Service Perimeter Guard pattern directly provides the mechanism for centralizing the logic of other patterns, including Exception Shielding.

References

1. Erl, T. (2009). SOA Design Patterns. Prentice Hall.

Page 561, Section 18.4 (Service Perimeter Guard), "Solution": The pattern solution describes a gateway that "can be used to centrally govern and control the message traffic that crosses the perimeter."

Page 563, Section 18.4 (Service Perimeter Guard), "Application": This section explains that the guard is used to "centralize security logic that would otherwise need to be built into numerous services."

Page 559, Section 18.3 (Exception Shielding), "Relationships": This section often discusses how a pattern can be combined with others. The combination with Service Perimeter Guard is a classic compound pattern where the guard centralizes the shielding logic. The text explicitly notes that patterns like Exception Shielding can be implemented by a centralized interceptor, which is the role of the Service Perimeter Guard.

Scroll to Top