About this exam
This MuleSoft (Salesforce) developer certification is now offered as Salesforce Certified MuleSoft Developer (formerly MuleSoft Certified Developer - Level 1 (Mule 4)). It is for developers who can design and build basic APIs and integrations on Anypoint Platform, and covers designing API specifications in RAML, the structure of the Mule event and transformation with DataWeave, connector configuration, flow control, error handling, and API management and deployment.
Try a sample question
This is an original sample question written by itmoshi based on the exam objectives.
A Mule 4 flow starts with an HTTP Listener and calls a back-end system with HTTP Request. Only when the back end cannot be reached (HTTP:CONNECTIVITY) should the caller receive HTTP 200 with {"status": "pending"}. All other errors must still be returned to the caller as errors, as they are today. The HTTP Listener's success and error response settings are left at their defaults. How should the flow's error handler be configured?
- AOn Error Continue with type HTTP:CONNECTIVITY, setting the payload to JSON {"status": "pending"}
- BOn Error Propagate with type HTTP:CONNECTIVITY, setting the payload to JSON {"status": "pending"}
- COn Error Continue with type ANY, setting the payload to JSON {"status": "pending"}
- DOn Error Propagate with type ANY, setting the payload to JSON {"status": "pending"}
Show answer and explanation
Answer:A Catching only the target error with On Error Continue makes the flow end successfully, so the Listener responds with 200.
Why it is correct
On Error Continue handles the error and then completes the flow as a success, so the HTTP Listener returns the payload set in the handler as a normal response (200 by default), which meets the "200 with pending" requirement. Because the type is limited to HTTP:CONNECTIVITY, other errors do not match this handler and are returned to the caller as errors by default, which meets the "other errors stay errors" requirement.
The other options
- ✗ B On Error Propagate runs the handler and then rethrows the error, so the Listener sends an error response (500 by default), not 200. Use it when the caller should also be told that the back end failed.
- ✗ C ANY matches every handleable error, so handleable errors other than connectivity failures would also become 200 pending responses. It fits only when every handleable error should get a uniform success response.
- ✗ D Every handleable error, HTTP:CONNECTIVITY included, is propagated and returned as an error, so even connectivity errors cannot get a 200. It fits when every handleable error should be reported to the caller as an error.
Key takeaway
Flow should end as a success after the error → On Error Continue. Error should reach the caller → On Error Propagate. Narrow which errors a handler catches with type (or when).
Try 20 questions like this for free
Most frequent topics
- Accessing and modifying Mule events35 questions
- Designing API specifications20 questions
- Accessing and modifying Mule events17 questions
- Configuring connectors and endpoints16 questions
- Managing APIs13 questions
- Implementing error handling11 questions
Number of questions per topic among the 141 in this bank (top topics), as classified by itmoshi.
Exam domains
- Solution Design and Architecture29 questions
- Building Mule Applications89 questions
- Testing and Debugging APIs4 questions
- Deploying and Managing APIs19 questions
← All exams
itmoshi is an unofficial study service and is not affiliated with MuleSoft or any exam provider.