Salesforce Certified MuleSoft Developer II — Question 2
When implementing a synchronous API where the event source is an HTTP Listener, a developer needs to return the same correlation ID back to the caller in the HTTP response header.
How can this be achieved?
Answer options
- A. No action is needed as the correlation ID is returned to the caller in the response header by default
- B. Enable the CorrelationID checkbox in the HTTP Listener configuration
- C. Configure a custom correlation policy
- D. Enable the auto-generate CorrelationID option when scaffolding the flow
Correct answer: A
Explanation
The correct answer is A because the system automatically includes the correlation ID in the response header without any extra configuration. Option B is incorrect because enabling the checkbox is unnecessary; C and D suggest additional settings or configurations that are not required for this functionality.