MuleSoft Certified Integration Architect – Level 1 — Question 40
In a Mule application, a flow contains two (2) JMS Consume operations that are used to connect to a JMS broker and consume messages from two (2) JMS destinations. The Mule application then joins the two consumed JMS messages together.
The JMS broker does NOT implement high availability (HA) and periodically experiences scheduled outages of up to 10 minutes for routine maintenance.
What is the most idiomatic (used for its intended purpose) way to build the Mule flow so it can best recover from the expected outages?
Answer options
- A. Enclose the two (2) JMS operations in a Try scope with an On Error Continue error handler
- B. Enclose the two (2) JMS operations in an Until Successful scope
- C. Configure a transaction for the JMS connector
- D. Configure a reconnection strategy for the JMS connector
Correct answer: D
Explanation
The correct answer is D because configuring a reconnection strategy for the JMS connector allows the application to automatically try to reconnect to the JMS broker during outages. The other options do not provide a robust solution for handling the specified downtime; a Try scope with On Error Continue might suppress errors, an Until Successful scope is not suited for this scenario, and transactions do not address connectivity issues.