Implement maintainable and modular Mule applications and their Maven builds25% of the exam

Custom processors with Mule SDK

Implement SDK component roles, configuration and connection injection, predictable message outputs, explicit metadata and safe streaming contracts.

Official exam objective
Implement custom message processors using the Mule SDK or XML SDK.

~7 min read · 13 practice questions ·

What the exam expects

  • Separate Java SDK component roles and inject configuration or connections correctly.
  • Predict how operation outputs affect a Mule message.
  • Declare usable output metadata and streaming behaviour.
  • Distinguish operation contracts from sources and XML module configuration.

An operation processes an event inside a flow; a source creates events for a flow; a configuration holds reusable settings; a connection provider supplies a connection; metadata describes output format and structure. These rules use the SDK model documented in February 2024, rather than later toolchain requirements (SDK overview).

Sources for this section (1)

Key facts

Class roles
Detail
Keep configuration and operations in separate classes.
Configuration injection
Detail
@Config receives the configuration instance.
Connection injection
Detail
@Connection receives the registered provider's connection.
Value-only output
Detail
Sets the payload and clears message attributes.
Void output
Detail
Preserves the received message.
JSON schema
Detail
@OutputJsonType references a packaged static schema.
Large output
Detail
Stream the data rather than materializing the body.
Nested Map stream
Detail
Request adaptation through resolveCursors(Map, boolean).
Returned POJO
Detail
API value object with no logic or static state; Serializable.
Sources for this section (2)
  • Why is a tariff-calculating method unsuitable inside an SDK-returned POJO?
  • When an output class has no mutable instance fields but has a mutable static counter, does it meet the SDK contract?
  • When an operation needs the runtime's default encoding, which special argument provides it?

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 (13 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