Designing and developing Mule applications15% of the exam

Validation module, schema and APIkit validation

How to pick a Validation module operation and its error type, collect several failures with the All scope, validate XML against XSD or RELAX NG and JSON against a JSON Schema, and tune APIkit's specification-driven request validation without turning it off.

Official exam objective
Correctly apply methods for validating data in Mule applications.

~7 min read · 6 practice questions

What the exam expects

  • Choose the Validation module operation that expresses a rule (IP lists, collections, Boolean expressions) and predict the error type it raises.
  • Collect every failure into one error with the All scope and hand the handler the error type it expects.
  • Validate XML with the XML module against XSD or RELAX NG, and JSON with the JSON module against a JSON Schema.
  • Tune APIkit for REST request validation, such as its multipart size limit, while keeping validation on.

Validation module: the module whose operations fail with a VALIDATION error when content misses a criterion. All scope: a Validation scope that runs nested validations and raises one combined error. Schema language: the XML module setting that picks W3C (XSD) or RELAX NG. APIkit Router: the APIkit component that validates requests against the API specification (Validation module, XML Module Reference, APIkit reference).

Sources for this section (3)

Key facts

Validation error parent
Detail
Every error is a child of VALIDATION:VALIDATION
IP filter list
Detail
Defined globally and referenced, or inline per validator
Is true failure
Detail
VALIDATION:INVALID_BOOLEAN
Is not empty collection failure
Detail
VALIDATION:EMPTY_COLLECTION
All scope
Detail
Runs every validation; one VALIDATION:MULTIPLE; no validation:exception
Retyping MULTIPLE
Detail
Use the scope's Error Mapping
XML Schema language
Detail
W3C (default) or RELAXNG
XML failure
Detail
XML-MODULE:SCHEMA_NOT_HONOURED
JSON failure
Detail
JSON:SCHEMA_NOT_HONOURED
APIkit multipart limit
Detail
apikit.multipart.size.limit, default 268435456 bytes
Sources for this section (6)
  • Which two error types can Is allowed ip throw?
  • When the validators inside an All scope run, on which thread and why does their order not matter?
  • When an APIkit Router leaves parser at its default, which parser reads the API?
  • Why can validating a very large JSON document with the JSON module's Validate schema be risky?

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

Keep reading with the MuleSoft Platform Integration Architect pack

  • Core concepts
  • Exam traps
  • Worked scenario

The pack includes:

  • All 40 lessons of the MuleSoft Platform Integration Architect guide, with reading progress
  • Interactive decision walks and step-by-step sequence steppers
  • Practice exams purchase adds inline bank questions and topic practice (6 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 Platform Integration Architect exam