nerdexam
SOA

S90-02A · Question #5

An XML schema can be used to define XML documents that can be shared by components, SOAP-based Web services, and REST services. Select the correct answer.

The correct answer is A. True. Option A is correct because XML Schema Definition (XSD) is a language-agnostic contract that describes the structure, data types, and constraints of XML documents - making it usable across multiple integration paradigms simultaneously. SOAP-based Web services rely heavily on…

Web Services and Contract-First Design

Question

An XML schema can be used to define XML documents that can be shared by components, SOAP-based Web services, and REST services. Select the correct answer.

Options

  • ATrue
  • BFalse

How the community answered

(33 responses)
  • A
    91% (30)
  • B
    9% (3)

Explanation

Option A is correct because XML Schema Definition (XSD) is a language-agnostic contract that describes the structure, data types, and constraints of XML documents - making it usable across multiple integration paradigms simultaneously. SOAP-based Web services rely heavily on XML and use XSD schemas embedded in WSDL files to define message formats. REST services, while not required to use XML, frequently do so and can reference XSD schemas to validate XML payloads. Since both service styles ultimately process XML documents, a single schema can serve as the shared data contract between components, SOAP services, and REST services alike.

There are no strong distractors here since only True/False are offered, but the tempting misconception behind choosing B would be assuming XML schemas are tied exclusively to SOAP (due to SOAP's historical tight coupling with XSD) - this overlooks that XSD describes the XML document itself, not the transport protocol.

Memory tip: Think of an XSD as a "blueprint for the data, not the delivery truck." Any service that handles XML - SOAP, REST, or a standalone component - can validate against the same blueprint.

Topics

#XML schema#SOAP#REST#schema reuse

Community Discussion

No community discussion yet for this question.

Full S90-02A Practice