Correlation IDs are part of Mule event processing and provide the primary mechanism for tracing an execution across application components. Mule first examines the source message for a correlation identifier. For an HTTP Listener request, an incoming X-CORRELATION-ID or MULE_CORRELATION_ID header can establish the Mule event's correlation ID. If the source does not provide one, Mule generates a unique correlation ID for the event.
For the synchronous HTTP Listener scenario tested by the MuleSoft Developer II curriculum, the same correlation context is associated with the request-response execution, so no special API policy, scaffolding option, or Listener "CorrelationID" checkbox is required to satisfy the stated requirement.
Options B and C describe configuration controls that are not part of the normal HTTP Listener/APIkit scaffolding model. A custom correlation policy would only introduce unnecessary complexity where Mule's runtime correlation mechanism already handles the event correlation lifecycle.
The broader operational principle is important: correlation IDs should remain stable for the execution being traced so that request handling, logs, downstream processing, and the associated synchronous interaction can be related during production diagnostics.
Reference topics: Mule Event; Correlation ID; HTTP Listener; X-CORRELATION-ID; distributed tracing and observability.
Official documentation: https://docs.mulesoft.com/mule-runtime/latest/correlation-id
===============================================================
Submit