S90-19 practice question 3 of 15
Service A contains reporting logic that collects statistical data from different sources in order to produce a report document. One of the sources is…
Full set: 83 questionsThe performance issues—slow response times and unavailability—are caused by two specific problems with messages from an external service: "excessive data" and "links to files."
1. Defining cardinality (A) in the message schemas used to validate incoming messages directly addresses the "excessive data" problem. By setting maxOccurs attributes, the service can enforce limits on the size and structure of the payload, rejecting messages that are too large and would otherwise consume excessive resources and time to process.
2. Avoiding the download of external resources at runtime (D), such as the linked files mentioned, directly addresses a major source of latency and unavailability. Resolving and downloading external entities or files during message processing introduces a dependency on external network availability and performance, which is a known anti-pattern.
B. correlate request and response messages across different services: Correlation is for managing state in asynchronous communication and does not address performance degradation caused by large message payloads or external network dependencies.
C. use precompiled XPath expressions: This is a micro-optimization for XML parsing. It would not solve the primary performance bottlenecks caused by network latency from downloading large messages or external files.
1. For option A (define cardinality): The "Schema Centralization" design pattern emphasizes the use of standardized and centrally governed schemas to enforce data representation and structure. Validation against these schemas, including cardinality constraints (minOccurs, maxOccors), is a fundamental mechanism for ensuring message quality and preventing issues like data overload.
Erl, T. (2008). SOA Design Patterns. Prentice Hall. Chapter 10, "Schema Centralization," pp. 318-321. The pattern description emphasizes how centralized schemas enforce data representation standards, which inherently includes constraints on data volume.
2. For option D (avoid downloading): The principle of loose coupling, fundamental to SOA, dictates that a service's execution path should have minimal dependencies on external resources, especially at runtime. Downloading external files or schemas introduces tight coupling to the availability and performance of the external resource's host.
Erl, T. (2005). Service-Oriented Architecture: Concepts, Technology, and Design. Prentice Hall. Chapter 6, "SOA and Enterprise-Wide Business Process Design," Section 6.3, "Service-orientation and the enterprise-wide business process," discusses how services should be self-contained and autonomous to improve reliability.
3. General XML Processing Best Practices: Standard security and performance guidelines for XML processing strongly advise against resolving external entities or schemas at runtime due to the risk of denial-of-service (DoS) attacks and severe performance degradation.
W3C. (2004). XML Schema Part 1: Structures Second Edition. W3C Recommendation 28 October 2004. Section 3.3.2, "Occurrence Constraints," defines the minOccurs and maxOccurs attributes used to constrain data volume.
OWASP Foundation. XML External Entity (XXE) Prevention Cheat Sheet. This security document explains the risks of processing external entities, which include performance degradation and unavailability, and recommends disabling this feature in XML parsers.
Keep practicing
Take the free S90-19 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other S90-19 practice questions
- Question 1A service is designed to respond to an error condition by issuing a message containing de…
- Question 2Because of a new security requirement, all messages received by Service A need to be logg…
- Question 4The application of the Message Screening pattern can help avoid which of the following at…
- Question 5The Exception Shielding pattern can be applied together with the Trusted Subsystem patter…
- Question 6Which of the following types of attack always affect the availability of a service?
- Question 7The exception shielding logic resulting from the application of the Exception Shielding p…
