Implement performant and reliable Mule applications27% of the exam

XML and JSON Schema validation

Select XML and JSON validation inputs, schema resources and parser controls, then read the applicable structured violation report without confusing documents with contracts.

Official exam objective
Validate messages against XML- or JSON-Schema documents.

~6 min read · 12 practice questions ·

What the exam expects

  • Validate an instance document against the intended XML or JSON contract.
  • Resolve schema resources and choose explicit document inputs.
  • Set JSON parsing options and an applicable schema dialect.
  • Preserve useful violations while keeping XML entity expansion safe.

An instance is the document being checked; a schema defines its constraints; a dialect identifies a JSON Schema draft; a redirect maps a schema URI; a violation report explains failed constraints. Module versions matter: JSON2.3 introduced direct schema text and JSON2.4 added Draft6/7 support, both before the exam baseline. Later patch fixes must not be assumed for earlier installations. JSON releases

Sources for this section (1)

Key facts

XML document input
Detail
Content overrides the payload default.
Multiple XSD locations
Detail
Use commas in Schemas; check resolution compatibility separately.
JSON contract input
Detail
Choose a Schema location or direct Schema Content.
Offline references
Detail
Package schemas and configure URI redirects.
Repeated keys
Detail
Set Allow Duplicate Keys to false to reject them.
Decimal reading
Detail
Allow Arbitrary Precision selects the numeric-reading mode.
Dialect selection
Detail
Declare the intended supported $schema in the schema node.
XML entity protection
Detail
NEVER is the documented expansion setting for these risks.
XML violations
Detail
Iterate the report's line, column and description objects.
JSON violations
Detail
Preserve the structured error-message payload.
Sources for this section (4)
  • Why should support keep schema and instance pointers distinct in a Draft4 report?
  • When locating an affected value in the input document, which pointer do you use?
  • What does keyword identify in the illustrated report?

The questions are free to read. Answers with their sources and self-grading are included with the pack.

Keep reading with the MuleSoft Developer II pack

  • Core concepts
  • Exam traps
  • Worked scenario

The pack includes:

  • All 29 lessons of the MuleSoft Developer II guide, with reading progress
  • Interactive decision walks and step-by-step sequence steppers
  • Practice exams purchase adds inline bank questions and topic practice (12 questions for this lesson)
  • An official source cited for every claim
  • An AI tutor that answers from the guide
  • Choose guide-only, practice-only, or save $4 with both

Practice for the MuleSoft Developer II exam